Home
last modified time | relevance | path

Searched refs:buildASTFromCode (Results 1 – 24 of 24) sorted by relevance

/external/llvm-project/clang/unittests/Analysis/
DExprMutationAnalyzerTest.cpp41 std::unique_ptr<ASTUnit> buildASTFromCode(const Twine &Code) { in buildASTFromCode() function
109 const auto AST = buildASTFromCode("void f() { int x; x; }"); in TEST()
126 const auto AST = buildASTFromCode("void f() { int x; " + ModExpr + "; }"); in TEST_P()
135 const auto AST = buildASTFromCode("void f() { int x; " + ModExpr + "; }"); in TEST_P()
166 buildASTFromCode("void f() { int y = 0, x; " + ModExpr + "; }"); in TEST_P()
178 buildASTFromCode("void f() { int y = 0, x; " + ModExpr + "; }"); in TEST_P()
189 buildASTFromCode("void f() { int y = 0, x; " + ModExpr + "; }"); in TEST_P()
199 buildASTFromCode("void f() { int y = 0, x; " + ModExpr + "; }"); in TEST_P()
211 const auto AST = buildASTFromCode("struct Base {void nonconst(); };" in TEST()
227 const auto AST = buildASTFromCode("void f() { int x; " + ModExpr + "; }"); in TEST_P()
[all …]
DCloneDetectionTest.cpp56 clang::tooling::buildASTFromCode("void foo1(int &a1) { a1++; }\n" in TEST()
/external/llvm-project/clang/unittests/AST/
DASTTraverserTest.cpp161 auto AST = buildASTFromCode(R"cpp( in TEST()
283 auto AST = buildASTFromCode(R"cpp( in TEST()
636 auto AST = buildASTFromCode(R"cpp( in TEST()
677 auto AST = buildASTFromCode(R"cpp( in TEST()
718 auto AST = buildASTFromCode(R"cpp( in TEST()
1066 auto AST = buildASTFromCode(R"cpp( in TEST()
1452 auto AST = buildASTFromCode(R"cpp( in TEST()
DASTContextParentMapTest.cpp85 tooling::buildASTFromCode("struct foo { int bar; };", "foo.cpp", in TEST()
DSourceLocationTest.cpp903 auto AST = tooling::buildASTFromCode(Example.code()); in TEST()
/external/clang/unittests/AST/
DPostOrderASTVisitor.cpp76 auto ASTUnit = tooling::buildASTFromCode( in TEST()
101 auto ASTUnit = tooling::buildASTFromCode( in TEST()
/external/clang/unittests/ASTMatchers/
DASTMatchersInternalTest.cpp142 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("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/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersInternalTest.cpp134 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("int x;")); in TEST()
160 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("int x;")); in TEST()
168 clang::tooling::buildASTFromCode("struct { int *foo; };"); in TEST()
DASTMatchersNodeTest.cpp2234 auto astUnit = tooling::buildASTFromCode(SourceCode); in TEST()
/external/llvm-project/clang-tools-extra/unittests/clang-query/
DQueryEngineTest.cpp37 : S(mkASTUnit2(buildASTFromCode("void foo1(void) {}\nvoid foo2(void) {}", in QueryEngineTest()
39 buildASTFromCode("void bar1(void) {}\nvoid bar2(void) {}", in QueryEngineTest()
/external/llvm-project/clang/unittests/Tooling/RecursiveASTVisitorTests/
DTraversalScope.cpp27 auto AST = tooling::buildASTFromCode( in TEST()
/external/llvm-project/clang/unittests/Rewrite/
DRewriterTest.cpp29 AST = tooling::buildASTFromCode(Code); in RangeTypeTest()
/external/clang/unittests/Tooling/
DToolingTest.cpp120 TEST(buildASTFromCode, FindsClassDecl) { in TEST() argument
121 std::unique_ptr<ASTUnit> AST = buildASTFromCode("class X;"); in TEST()
125 AST = buildASTFromCode("class Y;"); in TEST()
/external/llvm-project/clang/docs/
DLibASTImporter.rst93 std::unique_ptr<ASTUnit> ToUnit = buildASTFromCode(
95 std::unique_ptr<ASTUnit> FromUnit = buildASTFromCode(
221 std::unique_ptr<ASTUnit> ToUnit = buildASTFromCode(
223 std::unique_ptr<ASTUnit> FromUnit = buildASTFromCode(
291 std::unique_ptr<ASTUnit> ToUnit = buildASTFromCode(
302 std::unique_ptr<ASTUnit> FromUnit = buildASTFromCode(
420 std::unique_ptr<ASTUnit> ToUnit = buildASTFromCode(
433 std::unique_ptr<ASTUnit> FromUnit = buildASTFromCode(
/external/llvm-project/clang/unittests/Tooling/
DToolingTest.cpp131 TEST(buildASTFromCode, FindsClassDecl) { in TEST() argument
132 std::unique_ptr<ASTUnit> AST = buildASTFromCode("class X;"); in TEST()
136 AST = buildASTFromCode("class Y;"); in TEST()
141 TEST(buildASTFromCode, ReportsErrors) { in TEST() argument
DSourceCodeBuildersTest.cpp54 auto AstUnit = buildASTFromCode(wrapSnippet(StatementCode)); in matchStmt()
DRangeSelectorTest.cpp44 auto ASTUnit = tooling::buildASTFromCode(Code); in matchCode()
/external/llvm-project/clang/unittests/StaticAnalyzer/
DRangeSetTest.cpp58 std::unique_ptr<ASTUnit> AST = tooling::buildASTFromCode("struct foo;");
/external/clang/include/clang/Tooling/
DTooling.h189 buildASTFromCode(const Twine &Code, const Twine &FileName = "input.cc",
/external/llvm-project/clang/unittests/CrossTU/
DCrossTranslationUnitTest.cpp80 tooling::buildASTFromCode(SourceText, SourceFileName); in HandleTranslationUnit()
/external/llvm-project/clang/include/clang/Tooling/
DTooling.h205 buildASTFromCode(StringRef Code, StringRef FileName = "input.cc",
/external/clang/lib/Tooling/
DTooling.cpp493 buildASTFromCode(const Twine &Code, const Twine &FileName, in buildASTFromCode() function
/external/llvm-project/clang/lib/Tooling/
DTooling.cpp612 buildASTFromCode(StringRef Code, StringRef FileName, in buildASTFromCode() function
/external/llvm-project/clang-tools-extra/unittests/clang-doc/
DSerializeTest.cpp66 auto ASTUnit = clang::tooling::buildASTFromCode(Code); in ExtractInfosFromCode()