Home
last modified time | relevance | path

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

/netbsd/external/apache2/llvm/dist/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()
/netbsd/external/apache2/llvm/dist/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.cpp1240 OutFix.RemoveRange = makeStandaloneRange(InFix.RemoveRange, SM, LangOpts); in makeStandaloneFixIt()
2377 SourceLocation BL = FileLoc.getLocWithOffset(FixIt.RemoveRange.first); in TranslateStoredDiagnostics()
2378 SourceLocation EL = FileLoc.getLocWithOffset(FixIt.RemoveRange.second); in TranslateStoredDiagnostics()
2379 FH.RemoveRange = CharSourceRange::getCharRange(BL, EL); in TranslateStoredDiagnostics()
H A DSerializedDiagnosticPrinter.cpp721 AddCharSourceRangeToRecord(Fix.RemoveRange, Record, SM); in EmitCodeContext()
/netbsd/external/apache2/llvm/dist/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 …]
/netbsd/external/apache2/llvm/dist/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.cpp9099 SourceRange RemoveRange = TemplateParams->getSourceRange(); in ActOnFunctionDeclarator() local
9113 << Name << RemoveRange in ActOnFunctionDeclarator()
9114 << FixItHint::CreateRemoval(RemoveRange) in ActOnFunctionDeclarator()
/netbsd/external/apache2/llvm/dist/clang/tools/libclang/
H A DCXStoredDiagnostic.cpp107 LangOpts, Hint.RemoveRange); in getFixIt()
H A DCIndexCodeCompletion.cpp345 FixIt.RemoveRange); in clang_getCompletionFixIt()
/netbsd/external/apache2/llvm/dist/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()
/netbsd/external/apache2/llvm/dist/clang/include/clang/Frontend/
H A DASTUnit.h92 std::pair<unsigned, unsigned> RemoveRange; member