/external/clang/unittests/Tooling/ |
D | FixItTest.cpp | 86 EXPECT_EQ("foo(x, y)", getText(Hint.RemoveRange.getAsRange(), *Context)); in TEST() 92 EXPECT_EQ("x", getText(Hint0.RemoveRange.getAsRange(), *Context)); in TEST() 98 EXPECT_EQ("y", getText(Hint1.RemoveRange.getAsRange(), *Context)); in TEST() 107 EXPECT_EQ("x + y", getText(Hint0.RemoveRange.getAsRange(), *Context)); in TEST() 111 EXPECT_EQ("y + x", getText(Hint1.RemoveRange.getAsRange(), *Context)); in TEST() 121 EXPECT_EQ("FOO", getText(Hint.RemoveRange.getAsRange(), *Context)); in TEST() 128 LocationToString(Hint0.RemoveRange.getBegin(), Context)); in TEST() 130 LocationToString(Hint0.RemoveRange.getEnd(), Context)); in TEST() 137 LocationToString(Hint1.RemoveRange.getBegin(), Context)); in TEST() 139 LocationToString(Hint1.RemoveRange.getEnd(), Context)); in TEST() [all …]
|
/external/llvm-project/clang/unittests/Tooling/ |
D | FixItTest.cpp | 85 EXPECT_EQ("foo(x, y)", getText(Hint.RemoveRange.getAsRange(), *Context)); in TEST() 91 EXPECT_EQ("x", getText(Hint0.RemoveRange.getAsRange(), *Context)); in TEST() 97 EXPECT_EQ("y", getText(Hint1.RemoveRange.getAsRange(), *Context)); in TEST() 106 EXPECT_EQ("x + y", getText(Hint0.RemoveRange.getAsRange(), *Context)); in TEST() 110 EXPECT_EQ("y + x", getText(Hint1.RemoveRange.getAsRange(), *Context)); in TEST() 120 EXPECT_EQ("FOO", getText(Hint.RemoveRange.getAsRange(), *Context)); in TEST() 127 LocationToString(Hint0.RemoveRange.getBegin(), Context)); in TEST() 129 LocationToString(Hint0.RemoveRange.getEnd(), Context)); in TEST() 136 LocationToString(Hint1.RemoveRange.getBegin(), Context)); in TEST() 138 LocationToString(Hint1.RemoveRange.getEnd(), Context)); in TEST() [all …]
|
/external/llvm-project/clang/lib/Frontend/Rewrite/ |
D | FixItRewriter.cpp | 161 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()
|
/external/clang/lib/Frontend/Rewrite/ |
D | FixItRewriter.cpp | 155 commit.insertFromRange(Hint.RemoveRange.getBegin(), in HandleDiagnostic() 159 commit.remove(Hint.RemoveRange); in HandleDiagnostic() 161 if (Hint.RemoveRange.isTokenRange() || in HandleDiagnostic() 162 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in HandleDiagnostic() 163 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in HandleDiagnostic() 165 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in HandleDiagnostic()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | Diagnostics.cpp | 110 auto R = Lexer::makeFileCharRange(F.RemoveRange, M, L); in diagnosticRange() 668 if (FixIt.RemoveRange.getBegin().isMacroID() && in HandleDiagnostic() 669 FixIt.RemoveRange.getEnd().isMacroID() && in HandleDiagnostic() 670 SM.getFileID(FixIt.RemoveRange.getBegin()) == in HandleDiagnostic() 671 SM.getFileID(FixIt.RemoveRange.getEnd())) { in HandleDiagnostic() 672 FixIt.RemoveRange = CharSourceRange( in HandleDiagnostic() 673 {SM.getTopMacroCallerLoc(FixIt.RemoveRange.getBegin()), in HandleDiagnostic() 674 SM.getTopMacroCallerLoc(FixIt.RemoveRange.getEnd())}, in HandleDiagnostic() 675 FixIt.RemoveRange.isTokenRange()); in HandleDiagnostic() 678 if (FixIt.RemoveRange.getBegin().isMacroID() || in HandleDiagnostic() [all …]
|
/external/clang/include/clang/Basic/ |
D | Diagnostic.h | 56 CharSourceRange RemoveRange; 73 return !RemoveRange.isValid(); in isNull() 82 Hint.RemoveRange = 95 Hint.RemoveRange = 104 static FixItHint CreateRemoval(CharSourceRange RemoveRange) { in CreateRemoval() argument 106 Hint.RemoveRange = RemoveRange; in CreateRemoval() 109 static FixItHint CreateRemoval(SourceRange RemoveRange) { in CreateRemoval() argument 110 return CreateRemoval(CharSourceRange::getTokenRange(RemoveRange)); in CreateRemoval() 115 static FixItHint CreateReplacement(CharSourceRange RemoveRange, in CreateReplacement() argument 118 Hint.RemoveRange = RemoveRange; in CreateReplacement() [all …]
|
/external/clang/lib/Frontend/ |
D | DiagnosticRenderer.cpp | 59 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits() 63 commit.remove(Hint.RemoveRange); in mergeFixits() 65 if (Hint.RemoveRange.isTokenRange() || in mergeFixits() 66 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits() 67 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in mergeFixits() 69 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in mergeFixits() 109 if (I->RemoveRange.isValid()) in emitDiagnostic() 110 MutableRanges.push_back(I->RemoveRange); in emitDiagnostic()
|
D | TextDiagnostic.cpp | 1010 = SM.getDecomposedExpansionLoc(I->RemoveRange.getBegin()); in buildFixItInsertionLine() 1243 if (I->RemoveRange.isInvalid() || in emitParseableFixits() 1244 I->RemoveRange.getBegin().isMacroID() || in emitParseableFixits() 1245 I->RemoveRange.getEnd().isMacroID()) in emitParseableFixits() 1251 SourceLocation BLoc = I->RemoveRange.getBegin(); in emitParseableFixits() 1252 SourceLocation ELoc = I->RemoveRange.getEnd(); in emitParseableFixits() 1258 if (I->RemoveRange.isTokenRange()) in emitParseableFixits()
|
D | ASTUnit.cpp | 1287 OutFix.RemoveRange = makeStandaloneRange(InFix.RemoveRange, SM, LangOpts); in makeStandaloneFixIt() 2567 SourceLocation BL = FileLoc.getLocWithOffset(FixIt.RemoveRange.first); in TranslateStoredDiagnostics() 2568 SourceLocation EL = FileLoc.getLocWithOffset(FixIt.RemoveRange.second); in TranslateStoredDiagnostics() 2569 FH.RemoveRange = CharSourceRange::getCharRange(BL, EL); in TranslateStoredDiagnostics()
|
D | SerializedDiagnosticPrinter.cpp | 732 AddCharSourceRangeToRecord(Fix.RemoveRange, Record, SM); in EmitCodeContext()
|
/external/llvm-project/clang/lib/Frontend/ |
D | DiagnosticRenderer.cpp | 66 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()
|
D | TextDiagnostic.cpp | 1086 = SM.getDecomposedExpansionLoc(I->RemoveRange.getBegin()); in buildFixItInsertionLine() 1332 if (I->RemoveRange.isInvalid() || in emitParseableFixits() 1333 I->RemoveRange.getBegin().isMacroID() || in emitParseableFixits() 1334 I->RemoveRange.getEnd().isMacroID()) in emitParseableFixits() 1340 SourceLocation BLoc = I->RemoveRange.getBegin(); in emitParseableFixits() 1341 SourceLocation ELoc = I->RemoveRange.getEnd(); in emitParseableFixits() 1347 if (I->RemoveRange.isTokenRange()) in emitParseableFixits()
|
D | ASTUnit.cpp | 1251 OutFix.RemoveRange = makeStandaloneRange(InFix.RemoveRange, SM, LangOpts); in makeStandaloneFixIt() 2404 SourceLocation BL = FileLoc.getLocWithOffset(FixIt.RemoveRange.first); in TranslateStoredDiagnostics() 2405 SourceLocation EL = FileLoc.getLocWithOffset(FixIt.RemoveRange.second); in TranslateStoredDiagnostics() 2406 FH.RemoveRange = CharSourceRange::getCharRange(BL, EL); in TranslateStoredDiagnostics()
|
D | SerializedDiagnosticPrinter.cpp | 721 AddCharSourceRangeToRecord(Fix.RemoveRange, Record, SM); in EmitCodeContext()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | Diagnostic.h | 74 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 …]
|
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
D | ClangExpressionParser.cpp | 1220 commit.insertFromRange(fixit.RemoveRange.getBegin(), in ApplyFixIt() 1225 commit.remove(fixit.RemoveRange); in ApplyFixIt() 1228 if (fixit.RemoveRange.isTokenRange() || in ApplyFixIt() 1229 fixit.RemoveRange.getBegin() != fixit.RemoveRange.getEnd()) { in ApplyFixIt() 1230 commit.replace(fixit.RemoveRange, fixit.CodeToInsert); in ApplyFixIt() 1233 commit.insert(fixit.RemoveRange.getBegin(), fixit.CodeToInsert, in ApplyFixIt()
|
/external/llvm-project/clang/tools/libclang/ |
D | CXStoredDiagnostic.cpp | 107 LangOpts, Hint.RemoveRange); in getFixIt()
|
D | CIndexCodeCompletion.cpp | 345 FixIt.RemoveRange); in clang_getCompletionFixIt()
|
/external/clang/tools/libclang/ |
D | CXStoredDiagnostic.cpp | 111 LangOpts, Hint.RemoveRange); in getFixIt()
|
/external/llvm-project/clang/lib/Sema/ |
D | CodeCompleteConsumer.cpp | 592 const SourceLocation BLoc = FixIt.RemoveRange.getBegin(); in ProcessCodeCompleteResults() 593 const SourceLocation ELoc = FixIt.RemoveRange.getEnd(); in ProcessCodeCompleteResults() 599 if (FixIt.RemoveRange.isTokenRange()) in ProcessCodeCompleteResults()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | TextDiagnostics.cpp | 79 Replacement Repl(SM, Hint.RemoveRange, Hint.CodeToInsert); in FlushDiagnosticsImpl()
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
D | ListExtensions.cs | 182 list.RemoveRange(size, list.Count - size); in setSize()
|
/external/llvm-project/clang/include/clang/Frontend/ |
D | ASTUnit.h | 92 std::pair<unsigned, unsigned> RemoveRange; member
|
/external/clang/include/clang/Frontend/ |
D | ASTUnit.h | 71 std::pair<unsigned, unsigned> RemoveRange; member
|
/external/llvm-project/clang-tools-extra/clang-tidy/ |
D | ClangTidyDiagnosticConsumer.cpp | 90 CharSourceRange Range = FixIt.RemoveRange; in emitCodeContext()
|