Searched refs:ReplaceRange (Results 1 – 7 of 7) sorted by relevance
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | UseUsingCheck.cpp | 69 SourceRange ReplaceRange = MatchedDecl->getSourceRange(); in check() local 78 if (ReplaceRange.getBegin().isMacroID() || in check() 79 (Result.SourceManager->getFileID(ReplaceRange.getBegin()) != in check() 81 (ReplaceRange.getBegin() >= LastReplacementEnd)) { in check() 89 ReplaceRange.setBegin(LastReplacementEnd); in check() 99 if (!ReplaceRange.getEnd().isMacroID()) in check() 100 LastReplacementEnd = ReplaceRange.getEnd().getLocWithOffset(Name.size()); in check() 102 auto Diag = diag(ReplaceRange.getBegin(), UseUsingWarning); in check() 106 ReplaceRange.fullyContains(LastTagDeclRange)) { in check() 116 Diag << FixItHint::CreateReplacement(ReplaceRange, Replacement); in check()
|
D | LoopConvertCheck.cpp | 596 SourceRange ReplaceRange = AliasDecl->getSourceRange(); in doConversion() local 608 getAliasRange(Context->getSourceManager(), ReplaceRange); in doConversion() 612 CharSourceRange::getTokenRange(ReplaceRange), ReplacementText)); in doConversion()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | RedundantStringInitCheck.cpp | 137 SourceRange ReplaceRange(VDecl->getLocation(), VDecl->getEndLoc()); in check() local 139 << FixItHint::CreateReplacement(ReplaceRange, VDecl->getName()); in check() 144 SourceRange ReplaceRange(FDecl->getLocation(), FDecl->getEndLoc()); in check() local 146 << FixItHint::CreateReplacement(ReplaceRange, FDecl->getName()); in check()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | DefineInline.cpp | 298 CharSourceRange ReplaceRange; in renameParameters() local 302 ReplaceRange = CharSourceRange::getCharRange(RefLoc, RefLoc); in renameParameters() 304 ReplaceRange = CharSourceRange::getTokenRange(RefLoc, RefLoc); in renameParameters() 308 ReplaceRange = Lexer::makeFileCharRange(ReplaceRange, SM, LangOpts); in renameParameters() 310 if (ReplaceRange.isInvalid()) { in renameParameters() 318 tooling::Replacement(SM, ReplaceRange, NewName))) { in renameParameters()
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
D | AvoidCStyleCastsCheck.cpp | 83 auto ReplaceRange = CharSourceRange::getCharRange( in check() local 100 << FixItHint::CreateRemoval(ReplaceRange); in check() 145 Diag << FixItHint::CreateReplacement(ReplaceRange, CastText); in check()
|
/external/clang/lib/Lex/ |
D | PPDirectives.cpp | 1633 CharSourceRange ReplaceRange(SourceRange(HashLoc, PathEnd), in diagnoseAutoModuleImport() local 1637 << FixItHint::CreateReplacement(ReplaceRange, in diagnoseAutoModuleImport()
|
/external/llvm-project/clang/lib/Lex/ |
D | PPDirectives.cpp | 1606 CharSourceRange ReplaceRange(SourceRange(HashLoc, PathEnd), in diagnoseAutoModuleImport() local 1611 ReplaceRange, (ImportKeyword + " " + PathString + ";").str()); in diagnoseAutoModuleImport()
|