Home
last modified time | relevance | path

Searched refs:RemoveRange (Results 1 – 13 of 13) sorted by relevance

/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DFixItRewriter.cpp161 commit.insertFromRange(Hint.RemoveRange.getBegin(), in HandleDiagnostic()
165 commit.remove(Hint.RemoveRange); in HandleDiagnostic()
167 if (Hint.RemoveRange.isTokenRange() || in HandleDiagnostic()
168 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in HandleDiagnostic()
169 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in HandleDiagnostic()
171 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in HandleDiagnostic()
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp66 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits()
70 commit.remove(Hint.RemoveRange); in mergeFixits()
72 if (Hint.RemoveRange.isTokenRange() || in mergeFixits()
73 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
74 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in mergeFixits()
76 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in mergeFixits()
112 if (Hint.RemoveRange.isValid()) in emitDiagnostic()
113 MutableRanges.push_back(Hint.RemoveRange); in emitDiagnostic()
H A DTextDiagnostic.cpp1075 = SM.getDecomposedExpansionLoc(I->RemoveRange.getBegin()); in buildFixItInsertionLine()
1321 if (I->RemoveRange.isInvalid() || in emitParseableFixits()
1322 I->RemoveRange.getBegin().isMacroID() || in emitParseableFixits()
1323 I->RemoveRange.getEnd().isMacroID()) in emitParseableFixits()
1329 SourceLocation BLoc = I->RemoveRange.getBegin(); in emitParseableFixits()
1330 SourceLocation ELoc = I->RemoveRange.getEnd(); in emitParseableFixits()
1336 if (I->RemoveRange.isTokenRange()) in emitParseableFixits()
H A DASTUnit.cpp1241 OutFix.RemoveRange = makeStandaloneRange(InFix.RemoveRange, SM, LangOpts); in makeStandaloneFixIt()
2378 SourceLocation BL = FileLoc.getLocWithOffset(FixIt.RemoveRange.first); in TranslateStoredDiagnostics()
2379 SourceLocation EL = FileLoc.getLocWithOffset(FixIt.RemoveRange.second); in TranslateStoredDiagnostics()
2380 FH.RemoveRange = CharSourceRange::getCharRange(BL, EL); in TranslateStoredDiagnostics()
H A DSerializedDiagnosticPrinter.cpp721 AddCharSourceRangeToRecord(Fix.RemoveRange, Record, SM); in EmitCodeContext()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DDiagnostic.h74 CharSourceRange RemoveRange;
91 return !RemoveRange.isValid(); in isNull()
100 Hint.RemoveRange =
113 Hint.RemoveRange =
122 static FixItHint CreateRemoval(CharSourceRange RemoveRange) { in CreateRemoval() argument
124 Hint.RemoveRange = RemoveRange; in CreateRemoval()
127 static FixItHint CreateRemoval(SourceRange RemoveRange) { in CreateRemoval() argument
128 return CreateRemoval(CharSourceRange::getTokenRange(RemoveRange)); in CreateRemoval()
133 static FixItHint CreateReplacement(CharSourceRange RemoveRange, in CreateReplacement() argument
136 Hint.RemoveRange = RemoveRange; in CreateReplacement()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangExpressionParser.cpp1231 commit.insertFromRange(fixit.RemoveRange.getBegin(), in ApplyFixIt()
1236 commit.remove(fixit.RemoveRange); in ApplyFixIt()
1239 if (fixit.RemoveRange.isTokenRange() || in ApplyFixIt()
1240 fixit.RemoveRange.getBegin() != fixit.RemoveRange.getEnd()) { in ApplyFixIt()
1241 commit.replace(fixit.RemoveRange, fixit.CodeToInsert); in ApplyFixIt()
1244 commit.insert(fixit.RemoveRange.getBegin(), fixit.CodeToInsert, in ApplyFixIt()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DCodeCompleteConsumer.cpp592 const SourceLocation BLoc = FixIt.RemoveRange.getBegin(); in ProcessCodeCompleteResults()
593 const SourceLocation ELoc = FixIt.RemoveRange.getEnd(); in ProcessCodeCompleteResults()
599 if (FixIt.RemoveRange.isTokenRange()) in ProcessCodeCompleteResults()
H A DAnalysisBasedWarnings.cpp967 S.Diag(Fixit1.RemoveRange.getBegin(), diag::note_uninit_fixit_remove_cond) in DiagUninitUse()
H A DSemaDecl.cpp9158 SourceRange RemoveRange = TemplateParams->getSourceRange(); in ActOnFunctionDeclarator() local
9172 << Name << RemoveRange in ActOnFunctionDeclarator()
9173 << FixItHint::CreateRemoval(RemoveRange) in ActOnFunctionDeclarator()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DTextDiagnostics.cpp80 Replacement Repl(SM, Hint.RemoveRange, Hint.CodeToInsert); in FlushDiagnosticsImpl()
H A DPlistDiagnostics.cpp230 EmitRange(o, SM, Lexer::getAsCharRange(fixit.RemoveRange, SM, LangOpts), in EmitFixits()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Frontend/
H A DASTUnit.h92 std::pair<unsigned, unsigned> RemoveRange; member