/external/clang/unittests/Tooling/ |
D | FixItTest.cpp | 18 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()
|
D | RefactoringTest.cpp | 37 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/ |
D | FixItTest.cpp | 17 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()
|
D | ReplacementTest.h | 43 tooling::Replacement createReplacement(SourceLocation Start, unsigned Length, in createReplacement() function
|
D | RefactoringTest.cpp | 39 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/ |
D | ElseAfterReturnCheck.cpp | 138 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()
|
D | StringCompareCheck.cpp | 69 Diag << tooling::fixit::createReplacement(*Zero, *Str2, Ctx) in check() 70 << tooling::fixit::createReplacement(*Compare, *Str1->getBase(), in check()
|
D | ImplicitBoolConversionCheck.cpp | 370 Diag << tooling::fixit::createReplacement(*Cast, EquivalentLiteral); in handleCastToBool() 386 Diag << tooling::fixit::createReplacement( in handleCastFromBool()
|
/external/llvm-project/clang/include/clang/Tooling/ |
D | FixIt.h | 62 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/ |
D | CleanupTest.cpp | 318 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/ |
D | SwappedArgumentsCheck.cpp | 91 << tooling::fixit::createReplacement(*LHS, *RHS, Ctx) in check() 92 << tooling::fixit::createReplacement(*RHS, *LHS, Ctx); in check()
|
D | SuspiciousMemsetUsageCheck.cpp | 134 D << tooling::fixit::createReplacement(*FillChar, RHSString) in check() 135 << tooling::fixit::createReplacement(*ByteCount, LHSString); in check()
|
D | TerminatingContinueCheck.cpp | 43 << tooling::fixit::createReplacement(*ContStmt, "break"); in check()
|
D | StringConstructorCheck.cpp | 149 << tooling::fixit::createReplacement(*P0, *P1, Ctx) in check() 150 << tooling::fixit::createReplacement(*P1, *P0, Ctx); in check()
|
/external/clang/unittests/Format/ |
D | CleanupTest.cpp | 246 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()
|
D | FormatTest.cpp | 11521 tooling::Replacement createReplacement(SourceLocation Start, unsigned Length, in createReplacement() function in clang::format::__anon571c06600111::ReplacementTest
|
/external/clang/include/clang/Tooling/ |
D | FixIt.h | 62 FixItHint createReplacement(const D &Destination, const S &Source, in createReplacement() function
|
/external/llvm-project/clang-tools-extra/clang-change-namespace/ |
D | ChangeNamespace.cpp | 152 tooling::Replacement createReplacement(SourceLocation Start, SourceLocation End, in createReplacement() function 180 const auto R = createReplacement(Start, End, ReplacementText, SM); in addReplacementOrDie()
|