Home
last modified time | relevance | path

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

/llvm-project/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()
112 EXPECT_TRUE(Hint1.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()
[all …]
/llvm-project/clang/lib/Frontend/Rewrite/
H A DFixItRewriter.cpp161 if (Hint.CodeToInsert.empty()) { in HandleDiagnostic()
171 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in HandleDiagnostic()
173 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in HandleDiagnostic()
/llvm-project/clang/tools/libclang/
H A DCXLoadedDiagnostic.cpp231 StringRef CodeToInsert) override;
365 StringRef CodeToInsert) { in visitFixitRecord() argument
370 if (CodeToInsert.size() > 65536) in visitFixitRecord()
373 std::make_pair(SR, TopDiags->copyString(CodeToInsert))); in visitFixitRecord()
H A DCXStoredDiagnostic.cpp111 return cxstring::createDup(Hint.CodeToInsert);
H A DCIndexCodeCompletion.cpp348 return cxstring::createRef(FixIt.CodeToInsert.c_str()); in clang_getCompletionFixIt()
/llvm-project/clang/lib/Frontend/
H A DTextDiagnostic.cpp1013 if (H.CodeToInsert.empty()) in buildFixItInsertionLine()
1022 StringRef(H.CodeToInsert).find_first_of("\n\r") == StringRef::npos) { in buildFixItInsertionLine()
1049 H.CodeToInsert.size(); in buildFixItInsertionLine()
1053 std::copy(H.CodeToInsert.begin(), H.CodeToInsert.end(), in buildFixItInsertionLine()
1054 FixItInsertionLine.end() - H.CodeToInsert.size()); in buildFixItInsertionLine()
1056 PrevHintEndCol = HintCol + llvm::sys::locale::columnWidth(H.CodeToInsert); in buildFixItInsertionLine()
1544 OS.write_escaped(H.CodeToInsert); in emitParseableFixits()
H A DDiagnosticRenderer.cpp63 if (Hint.CodeToInsert.empty()) { in mergeFixits()
73 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in mergeFixits()
75 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in mergeFixits()
H A DSerializedDiagnosticPrinter.cpp115 StringRef CodeToInsert) override;
721 Record.push_back(Fix.CodeToInsert.size()); in EmitCodeContext()
723 Fix.CodeToInsert); in EmitCodeContext()
H A DASTUnit.cpp1293 OutFix.CodeToInsert = InFix.CodeToInsert;
2434 FH.CodeToInsert = FixIt.CodeToInsert; in TranslateStoredDiagnostics()
/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DTextDiagnostics.cpp80 Replacement Repl(SM, Hint.RemoveRange, Hint.CodeToInsert); in FlushDiagnosticsImpl()
H A DPlistDiagnostics.cpp234 EmitString(o, fixit.CodeToInsert); in EmitFixits()
/llvm-project/clang/include/clang/Basic/
H A DDiagnostic.h87 std::string CodeToInsert;
107 Hint.CodeToInsert = std::string(Code);
142 Hint.CodeToInsert = std::string(Code); in CreateReplacement()
83 std::string CodeToInsert; global() variable
/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangExpressionParser.cpp1381 if (fixit.CodeToInsert.empty()) { in DoPrepareForExecution()
1393 commit.replace(fixit.RemoveRange, fixit.CodeToInsert); in DoPrepareForExecution()
1396 commit.insert(fixit.RemoveRange.getBegin(), fixit.CodeToInsert, in DoPrepareForExecution()
/llvm-project/clang/include/clang/Frontend/
H A DASTUnit.h94 std::string CodeToInsert; member
/llvm-project/clang/lib/Sema/
H A DCodeCompleteConsumer.cpp714 << " to \"" << FixIt.CodeToInsert << "\")"; in ProcessCodeCompleteResults()
/llvm-project/clang-tools-extra/clang-tidy/
H A DClangTidyDiagnosticConsumer.cpp124 FixIt.CodeToInsert); in emitCodeContext()
/llvm-project/clang-tools-extra/clangd/
H A DDiagnostics.cpp784 llvm::StringRef Insert = FixIt.CodeToInsert; in HandleDiagnostic()
H A DSourceCode.cpp561 Result.newText = FixIt.CodeToInsert; in toTextEdit()