/external/llvm-project/clang/unittests/Tooling/ |
D | FixItTest.cpp | 87 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST() 93 EXPECT_TRUE(Hint0.CodeToInsert.empty()); in TEST() 99 EXPECT_TRUE(Hint1.CodeToInsert.empty()); in TEST() 122 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST() 131 EXPECT_TRUE(Hint0.CodeToInsert.empty()); in TEST() 140 EXPECT_TRUE(Hint1.CodeToInsert.empty()); in TEST() 152 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST() 170 EXPECT_EQ(Hint0.CodeToInsert, "y"); in TEST() 175 EXPECT_EQ(Hint1.CodeToInsert, "x"); in TEST() 200 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST() [all …]
|
/external/clang/unittests/Tooling/ |
D | FixItTest.cpp | 88 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST() 94 EXPECT_TRUE(Hint0.CodeToInsert.empty()); in TEST() 100 EXPECT_TRUE(Hint1.CodeToInsert.empty()); in TEST() 123 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST() 132 EXPECT_TRUE(Hint0.CodeToInsert.empty()); in TEST() 141 EXPECT_TRUE(Hint1.CodeToInsert.empty()); in TEST() 153 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST() 171 EXPECT_EQ(Hint0.CodeToInsert, "y"); in TEST() 176 EXPECT_EQ(Hint1.CodeToInsert, "x"); in TEST() 201 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST() [all …]
|
/external/clang/lib/Frontend/Rewrite/ |
D | FixItRewriter.cpp | 153 if (Hint.CodeToInsert.empty()) { 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/lib/Frontend/Rewrite/ |
D | FixItRewriter.cpp | 159 if (Hint.CodeToInsert.empty()) { in HandleDiagnostic() 169 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in HandleDiagnostic() 171 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in HandleDiagnostic()
|
/external/llvm-project/clang/tools/libclang/ |
D | CXLoadedDiagnostic.cpp | 230 StringRef CodeToInsert) override; 363 StringRef CodeToInsert) { in visitFixitRecord() argument 368 if (CodeToInsert.size() > 65536) in visitFixitRecord() 371 std::make_pair(SR, TopDiags->copyString(CodeToInsert))); in visitFixitRecord()
|
D | CXStoredDiagnostic.cpp | 109 return cxstring::createDup(Hint.CodeToInsert); in getFixIt()
|
D | CIndexCodeCompletion.cpp | 348 return cxstring::createRef(FixIt.CodeToInsert.c_str()); in clang_getCompletionFixIt()
|
/external/clang/tools/libclang/ |
D | CXLoadedDiagnostic.cpp | 233 StringRef CodeToInsert) override; 366 StringRef CodeToInsert) { in visitFixitRecord() argument 371 if (CodeToInsert.size() > 65536) in visitFixitRecord() 374 std::make_pair(SR, TopDiags->copyString(CodeToInsert))); in visitFixitRecord()
|
D | CXStoredDiagnostic.cpp | 113 return cxstring::createDup(Hint.CodeToInsert); in getFixIt()
|
/external/clang/lib/Frontend/ |
D | TextDiagnostic.cpp | 1006 if (!I->CodeToInsert.empty()) { in buildFixItInsertionLine() 1012 StringRef(I->CodeToInsert).find_first_of("\n\r") == StringRef::npos) { in buildFixItInsertionLine() 1038 (HintCol - PrevHintEndCol) + I->CodeToInsert.size(); in buildFixItInsertionLine() 1042 std::copy(I->CodeToInsert.begin(), I->CodeToInsert.end(), in buildFixItInsertionLine() 1043 FixItInsertionLine.end() - I->CodeToInsert.size()); in buildFixItInsertionLine() 1046 HintCol + llvm::sys::locale::columnWidth(I->CodeToInsert); in buildFixItInsertionLine() 1274 OS.write_escaped(I->CodeToInsert); in emitParseableFixits()
|
D | DiagnosticRenderer.cpp | 57 if (Hint.CodeToInsert.empty()) { in mergeFixits() 67 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in mergeFixits() 69 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in mergeFixits()
|
D | SerializedDiagnosticPrinter.cpp | 126 StringRef CodeToInsert) override; 733 Record.push_back(Fix.CodeToInsert.size()); in EmitCodeContext() 735 Fix.CodeToInsert); in EmitCodeContext()
|
D | ASTUnit.cpp | 1290 OutFix.CodeToInsert = InFix.CodeToInsert; in makeStandaloneFixIt() 2566 FH.CodeToInsert = FixIt.CodeToInsert; in TranslateStoredDiagnostics()
|
/external/llvm-project/clang/lib/Frontend/ |
D | TextDiagnostic.cpp | 1082 if (!I->CodeToInsert.empty()) { in buildFixItInsertionLine() 1089 StringRef(I->CodeToInsert).find_first_of("\n\r") == StringRef::npos) { in buildFixItInsertionLine() 1115 (HintCol - PrevHintEndCol) + I->CodeToInsert.size(); in buildFixItInsertionLine() 1119 std::copy(I->CodeToInsert.begin(), I->CodeToInsert.end(), in buildFixItInsertionLine() 1120 FixItInsertionLine.end() - I->CodeToInsert.size()); in buildFixItInsertionLine() 1123 HintCol + llvm::sys::locale::columnWidth(I->CodeToInsert); in buildFixItInsertionLine() 1363 OS.write_escaped(I->CodeToInsert); in emitParseableFixits()
|
D | DiagnosticRenderer.cpp | 64 if (Hint.CodeToInsert.empty()) { in mergeFixits() 74 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in mergeFixits() 76 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in mergeFixits()
|
D | SerializedDiagnosticPrinter.cpp | 118 StringRef CodeToInsert) override; 722 Record.push_back(Fix.CodeToInsert.size()); in EmitCodeContext() 724 Fix.CodeToInsert); in EmitCodeContext()
|
D | ASTUnit.cpp | 1254 OutFix.CodeToInsert = InFix.CodeToInsert; in makeStandaloneFixIt() 2403 FH.CodeToInsert = FixIt.CodeToInsert; in TranslateStoredDiagnostics()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | TextDiagnostics.cpp | 79 Replacement Repl(SM, Hint.RemoveRange, Hint.CodeToInsert); in FlushDiagnosticsImpl()
|
/external/clang/include/clang/Basic/ |
D | Diagnostic.h | 64 std::string CodeToInsert; variable 84 Hint.CodeToInsert = Code; 119 Hint.CodeToInsert = Code; in CreateReplacement()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | Diagnostic.h | 82 std::string CodeToInsert; variable 102 Hint.CodeToInsert = std::string(Code); 137 Hint.CodeToInsert = std::string(Code); in CreateReplacement()
|
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
D | ClangExpressionParser.cpp | 1218 if (fixit.CodeToInsert.empty()) { 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/include/clang/Frontend/ |
D | ASTUnit.h | 94 std::string CodeToInsert; member
|
/external/clang/include/clang/Frontend/ |
D | ASTUnit.h | 73 std::string CodeToInsert; member
|
/external/llvm-project/clang/lib/Sema/ |
D | CodeCompleteConsumer.cpp | 607 << " to \"" << FixIt.CodeToInsert << "\")"; in ProcessCodeCompleteResults()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | Diagnostics.cpp | 693 llvm::StringRef Insert = FixIt.CodeToInsert; in HandleDiagnostic()
|