/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()
|
/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/v8/tools/clang/value_cleanup/ |
D | ValueCleanup.cpp | 26 using clang::tooling::CommonOptionsParser; 27 using clang::tooling::Replacement; 40 clang::tooling::ClangTool tool(options.getCompilations(), in main() 49 std::unique_ptr<clang::tooling::FrontendActionFactory> factory = in main() 50 clang::tooling::newFrontendActionFactory(&match_finder); in main()
|
D | ValueRewriter.h | 20 explicit ValueRewriter(std::set<clang::tooling::Replacement>* replacements); 30 std::set<clang::tooling::Replacement>* replacements); 41 std::set<clang::tooling::Replacement>* const replacements_;
|
/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,
|
/external/v8/tools/clang/pass_to_move/ |
D | PassToMove.cpp | 24 using clang::tooling::CommonOptionsParser; 25 using clang::tooling::Replacement; 26 using clang::tooling::Replacements; 82 clang::tooling::ClangTool tool(options.getCompilations(), in main() 97 std::unique_ptr<clang::tooling::FrontendActionFactory> factory = in main() 98 clang::tooling::newFrontendActionFactory(&match_finder); in main()
|
/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/v8/tools/clang/empty_string/ |
D | EmptyStringConverter.cpp | 21 using clang::tooling::CommonOptionsParser; 22 using clang::tooling::Replacement; 23 using clang::tooling::Replacements; 168 clang::tooling::ClangTool tool(options.getCompilations(), in main() 176 std::unique_ptr<clang::tooling::FrontendActionFactory> frontend_factory = in main() 177 clang::tooling::newFrontendActionFactory(&match_finder); in main()
|
/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()
|
/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()
|
/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/v8/tools/clang/rewrite_scoped_refptr/ |
D | RewriteScopedRefptr.cpp | 28 using clang::tooling::CommonOptionsParser; 29 using clang::tooling::Replacement; 30 using clang::tooling::Replacements; 271 clang::tooling::ClangTool tool(options.getCompilations(), in main() 422 std::unique_ptr<clang::tooling::FrontendActionFactory> factory = in main() 423 clang::tooling::newFrontendActionFactory(&match_finder); in main()
|
/external/v8/tools/clang/traffic_annotation_extractor/ |
D | traffic_annotation_extractor.cpp | 288 int RunMatchers(clang::tooling::ClangTool* clang_tool, Collector* collector) { in RunMatchers() 385 std::unique_ptr<clang::tooling::FrontendActionFactory> frontend_factory = in RunMatchers() 386 clang::tooling::newFrontendActionFactory(&match_finder); in RunMatchers() 395 clang::tooling::CommonOptionsParser::HelpMessage); 398 clang::tooling::CommonOptionsParser options(argc, argv, ToolCategory); in main() 399 clang::tooling::ClangTool tool(options.getCompilations(), in main()
|
/external/v8/tools/clang/translation_unit/ |
D | TranslationUnitGenerator.cpp | 38 using clang::tooling::CommonOptionsParser; 277 std::unique_ptr<clang::tooling::FrontendActionFactory> frontend_factory = in main() 278 clang::tooling::newFrontendActionFactory<CompilationIndexerAction>(); in main() 279 clang::tooling::ClangTool tool(options.getCompilations(), in main()
|