Home
last modified time | relevance | path

Searched refs:CodeToInsert (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/clang/unittests/Tooling/
H A DFixItTest.cpp68 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 DFixItRewriter.cpp159 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 DCXLoadedDiagnostic.cpp230 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 DCXStoredDiagnostic.cpp109 return cxstring::createDup(Hint.CodeToInsert); in getFixIt()
H A DCIndexCodeCompletion.cpp348 return cxstring::createRef(FixIt.CodeToInsert.c_str()); in clang_getCompletionFixIt()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DTextDiagnostic.cpp1072 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 DDiagnosticRenderer.cpp64 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 DSerializedDiagnosticPrinter.cpp117 StringRef CodeToInsert) override;
721 Record.push_back(Fix.CodeToInsert.size()); in EmitCodeContext()
723 Fix.CodeToInsert); in EmitCodeContext()
H A DASTUnit.cpp1241 OutFix.CodeToInsert = InFix.CodeToInsert; in makeStandaloneFixIt()
2379 FH.CodeToInsert = FixIt.CodeToInsert; in TranslateStoredDiagnostics()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DTextDiagnostics.cpp80 Replacement Repl(SM, Hint.RemoveRange, Hint.CodeToInsert); in FlushDiagnosticsImpl()
H A DPlistDiagnostics.cpp233 EmitString(o, fixit.CodeToInsert); in EmitFixits()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DDiagnostic.h83 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 DClangExpressionParser.cpp1232 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 DASTUnit.h94 std::string CodeToInsert; member
/llvm-project-15.0.7/clang/lib/Sema/
H A DCodeCompleteConsumer.cpp711 << " to \"" << FixIt.CodeToInsert << "\")"; in ProcessCodeCompleteResults()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DClangTidyDiagnosticConsumer.cpp123 FixIt.CodeToInsert); in emitCodeContext()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DDiagnostics.cpp762 llvm::StringRef Insert = FixIt.CodeToInsert; in HandleDiagnostic()
H A DSourceCode.cpp555 Result.newText = FixIt.CodeToInsert; in toTextEdit()