Home
last modified time | relevance | path

Searched refs:tooling (Results 1 – 25 of 114) sorted by relevance

12345

/external/clang/unittests/Format/
DCleanupTest.cpp24 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 …]
DFormatTestProto.cpp26 std::vector<tooling::Range> Ranges(1, tooling::Range(Offset, Length)); in format()
27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format()
DSortIncludesTest.cpp23 std::vector<tooling::Range> GetCodeRange(StringRef Code) { in GetCodeRange()
24 return std::vector<tooling::Range>(1, tooling::Range(0, Code.size())); in GetCodeRange()
DFormatTestSelective.cpp26 std::vector<tooling::Range> Ranges(1, tooling::Range(Offset, Length)); in format()
28 tooling::Replacements Replaces = in format()
/external/clang/include/clang/Tooling/
DReplacementsYaml.h24 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/
DFormat.h767 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/
DValueCleanup.cpp26 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()
DValueRewriter.h20 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/
DFormat.cpp800 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 …]
DTokenAnalyzer.cpp41 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()
DTokenAnalyzer.h56 ArrayRef<tooling::Range> Ranges);
84 tooling::Replacements process();
87 virtual tooling::Replacements
90 FormatTokenLexer &Tokens, tooling::Replacements &Result) = 0;
DSortJavaScriptImports.h28 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
30 ArrayRef<tooling::Range> Ranges,
/external/v8/tools/clang/pass_to_move/
DPassToMove.cpp24 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/
DClangFormat.cpp30 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/
DRefactoringCallbacksTest.cpp17 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()
DRefactoringTest.cpp33 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/
DEmptyStringConverter.cpp21 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/
DRefactoringCallbacks.cpp16 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/
DASTMatchersInternalTest.cpp116 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/
DCFGTest.cpp49 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/
DClangFuzzer.cpp36 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/
DExternalSemaSourceTest.cpp23 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/
DRewriteScopedRefptr.cpp28 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/
Dtraffic_annotation_extractor.cpp288 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/
DTranslationUnitGenerator.cpp38 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()

12345