Home
last modified time | relevance | path

Searched refs:FixIts (Results 1 – 25 of 38) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DHeaderGuard.cpp102 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/
DSourceMgr.cpp138 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/
DSourceMgr.cpp166 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/
DSourceMgr.h159 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/
DSourceMgr.h194 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/
DSourceMgr.h164 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/
DSourceMgr.h191 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/
DSourceMgr.cpp264 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/
DCXLoadedDiagnostic.cpp137 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()
DCXLoadedDiagnostic.h84 std::vector<std::pair<CXSourceRange, const char *> > FixIts; variable
DCIndexCodeCompletion.cpp334 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/
DCXLoadedDiagnostic.cpp140 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()
DCXLoadedDiagnostic.h85 std::vector<std::pair<CXSourceRange, const char *> > FixIts; variable
/external/llvm/unittests/Support/
DSourceMgrTest.cpp42 ArrayRef<SMFixIt> FixIts) { in printMessage() argument
44 SM.PrintMessage(OS, Loc, Kind, Msg, Ranges, FixIts); in printMessage()
/external/llvm-project/clang/lib/Sema/
DSemaAvailability.cpp486 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/
DClangDiagnostic.h44 const FixItList &FixIts() const { return m_fixit_vec; } in FixIts() function
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DLoopConvertCheck.cpp579 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/
DCodeCompleteConsumer.h824 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/
DDiagnostic.cpp965 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/
DDiagnostic.h1270 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/
DSourceMgrTest.cpp41 ArrayRef<SMFixIt> FixIts) { in printMessage() argument
43 SM.PrintMessage(OS, Loc, Kind, Msg, Ranges, FixIts); in printMessage()
/external/llvm-project/clang/lib/Basic/
DDiagnostic.cpp1115 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/
DDiagnostic.h1623 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/
DDiagnostics.cpp662 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()
DCodeComplete.h222 std::vector<TextEdit> FixIts; member

12