Home
last modified time | relevance | path

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

/external/clang/unittests/Tooling/
DFixItTest.cpp88 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/
DFixItRewriter.cpp153 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/clang/tools/libclang/
DCXLoadedDiagnostic.cpp233 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()
DCXStoredDiagnostic.cpp113 return cxstring::createDup(Hint.CodeToInsert); in getFixIt()
/external/clang/lib/Frontend/
DTextDiagnostic.cpp1006 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()
DDiagnosticRenderer.cpp57 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()
DSerializedDiagnosticPrinter.cpp126 StringRef CodeToInsert) override;
733 Record.push_back(Fix.CodeToInsert.size()); in EmitCodeContext()
735 Fix.CodeToInsert); in EmitCodeContext()
DASTUnit.cpp1290 OutFix.CodeToInsert = InFix.CodeToInsert; in makeStandaloneFixIt()
2566 FH.CodeToInsert = FixIt.CodeToInsert; in TranslateStoredDiagnostics()
/external/clang/include/clang/Basic/
DDiagnostic.h64 std::string CodeToInsert; variable
84 Hint.CodeToInsert = Code;
119 Hint.CodeToInsert = Code; in CreateReplacement()
/external/clang/include/clang/Frontend/
DASTUnit.h73 std::string CodeToInsert; member