/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | HeaderGuard.cpp | 102 std::vector<FixItHint> FixIts; in EndOfMainFile() local 104 Ifndef, Define, EndIf, FileName, CurHeaderGuard, FixIts); in EndOfMainFile() 108 checkEndifComment(FileName, EndIf, NewGuard, FixIts); in EndOfMainFile() 112 if (!FixIts.empty()) { in EndOfMainFile() 115 << FixIts; in EndOfMainFile() 119 << FixIts; in EndOfMainFile() 165 std::vector<FixItHint> &FixIts) { in checkHeaderGuardDefinition() argument 174 FixIts.push_back(FixItHint::CreateReplacement( in checkHeaderGuardDefinition() 178 FixIts.push_back(FixItHint::CreateReplacement( in checkHeaderGuardDefinition() 191 std::vector<FixItHint> &FixIts) { in checkEndifComment() argument [all …]
|
/external/llvm/lib/Support/ |
D | SourceMgr.cpp | 138 ArrayRef<SMFixIt> FixIts) const { in GetMessage() 195 LineStr, ColRanges, FixIts); in GetMessage() 218 ArrayRef<SMFixIt> FixIts, bool ShowColors) const { in PrintMessage() argument 219 PrintMessage(OS, GetMessage(Loc, Kind, Msg, Ranges, FixIts), ShowColors); in PrintMessage() 224 ArrayRef<SMFixIt> FixIts, bool ShowColors) const { in PrintMessage() argument 225 PrintMessage(llvm::errs(), Loc, Kind, Msg, Ranges, FixIts, ShowColors); in PrintMessage() 239 FixIts(Hints.begin(), Hints.end()) { in SMDiagnostic() 240 std::sort(FixIts.begin(), FixIts.end()); in SMDiagnostic() 244 ArrayRef<SMFixIt> FixIts, ArrayRef<char> SourceLine){ in buildFixItLine() argument 245 if (FixIts.empty()) in buildFixItLine() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | SourceMgr.cpp | 166 ArrayRef<SMFixIt> FixIts) const { in GetMessage() 222 LineStr, ColRanges, FixIts); in GetMessage() 245 ArrayRef<SMFixIt> FixIts, bool ShowColors) const { in PrintMessage() argument 246 PrintMessage(OS, GetMessage(Loc, Kind, Msg, Ranges, FixIts), ShowColors); in PrintMessage() 251 ArrayRef<SMFixIt> FixIts, bool ShowColors) const { in PrintMessage() argument 252 PrintMessage(errs(), Loc, Kind, Msg, Ranges, FixIts, ShowColors); in PrintMessage() 266 FixIts(Hints.begin(), Hints.end()) { in SMDiagnostic() 267 llvm::sort(FixIts); in SMDiagnostic() 271 ArrayRef<SMFixIt> FixIts, ArrayRef<char> SourceLine){ in buildFixItLine() argument 272 if (FixIts.empty()) in buildFixItLine() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | SourceMgr.h | 159 ArrayRef<SMFixIt> FixIts = None, 165 ArrayRef<SMFixIt> FixIts = None, 182 ArrayRef<SMFixIt> FixIts = None) const; 236 SmallVector<SMFixIt, 4> FixIts; variable 252 ArrayRef<SMFixIt> FixIts = None); 267 FixIts.push_back(Hint); in addFixIt() 271 return FixIts; in getFixIts()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | SourceMgr.h | 194 ArrayRef<SMFixIt> FixIts = None, 200 ArrayRef<SMFixIt> FixIts = None, 217 ArrayRef<SMFixIt> FixIts = None) const; 270 SmallVector<SMFixIt, 4> FixIts; variable 284 ArrayRef<SMFixIt> FixIts = None); 297 FixIts.push_back(Hint); in addFixIt() 301 return FixIts; in getFixIts()
|
/external/llvm/include/llvm/Support/ |
D | SourceMgr.h | 164 ArrayRef<SMFixIt> FixIts = None, 170 ArrayRef<SMFixIt> FixIts = None, 187 ArrayRef<SMFixIt> FixIts = None) const; 241 SmallVector<SMFixIt, 4> FixIts; variable 257 ArrayRef<SMFixIt> FixIts = None); 272 FixIts.push_back(Hint); in addFixIt() 276 return FixIts; in getFixIts()
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | SourceMgr.h | 191 ArrayRef<SMFixIt> FixIts = {}, 197 ArrayRef<SMFixIt> FixIts = {}, 214 ArrayRef<SMFixIt> FixIts = {}) const; 260 SmallVector<SMFixIt, 4> FixIts; variable 273 ArrayRef<SMFixIt> FixIts = {}); 285 void addFixIt(const SMFixIt &Hint) { FixIts.push_back(Hint); } in addFixIt() 287 ArrayRef<SMFixIt> getFixIts() const { return FixIts; } in getFixIts()
|
/external/llvm-project/llvm/lib/Support/ |
D | SourceMgr.cpp | 264 ArrayRef<SMFixIt> FixIts) const { in GetMessage() 321 ColRanges, FixIts); in GetMessage() 343 ArrayRef<SMRange> Ranges, ArrayRef<SMFixIt> FixIts, in PrintMessage() argument 345 PrintMessage(OS, GetMessage(Loc, Kind, Msg, Ranges, FixIts), ShowColors); in PrintMessage() 350 ArrayRef<SMFixIt> FixIts, bool ShowColors) const { in PrintMessage() argument 351 PrintMessage(errs(), Loc, Kind, Msg, Ranges, FixIts, ShowColors); in PrintMessage() 374 Ranges(Ranges.vec()), FixIts(Hints.begin(), Hints.end()) { in SMDiagnostic() 375 llvm::sort(FixIts); in SMDiagnostic() 379 ArrayRef<SMFixIt> FixIts, in buildFixItLine() argument 381 if (FixIts.empty()) in buildFixItLine() [all …]
|
/external/llvm-project/clang/tools/libclang/ |
D | CXLoadedDiagnostic.cpp | 137 return FixIts.size(); in getNumFixIts() 142 assert(FixIt < FixIts.size()); in getFixIt() 144 *ReplacementRange = FixIts[FixIt].first; in getFixIt() 145 return cxstring::createRef(FixIts[FixIt].second); in getFixIt() 370 CurrentDiags.back()->FixIts.push_back( in visitFixitRecord()
|
D | CXLoadedDiagnostic.h | 84 std::vector<std::pair<CXSourceRange, const char *> > FixIts; variable
|
D | CIndexCodeCompletion.cpp | 334 ArrayRef<FixItHint> FixIts = allocated_results->FixItsVector[completion_index]; in clang_getCompletionFixIt() local 335 if (FixIts.size() <= fixit_index) { in clang_getCompletionFixIt() 341 const FixItHint &FixIt = FixIts[fixit_index]; in clang_getCompletionFixIt() 592 AllocatedResults.FixItsVector.emplace_back(std::move(Results[I].FixIts)); in ProcessCodeCompleteResults()
|
/external/clang/tools/libclang/ |
D | CXLoadedDiagnostic.cpp | 140 return FixIts.size(); in getNumFixIts() 145 assert(FixIt < FixIts.size()); in getFixIt() 147 *ReplacementRange = FixIts[FixIt].first; in getFixIt() 148 return cxstring::createRef(FixIts[FixIt].second); in getFixIt() 373 CurrentDiags.back()->FixIts.push_back( in visitFixitRecord()
|
D | CXLoadedDiagnostic.h | 85 std::vector<std::pair<CXSourceRange, const char *> > FixIts; variable
|
/external/llvm/unittests/Support/ |
D | SourceMgrTest.cpp | 42 ArrayRef<SMFixIt> FixIts) { in printMessage() argument 44 SM.PrintMessage(OS, Loc, Kind, Msg, Ranges, FixIts); in printMessage()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaAvailability.cpp | 486 SmallVector<FixItHint, 12> FixIts; in DoEmitAvailabilityWarning() local 510 FixIts.push_back(FixItHint::CreateReplacement( in DoEmitAvailabilityWarning() 513 FixIts.push_back( in DoEmitAvailabilityWarning() 517 FixIts.push_back(FixItHint::CreateReplacement(UseRange, Replacement)); in DoEmitAvailabilityWarning() 519 FixIts.push_back(FixItHint::CreateReplacement(UseRange, Replacement)); in DoEmitAvailabilityWarning() 524 S.Diag(Loc, diag_message) << ReferringDecl << Message << FixIts; in DoEmitAvailabilityWarning() 529 S.Diag(Loc, diag) << ReferringDecl << FixIts; in DoEmitAvailabilityWarning() 534 S.Diag(Loc, diag_fwdclass_message) << ReferringDecl << FixIts; in DoEmitAvailabilityWarning()
|
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
D | ClangDiagnostic.h | 44 const FixItList &FixIts() const { return m_fixit_vec; } in FixIts() function
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | LoopConvertCheck.cpp | 579 std::vector<FixItHint> FixIts; in doConversion() local 611 FixIts.push_back(FixItHint::CreateReplacement( in doConversion() 657 FixIts.push_back(FixItHint::CreateReplacement( in doConversion() 706 FixIts.push_back(FixItHint::CreateReplacement( in doConversion() 713 FixIts.push_back(*Insertion); in doConversion() 715 diag(Loop->getForLoc(), "use range-based for loop instead") << FixIts; in doConversion()
|
/external/llvm-project/clang/include/clang/Sema/ |
D | CodeCompleteConsumer.h | 824 std::vector<FixItHint> FixIts; variable 868 std::vector<FixItHint> FixIts = std::vector<FixItHint>()) 870 FixIts(std::move(FixIts)), Hidden(false), InBaseClass(false), in Declaration()
|
/external/clang/lib/Basic/ |
D | Diagnostic.cpp | 965 this->FixIts.assign(Info.getFixItHints().begin(), Info.getFixItHints().end()); in StoredDiagnostic() 971 ArrayRef<FixItHint> FixIts) in StoredDiagnostic() argument 973 Ranges(Ranges.begin(), Ranges.end()), FixIts(FixIts.begin(), FixIts.end()) in StoredDiagnostic()
|
/external/clang/include/clang/Basic/ |
D | Diagnostic.h | 1270 std::vector<FixItHint> FixIts; variable 1303 fixit_iterator fixit_begin() const { return FixIts.begin(); } in fixit_begin() 1304 fixit_iterator fixit_end() const { return FixIts.end(); } in fixit_end() 1305 unsigned fixit_size() const { return FixIts.size(); } in fixit_size() 1308 return llvm::makeArrayRef(FixIts); in getFixIts()
|
/external/llvm-project/llvm/unittests/Support/ |
D | SourceMgrTest.cpp | 41 ArrayRef<SMFixIt> FixIts) { in printMessage() argument 43 SM.PrintMessage(OS, Loc, Kind, Msg, Ranges, FixIts); in printMessage()
|
/external/llvm-project/clang/lib/Basic/ |
D | Diagnostic.cpp | 1115 this->FixIts.assign(Info.getFixItHints().begin(), Info.getFixItHints().end()); in StoredDiagnostic() 1121 ArrayRef<FixItHint> FixIts) in StoredDiagnostic() argument 1123 Ranges(Ranges.begin(), Ranges.end()), FixIts(FixIts.begin(), FixIts.end()) in StoredDiagnostic()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | Diagnostic.h | 1623 std::vector<FixItHint> FixIts; variable 1657 fixit_iterator fixit_begin() const { return FixIts.begin(); } in fixit_begin() 1658 fixit_iterator fixit_end() const { return FixIts.end(); } in fixit_end() 1659 unsigned fixit_size() const { return FixIts.size(); } in fixit_size() 1662 return llvm::makeArrayRef(FixIts); in getFixIts()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | Diagnostics.cpp | 662 auto FixIts = Info.getFixItHints().vec(); in HandleDiagnostic() local 664 for (auto &FixIt : FixIts) { in HandleDiagnostic() 688 if (SyntheticMessage && FixIts.size() == 1) { in HandleDiagnostic() 689 const auto &FixIt = FixIts.front(); in HandleDiagnostic()
|
D | CodeComplete.h | 222 std::vector<TextEdit> FixIts; member
|