Home
last modified time | relevance | path

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

/external/clang/unittests/Tooling/
DFixItTest.cpp18 using tooling::fixit::createReplacement;
159 TEST(FixItTest, createReplacement) { in TEST() argument
165 FixItHint Hint0 = createReplacement(*P0, *P1, *Context); in TEST()
166 FixItHint Hint1 = createReplacement(*P1, *P0, *Context); in TEST()
195 FixItHint Hint = createReplacement(*P0, *P1, *Context); in TEST()
210 FixItHint Hint = createReplacement(*P0, *P1, *Context); in TEST()
224 FixItHint Hint = createReplacement(*P0, *P1, *Context); in TEST()
DRefactoringTest.cpp37 Replacement createReplacement(SourceLocation Start, unsigned Length, in createReplacement() function in clang::tooling::ReplacementTest
48 Replacement Replace(createReplacement(Location, 4, "")); in TEST_F()
56 Replacement Replace(createReplacement(Location, 17, "")); in TEST_F()
64 Replacement Replace(createReplacement(Location, 0, "result")); in TEST_F()
73 Replacement Replace(createReplacement(Location, 12, "x")); in TEST_F()
82 Replacement Replace1(createReplacement(Location1, 12, "x\ny\n")); in TEST_F()
89 Replacement Replace2(createReplacement(Location2, 1, "f")); in TEST_F()
/external/llvm-project/clang/unittests/Tooling/
DFixItTest.cpp17 using tooling::fixit::createReplacement;
158 TEST(FixItTest, createReplacement) { in TEST() argument
164 FixItHint Hint0 = createReplacement(*P0, *P1, *Context); in TEST()
165 FixItHint Hint1 = createReplacement(*P1, *P0, *Context); in TEST()
194 FixItHint Hint = createReplacement(*P0, *P1, *Context); in TEST()
209 FixItHint Hint = createReplacement(*P0, *P1, *Context); in TEST()
223 FixItHint Hint = createReplacement(*P0, *P1, *Context); in TEST()
DReplacementTest.h43 tooling::Replacement createReplacement(SourceLocation Start, unsigned Length, in createReplacement() function
DRefactoringTest.cpp39 Replacement Replace(createReplacement(Location, 4, "")); in TEST_F()
47 Replacement Replace(createReplacement(Location, 17, "")); in TEST_F()
55 Replacement Replace(createReplacement(Location, 0, "result")); in TEST_F()
64 Replacement Replace(createReplacement(Location, 12, "x")); in TEST_F()
73 Replacement Replace1(createReplacement(Location1, 12, "x\ny\n")); in TEST_F()
80 Replacement Replace2(createReplacement(Location2, 1, "f")); in TEST_F()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DElseAfterReturnCheck.cpp138 Diag << tooling::fixit::createReplacement(CS->getSourceRange(), Repl); in removeElseAndBrackets()
147 Diag << tooling::fixit::createReplacement( in removeElseAndBrackets()
273 Diag << tooling::fixit::createReplacement( in check()
287 Diag << tooling::fixit::createReplacement(SourceRange(If->getIfLoc()), in check()
289 << tooling::fixit::createReplacement(VDeclStmt->getSourceRange(), in check()
308 Diag << tooling::fixit::createReplacement( in check()
DStringCompareCheck.cpp69 Diag << tooling::fixit::createReplacement(*Zero, *Str2, Ctx) in check()
70 << tooling::fixit::createReplacement(*Compare, *Str1->getBase(), in check()
DImplicitBoolConversionCheck.cpp370 Diag << tooling::fixit::createReplacement(*Cast, EquivalentLiteral); in handleCastToBool()
386 Diag << tooling::fixit::createReplacement( in handleCastFromBool()
/external/llvm-project/clang/include/clang/Tooling/
DFixIt.h62 FixItHint createReplacement(const D &Destination, const S &Source, in createReplacement() function
70 FixItHint createReplacement(const D &Destination, StringRef Source) { in createReplacement() function
/external/llvm-project/clang/unittests/Format/
DCleanupTest.cpp318 tooling::Replacement createReplacement(unsigned Offset, unsigned Length, in createReplacement() function in clang::format::__anonfe2bef0d0111::CleanUpReplacementsTest
324 return createReplacement(UINT_MAX, 0, IncludeDirective); in createInsertion()
328 return createReplacement(UINT_MAX, 1, HeaderName); in createDeletion()
383 toReplacements({createReplacement(getOffset(Code, 3, 3), 6, ""), in TEST_F()
384 createReplacement(getOffset(Code, 9, 34), 6, "")}); in TEST_F()
498 {createReplacement(getOffset(Code, 4, 8), 1, "b"), in TEST_F()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSwappedArgumentsCheck.cpp91 << tooling::fixit::createReplacement(*LHS, *RHS, Ctx) in check()
92 << tooling::fixit::createReplacement(*RHS, *LHS, Ctx); in check()
DSuspiciousMemsetUsageCheck.cpp134 D << tooling::fixit::createReplacement(*FillChar, RHSString) in check()
135 << tooling::fixit::createReplacement(*ByteCount, LHSString); in check()
DTerminatingContinueCheck.cpp43 << tooling::fixit::createReplacement(*ContStmt, "break"); in check()
DStringConstructorCheck.cpp149 << tooling::fixit::createReplacement(*P0, *P1, Ctx) in check()
150 << tooling::fixit::createReplacement(*P1, *P0, Ctx); in check()
/external/clang/unittests/Format/
DCleanupTest.cpp246 tooling::Replacement createReplacement(unsigned Offset, unsigned Length, in createReplacement() function in clang::format::__anonef97efdf0111::CleanUpReplacementsTest
252 return createReplacement(UINT_MAX, 0, HeaderName); in createInsertion()
308 createReplacement(getOffset(Code, 3, 3), 6, ""), in TEST_F()
309 createReplacement(getOffset(Code, 9, 34), 6, "")}; in TEST_F()
530 createReplacement(getOffset(Code, 4, 8), 1, "b"), in TEST_F()
DFormatTest.cpp11521 tooling::Replacement createReplacement(SourceLocation Start, unsigned Length, in createReplacement() function in clang::format::__anon571c06600111::ReplacementTest
/external/clang/include/clang/Tooling/
DFixIt.h62 FixItHint createReplacement(const D &Destination, const S &Source, in createReplacement() function
/external/llvm-project/clang-tools-extra/clang-change-namespace/
DChangeNamespace.cpp152 tooling::Replacement createReplacement(SourceLocation Start, SourceLocation End, in createReplacement() function
180 const auto R = createReplacement(Start, End, ReplacementText, SM); in addReplacementOrDie()