/external/clang/unittests/Format/ |
D | CleanupTest.cpp | 24 const std::vector<tooling::Range> &Ranges, in cleanup() 26 tooling::Replacements Replaces = format::cleanup(Style, Code, Ranges); in cleanup() 46 std::vector<tooling::Range> Ranges; in TEST_F() 47 Ranges.push_back(tooling::Range(28, 0)); in TEST_F() 48 Ranges.push_back(tooling::Range(91, 6)); in TEST_F() 49 Ranges.push_back(tooling::Range(132, 0)); in TEST_F() 66 std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size())); in TEST_F() 79 std::vector<tooling::Range> Ranges(1, tooling::Range(14, 0)); in TEST_F() 93 std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size())); in TEST_F() 110 std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size())); in TEST_F() [all …]
|
D | FormatTestProto.cpp | 26 std::vector<tooling::Range> Ranges(1, tooling::Range(Offset, Length)); in format() 27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format()
|
D | SortIncludesTest.cpp | 23 std::vector<tooling::Range> GetCodeRange(StringRef Code) { in GetCodeRange() 24 return std::vector<tooling::Range>(1, tooling::Range(0, Code.size())); in GetCodeRange()
|
D | FormatTestSelective.cpp | 26 std::vector<tooling::Range> Ranges(1, tooling::Range(Offset, Length)); in format() 28 tooling::Replacements Replaces = in format()
|
D | FormatTestJava.cpp | 26 std::vector<tooling::Range> Ranges(1, tooling::Range(Offset, Length)); in format() 27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format()
|
D | SortImportsTestJS.cpp | 27 std::vector<tooling::Range> Ranges(1, tooling::Range(Offset, Length)); in sort()
|
/external/clang/include/clang/Tooling/ |
D | ReplacementsYaml.h | 24 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::Replacement) in LLVM_YAML_IS_SEQUENCE_VECTOR() 31 template <> struct MappingTraits<clang::tooling::Replacement> { in LLVM_YAML_IS_SEQUENCE_VECTOR() 38 NormalizedReplacement(const IO &, const clang::tooling::Replacement &R) in LLVM_YAML_IS_SEQUENCE_VECTOR() 42 clang::tooling::Replacement denormalize(const IO &) { in LLVM_YAML_IS_SEQUENCE_VECTOR() 43 return clang::tooling::Replacement(FilePath, Offset, Length, in LLVM_YAML_IS_SEQUENCE_VECTOR() 53 static void mapping(IO &Io, clang::tooling::Replacement &R) { in LLVM_YAML_IS_SEQUENCE_VECTOR() 54 MappingNormalization<NormalizedReplacement, clang::tooling::Replacement> in LLVM_YAML_IS_SEQUENCE_VECTOR() 65 template <> struct MappingTraits<clang::tooling::TranslationUnitReplacements> { in LLVM_YAML_IS_SEQUENCE_VECTOR() 67 clang::tooling::TranslationUnitReplacements &Doc) { in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
/external/clang/include/clang/Format/ |
D | Format.h | 767 tooling::Replacements sortIncludes(const FormatStyle &Style, StringRef Code, 768 ArrayRef<tooling::Range> Ranges, 775 llvm::Expected<tooling::Replacements> 776 formatReplacements(StringRef Code, const tooling::Replacements &Replaces, 784 llvm::Expected<tooling::Replacements> 785 cleanupAroundReplacements(StringRef Code, const tooling::Replacements &Replaces, 800 tooling::Replacements reformat(const FormatStyle &Style, 808 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code, 809 ArrayRef<tooling::Range> Ranges, 817 tooling::Replacements cleanup(const FormatStyle &Style, [all …]
|
/external/clang/lib/Format/ |
D | Format.cpp | 800 tooling::Replacements 803 FormatTokenLexer &Tokens, tooling::Replacements &Result) override { in analyze() 835 tooling::Replacements &Result) { in requoteJSStringLiteral() 858 Result.insert(tooling::Replacement(Env.getSourceManager(), Start, in requoteJSStringLiteral() 991 tooling::Replacements 994 FormatTokenLexer &Tokens, tooling::Replacements &Result) override { in analyze() 1149 tooling::Replacements generateFixes() { in generateFixes() 1150 tooling::Replacements Fixes; in generateFixes() 1167 Fixes.insert(tooling::Replacement(Env.getSourceManager(), SR, "")); in generateFixes() 1203 static bool affectsRange(ArrayRef<tooling::Range> Ranges, unsigned Start, in affectsRange() [all …]
|
D | TokenAnalyzer.cpp | 41 ArrayRef<tooling::Range> Ranges) { in CreateVirtualEnvironment() 67 for (const tooling::Range &Range : Ranges) { in CreateVirtualEnvironment() 91 tooling::Replacements TokenAnalyzer::process() { in process() 92 tooling::Replacements Result; in process() 109 tooling::Replacements RunResult = in process() 114 for (tooling::Replacements::iterator I = RunResult.begin(), in process()
|
D | TokenAnalyzer.h | 56 ArrayRef<tooling::Range> Ranges); 84 tooling::Replacements process(); 87 virtual tooling::Replacements 90 FormatTokenLexer &Tokens, tooling::Replacements &Result) = 0;
|
D | SortJavaScriptImports.h | 28 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style, 30 ArrayRef<tooling::Range> Ranges,
|
D | SortJavaScriptImports.cpp | 127 tooling::Replacements 130 FormatTokenLexer &Tokens, tooling::Replacements &Result) override { in analyze() 195 Result.insert(tooling::Replacement( in analyze() 430 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style, in sortJavaScriptImports() 432 ArrayRef<tooling::Range> Ranges, in sortJavaScriptImports()
|
/external/clang/tools/clang-format/ |
D | ClangFormat.cpp | 30 using clang::tooling::Replacements; 131 std::vector<tooling::Range> &Ranges) { in fillRanges() 163 Ranges.push_back(tooling::Range(Offset, Length)); in fillRanges() 196 Ranges.push_back(tooling::Range(Offset, Length)); in fillRanges() 250 std::vector<tooling::Range> Ranges; in format() 260 auto ChangedCode = tooling::applyAllReplacements(Code->getBuffer(), Replaces); in format() 271 Replaces = tooling::mergeReplacements(Replaces, FormatChanges); in format() 278 << tooling::shiftedCodePosition(FormatChanges, CursorPosition) in format() 294 tooling::applyAllReplacements(Replaces, Rewrite); in format() 303 << tooling::shiftedCodePosition(FormatChanges, CursorPosition) in format()
|
/external/clang/unittests/Tooling/ |
D | RefactoringCallbacksTest.cpp | 17 namespace tooling { namespace 28 std::unique_ptr<tooling::FrontendActionFactory> Factory( in expectRewritten() 29 tooling::newFrontendActionFactory(&Finder)); in expectRewritten() 30 ASSERT_TRUE(tooling::runToolOnCode(Factory->create(), Code)) in expectRewritten() 34 EXPECT_TRUE(tooling::applyAllReplacements(Callback.getReplacements(), in expectRewritten()
|
D | RefactoringTest.cpp | 33 namespace tooling { namespace 186 tooling::Replacements Replaces; in TEST_F() 188 Replaces.insert(tooling::Replacement( in TEST_F() 190 Replaces.insert(tooling::Replacement( in TEST_F() 192 Replaces.insert(tooling::Replacement( in TEST_F() 194 Replaces.insert(tooling::Replacement( in TEST_F() 650 tooling::Replacements Merged = mergeReplacements(First, Second); in mergeAndTestRewrite() 655 for (tooling::Replacement M : Merged) in mergeAndTestRewrite() 664 tooling::Replacements Merged = mergeReplacements(First, Second); in mergeAndTestRewrite() 669 for (tooling::Replacement M : Merged) in mergeAndTestRewrite()
|
/external/clang/lib/Tooling/ |
D | RefactoringCallbacks.cpp | 16 namespace tooling { namespace 19 tooling::Replacements &RefactoringCallback::getReplacements() { in getReplacements() 26 return tooling::Replacement(Sources, CharSourceRange::getTokenRange( in replaceStmtWithText() 43 Replace.insert(tooling::Replacement( in run()
|
D | Refactoring.cpp | 27 namespace tooling { namespace 58 return tooling::applyAllReplacements(Replace, Rewrite); in applyAllReplacements()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersInternalTest.cpp | 116 ASSERT_TRUE(tooling::runToolOnCode(Factory->create(), "int x;")); in TEST() 138 ASSERT_TRUE(tooling::runToolOnCode(Factory->create(), "int x;")); in TEST() 142 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("int x;")); in TEST() 164 ASSERT_TRUE(tooling::runToolOnCode(Factory->create(), "int x;")); in TEST() 168 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("int x;")); in TEST() 176 clang::tooling::buildASTFromCode("struct { int *foo; };"); in TEST()
|
D | ASTMatchersTest.h | 21 using clang::tooling::buildASTFromCodeWithArgs; 22 using clang::tooling::newFrontendActionFactory; 23 using clang::tooling::runToolOnCodeWithArgs; 24 using clang::tooling::FrontendActionFactory; 25 using clang::tooling::FileContentMappings;
|
/external/clang/unittests/Analysis/ |
D | CFGTest.cpp | 49 std::unique_ptr<tooling::FrontendActionFactory> Factory( in TEST() 50 tooling::newFrontendActionFactory(&Finder)); in TEST() 52 ASSERT_TRUE(tooling::runToolOnCodeWithArgs(Factory->create(), Code, Args)); in TEST()
|
/external/clang/tools/clang-fuzzer/ |
D | ClangFuzzer.cpp | 36 tooling::newInvocation(&Diagnostics, CC1Args)); in LLVMFuzzerTestOneInput() 40 std::unique_ptr<tooling::ToolAction> action( in LLVMFuzzerTestOneInput() 41 tooling::newFrontendActionFactory<clang::SyntaxOnlyAction>()); in LLVMFuzzerTestOneInput()
|
/external/clang/unittests/Sema/ |
D | ExternalSemaSourceTest.cpp | 23 using namespace clang::tooling; 229 ASSERT_TRUE(clang::tooling::runToolOnCodeWithArgs( in TEST() 244 ASSERT_TRUE(clang::tooling::runToolOnCodeWithArgs( in TEST() 264 ASSERT_TRUE(clang::tooling::runToolOnCodeWithArgs( in TEST() 280 ASSERT_TRUE(clang::tooling::runToolOnCodeWithArgs( in TEST() 297 ASSERT_TRUE(clang::tooling::runToolOnCodeWithArgs( in TEST() 316 ASSERT_FALSE(clang::tooling::runToolOnCodeWithArgs( in TEST()
|
/external/clang/lib/Tooling/Core/ |
D | Lookup.cpp | 17 using namespace clang::tooling; 85 std::string tooling::replaceNestedName(const NestedNameSpecifier *Use, in replaceNestedName()
|
/external/clang/unittests/AST/ |
D | PostOrderASTVisitor.cpp | 76 auto ASTUnit = tooling::buildASTFromCode( in TEST() 101 auto ASTUnit = tooling::buildASTFromCode( in TEST()
|