Home
last modified time | relevance | path

Searched refs:runToolOnCode (Results 1 – 8 of 8) sorted by relevance

/external/clang/unittests/Tooling/
DToolingTest.cpp64 TEST(runToolOnCode, FindsNoTopLevelDeclOnEmptyCode) { in TEST() argument
67 runToolOnCode(new TestAction(llvm::make_unique<FindTopLevelDeclConsumer>( in TEST()
104 TEST(runToolOnCode, FindsClassDecl) { in TEST() argument
107 runToolOnCode(new TestAction(llvm::make_unique<FindClassDeclXConsumer>( in TEST()
114 runToolOnCode(new TestAction(llvm::make_unique<FindClassDeclXConsumer>( in TEST()
257 TEST(runToolOnCode, TestSkipFunctionBody) { in TEST() argument
261 EXPECT_TRUE(runToolOnCode(new SkipBodyAction, in TEST()
263 EXPECT_FALSE(runToolOnCode(new SkipBodyAction, in TEST()
296 EXPECT_TRUE(runToolOnCode( in TEST()
299 EXPECT_TRUE(runToolOnCode( in TEST()
[all …]
DRefactoringCallbacksTest.cpp30 ASSERT_TRUE(tooling::runToolOnCode(Factory->create(), Code)) in expectRewritten()
DRefactoringTest.cpp322 return runToolOnCode(new TestAction(this), Code); in runOver()
/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()
164 ASSERT_TRUE(tooling::runToolOnCode(Factory->create(), "int x;")); in TEST()
/external/clang/docs/
DLibTooling.rst27 example to unit test parts of the Clang AST, ``runToolOnCode`` is what you
34 TEST(runToolOnCode, CanSyntaxCheckCode) {
35 // runToolOnCode returns whether the action was correctly run over the
37 EXPECT_TRUE(runToolOnCode(new clang::SyntaxOnlyAction, "class X {};"));
DRAVFrontendAction.rst199 clang::tooling::runToolOnCode(new FindNamedClassAction, argv[1]);
/external/clang/include/clang/Tooling/
DTooling.h150 bool runToolOnCode(clang::FrontendAction *ToolAction, const Twine &Code,
/external/clang/lib/Tooling/
DTooling.cpp104 bool runToolOnCode(clang::FrontendAction *ToolAction, const Twine &Code, in runToolOnCode() function