| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | FixItTest.cpp | 68 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST() 73 EXPECT_TRUE(Hint0.CodeToInsert.empty()); in TEST() 78 EXPECT_TRUE(Hint1.CodeToInsert.empty()); in TEST() 96 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST() 104 EXPECT_TRUE(Hint0.CodeToInsert.empty()); in TEST() 123 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST() 147 EXPECT_EQ(Hint0.CodeToInsert, "y"); in TEST() 152 EXPECT_EQ(Hint1.CodeToInsert, "x"); in TEST() 167 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST() 178 EXPECT_EQ("y", Hint.CodeToInsert); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/lib/Frontend/Rewrite/ |
| H A 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()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A 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()
|
| H A D | CXStoredDiagnostic.cpp | 109 return cxstring::createDup(Hint.CodeToInsert); in getFixIt()
|
| H A D | CIndexCodeCompletion.cpp | 348 return cxstring::createRef(FixIt.CodeToInsert.c_str()); in clang_getCompletionFixIt()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | TextDiagnostic.cpp | 1072 if (!I->CodeToInsert.empty()) { in buildFixItInsertionLine() 1079 StringRef(I->CodeToInsert).find_first_of("\n\r") == StringRef::npos) { in buildFixItInsertionLine() 1105 (HintCol - PrevHintEndCol) + I->CodeToInsert.size(); in buildFixItInsertionLine() 1109 std::copy(I->CodeToInsert.begin(), I->CodeToInsert.end(), in buildFixItInsertionLine() 1110 FixItInsertionLine.end() - I->CodeToInsert.size()); in buildFixItInsertionLine() 1113 HintCol + llvm::sys::locale::columnWidth(I->CodeToInsert); in buildFixItInsertionLine() 1353 OS.write_escaped(I->CodeToInsert); in emitParseableFixits()
|
| H A 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()
|
| H A D | SerializedDiagnosticPrinter.cpp | 117 StringRef CodeToInsert) override; 721 Record.push_back(Fix.CodeToInsert.size()); in EmitCodeContext() 723 Fix.CodeToInsert); in EmitCodeContext()
|
| H A D | ASTUnit.cpp | 1241 OutFix.CodeToInsert = InFix.CodeToInsert; in makeStandaloneFixIt() 2379 FH.CodeToInsert = FixIt.CodeToInsert; in TranslateStoredDiagnostics()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | TextDiagnostics.cpp | 80 Replacement Repl(SM, Hint.RemoveRange, Hint.CodeToInsert); in FlushDiagnosticsImpl()
|
| H A D | PlistDiagnostics.cpp | 233 EmitString(o, fixit.CodeToInsert); in EmitFixits()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | Diagnostic.h | 83 std::string CodeToInsert; variable 103 Hint.CodeToInsert = std::string(Code); 138 Hint.CodeToInsert = std::string(Code); in CreateReplacement()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangExpressionParser.cpp | 1232 if (fixit.CodeToInsert.empty()) { in ApplyFixIt() 1244 commit.replace(fixit.RemoveRange, fixit.CodeToInsert); in ApplyFixIt() 1247 commit.insert(fixit.RemoveRange.getBegin(), fixit.CodeToInsert, in ApplyFixIt()
|
| /llvm-project-15.0.7/clang/include/clang/Frontend/ |
| H A D | ASTUnit.h | 94 std::string CodeToInsert; member
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | CodeCompleteConsumer.cpp | 711 << " to \"" << FixIt.CodeToInsert << "\")"; in ProcessCodeCompleteResults()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/ |
| H A D | ClangTidyDiagnosticConsumer.cpp | 123 FixIt.CodeToInsert); in emitCodeContext()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Diagnostics.cpp | 762 llvm::StringRef Insert = FixIt.CodeToInsert; in HandleDiagnostic()
|
| H A D | SourceCode.cpp | 555 Result.newText = FixIt.CodeToInsert; in toTextEdit()
|