/external/llvm-project/clang/unittests/Analysis/ |
D | ExprMutationAnalyzerTest.cpp | 35 auto AST = in buildASTFromCodeWithArgs() local 53 bool isMutated(const SmallVectorImpl<BoundNodes> &Results, ASTUnit *AST) { in isMutated() 61 mutatedBy(const SmallVectorImpl<BoundNodes> &Results, ASTUnit *AST) { in mutatedBy() 109 const auto AST = buildASTFromCode("void f() { int x; x; }"); in TEST() local 126 const auto AST = buildASTFromCode("void f() { int x; " + ModExpr + "; }"); in TEST_P() local 135 const auto AST = buildASTFromCode("void f() { int x; " + ModExpr + "; }"); in TEST_P() local 144 const auto AST = buildASTFromCodeWithArgs( in TEST_P() local 155 const auto AST = buildASTFromCodeWithArgs( in TEST_P() local 165 const auto AST = in TEST_P() local 177 const auto AST = in TEST_P() local [all …]
|
D | CFGBuildResult.h | 39 std::unique_ptr<ASTUnit> AST; variable 45 CFGCallback(std::unique_ptr<ASTUnit> AST) : AST(std::move(AST)) {} in CFGCallback() 47 std::unique_ptr<ASTUnit> AST; variable
|
/external/llvm-project/clang/include/clang/AST/ |
D | ExternalASTMerger.h | 54 ASTContext *AST; member 74 ASTContext &AST; member 84 ASTContext &AST; variable 97 : AST(AST), FM(FM), OM(OM), Temporary(Temporary), Merger(Merger) {} in AST() function
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | XRefsTests.cpp | 120 auto AST = TestTU::withCode(T.code()).build(); in TEST() local 257 auto AST = TU.build(); in TEST() local 314 auto AST = TestTU::withCode(Main.code()).build(); in TEST() local 372 auto AST = TestTU::withCode(Test.code()).build(); in TEST() local 758 auto AST = TU.build(); in TEST() local 843 auto AST = TU.build(); in TEST() local 893 auto AST = TU.build(); in TEST() local 917 auto AST = TU.build(); in TEST() local 959 auto AST = TU.build(); in TEST() local 1025 auto AST = TU.build(); in TEST() local [all …]
|
D | SelectionTests.cpp | 27 SelectionTree makeSelectionTree(const StringRef MarkedCode, ParsedAST &AST) { in makeSelectionTree() 47 Range nodeRange(const SelectionTree::Node *N, ParsedAST &AST) { in nodeRange() 449 auto AST = TU.build(); in TEST() local 482 auto AST = TestTU::withCode(Annotations(Code).code()).build(); in TEST() local 496 auto AST = TestTU::withCode(Annotations(Code).code()).build(); in TEST() local 540 auto AST = TestTU::withCode(Test.code()).build(); in TEST() local 565 auto AST = TU.build(); in TEST() local 583 auto AST = TU.build(); in TEST() local 598 auto AST = TestTU::withCode(Test.code()).build(); in TEST() local 623 auto AST = TestTU::withCode(Annotations(Test).code()).build(); in TEST() local [all …]
|
D | TypeHierarchyTests.cpp | 70 auto AST = TU.build(); in TEST() local 92 auto AST = TU.build(); in TEST() local 113 auto AST = TU.build(); in TEST() local 140 auto AST = TU.build(); in TEST() local 174 auto AST = TU.build(); in TEST() local 199 auto AST = TU.build(); in TEST() local 219 const NamedDecl &findDeclWithTemplateArgs(ParsedAST &AST, in findDeclWithTemplateArgs() 247 auto AST = TU.build(); in TEST() local 274 auto AST = TU.build(); in TEST() local 303 auto AST = TU.build(); in TEST() local [all …]
|
D | TestTU.cpp | 112 auto AST = ParsedAST::build(testPath(Filename), Inputs, std::move(CI), in build() local 146 auto AST = build(); in headerSymbols() local 153 auto AST = build(); in headerRefs() local 158 auto AST = build(); in index() local 189 const NamedDecl &findDecl(ParsedAST &AST, llvm::StringRef QName) { in findDecl() 210 const NamedDecl &findDecl(ParsedAST &AST, in findDecl() 230 const NamedDecl &findUnqualifiedDecl(ParsedAST &AST, llvm::StringRef Name) { in findUnqualifiedDecl()
|
D | DumpASTTests.cpp | 142 ParsedAST AST = TestTU::withCode(Case.first).build(); in TEST() local 152 ParsedAST AST = TestTU::withCode(Case.code()).build(); in TEST() local 161 ParsedAST AST = TestTU::withCode("int x;").build(); in TEST() local
|
D | CallHierarchyTests.cpp | 68 auto AST = TU.build(); in TEST() local 112 auto AST = TU.build(); in TEST() local 145 auto AST = TU.build(); in TEST() local 213 auto CheckCallHierarchy = [&](ParsedAST &AST, Position Pos, PathRef TUPath) { in TEST() 240 auto AST = Workspace.openFile("caller1.cc"); in TEST() local
|
D | ParsedASTTests.cpp | 118 auto AST = TU.build(); in TEST() local 141 auto AST = TU.build(); in TEST() local 155 auto AST = TU.build(); in TEST() local 191 auto AST = TU.build(); in TEST() local 214 auto AST = TU.build(); in TEST() local 231 auto AST = TU.build(); in TEST() local 257 auto AST = TU.build(); in TEST() local 340 ParsedAST AST = TU.build(); in TEST() local 425 const auto &AST = TU.build(); in TEST() local
|
D | QualityTests.cpp | 54 auto AST = Header.build(); in TEST() local 117 auto AST = Test.build(); in TEST() local 365 auto AST = Header.build(); in TEST() local 408 auto AST = Header.build(); in TEST() local 432 auto AST = Header.build(); in TEST() local 464 auto AST = Header.build(); in TEST() local 484 auto AST = Header.build(); in TEST() local
|
D | PreambleTests.cpp | 275 auto AST = createPatchedAST("", Modified.code()); in TEST() local 299 auto AST = createPatchedAST(Baseline, Modified.code()); in TEST() local 361 auto AST = createPatchedAST(Case.Baseline, Modified.code()); in TEST() local 385 auto AST = createPatchedAST(Baseline, Modified.code()); in TEST() local 409 auto AST = createPatchedAST(Baseline, Modified.code()); in TEST() local 449 auto AST = createPatchedAST("", Modified.code()); in TEST() local 481 auto AST = TU.build(); in TEST() local
|
D | ASTTests.cpp | 39 auto AST = TestTU::withCode(File.code()).build(); in TEST() local 121 ParsedAST AST = TU.build(); in TEST() local 187 ParsedAST AST = TU.build(); in TEST() local
|
D | SourceCodeTests.cpp | 348 llvm::Optional<ParsedAST> AST; member in clang::clangd::__anon8232b9530111::SpelledWordsTest 527 auto AST = TU.build(); in TEST() local 541 auto AST = TU.build(); in TEST() local 571 auto AST = TU.build(); in TEST() local 613 ParsedAST AST = TestTU::withCode(Test.code()).build(); in TEST() local 650 auto AST = TU.build(); in TEST() local 674 auto AST = TU.build(); in TEST() local
|
D | SemanticSelectionTests.cpp | 162 auto AST = TestTU::withCode(T.code()).build(); in TEST() local 265 auto AST = TestTU::withCode(T.code()).build(); in TEST() local
|
/external/llvm-project/clang/unittests/Frontend/ |
D | PCHPreambleTest.cpp | 98 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromCompilerInvocation( in ParseAST() local 104 bool ReparseAST(const std::unique_ptr<ASTUnit> &AST) { in ReparseAST() 137 std::unique_ptr<ASTUnit> AST(ParseAST(MainName)); in TEST_F() local 157 std::unique_ptr<ASTUnit> AST(ParseAST(MainName)); in TEST_F() local 180 std::unique_ptr<ASTUnit> AST(ParseAST(MainName)); in TEST_F() local 204 std::unique_ptr<ASTUnit> AST(ParseAST(MainName)); in TEST_F() local 230 std::unique_ptr<ASTUnit> AST(ParseAST(Main)); in TEST_F() local
|
D | ASTUnitTest.cpp | 76 std::unique_ptr<ASTUnit> AST = createASTUnit(false); in TEST_F() local 103 std::unique_ptr<ASTUnit> AST = createASTUnit(true); in TEST_F() local 165 ASTUnit *AST = ASTUnit::LoadFromCommandLine( in TEST_F() local
|
/external/python/cpython3/Tools/peg_generator/scripts/ |
D | show_parse.py | 61 def format_tree(tree: ast.AST, verbose: bool = False) -> str: 74 def diff_trees(a: ast.AST, b: ast.AST, verbose: bool = False) -> List[str]:
|
/external/llvm-project/clang/unittests/AST/ |
D | ASTTraverserTest.cpp | 132 const FunctionDecl *getFunctionNode(clang::ASTUnit *AST, in getFunctionNode() 161 auto AST = buildASTFromCode(R"cpp( in TEST() local 283 auto AST = buildASTFromCode(R"cpp( in TEST() local 636 auto AST = buildASTFromCode(R"cpp( in TEST() local 677 auto AST = buildASTFromCode(R"cpp( in TEST() local 718 auto AST = buildASTFromCode(R"cpp( in TEST() local 947 auto AST = in TEST() local 1066 auto AST = buildASTFromCode(R"cpp( in TEST() local 1452 auto AST = buildASTFromCode(R"cpp( in TEST() local
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | XRefs.cpp | 176 getDeclAtPositionWithRelations(ParsedAST &AST, SourceLocation Pos, in getDeclAtPositionWithRelations() 196 getDeclAtPosition(ParsedAST &AST, SourceLocation Pos, DeclRelationSet Relations, in getDeclAtPosition() 207 llvm::Optional<Location> makeLocation(const ASTContext &AST, SourceLocation Loc, in makeLocation() 230 ParsedAST &AST, in locateFileReferent() 249 locateMacroReferent(const syntax::Token &TouchedIdentifier, ParsedAST &AST, in locateMacroReferent() 301 ParsedAST &AST, llvm::StringRef MainFilePath, in locateASTReferent() 452 locateSymbolTextually(const SpelledWord &Word, ParsedAST &AST, in locateSymbolTextually() 650 std::vector<LocatedSymbol> locateSymbolAt(ParsedAST &AST, Position Pos, in locateSymbolAt() 720 std::vector<DocumentLink> getDocumentLinks(ParsedAST &AST) { in getDocumentLinks() 767 ReferenceFinder(const ParsedAST &AST, in ReferenceFinder() [all …]
|
D | FindSymbols.cpp | 236 DocumentOutline(ParsedAST &AST) : AST(AST) {} in DocumentOutline() 331 ParsedAST &AST; member in clang::clangd::__anon8662a17c0311::DocumentOutline 334 std::vector<DocumentSymbol> collectDocSymbols(ParsedAST &AST) { in collectDocSymbols() 339 llvm::Expected<std::vector<DocumentSymbol>> getDocumentSymbols(ParsedAST &AST) { in getDocumentSymbols()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/tweaks/ |
D | TweakTesting.cpp | 70 applyTweak(ParsedAST &AST, const Annotations &Input, StringRef TweakID, in applyTweak() 100 ParsedAST AST = TU.build(); variable 120 ParsedAST AST = TU.build(); in apply() local
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | AliasSetTracker.h | 116 AliasSet *getAliasSet(AliasSetTracker &AST) { in getAliasSet() 192 void dropRef(AliasSetTracker &AST) { in dropRef() 284 AliasSet *getForwardedTarget(AliasSetTracker &AST) { in getForwardedTarget() 303 void removeUnknownInst(AliasSetTracker &AST, Instruction *I) { in removeUnknownInst() 332 AliasSetTracker *AST; variable
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | AliasSetTracker.h | 115 AliasSet *getAliasSet(AliasSetTracker &AST) { in getAliasSet() 191 void dropRef(AliasSetTracker &AST) { in dropRef() 283 AliasSet *getForwardedTarget(AliasSetTracker &AST) { in getForwardedTarget() 302 void removeUnknownInst(AliasSetTracker &AST, Instruction *I) { in removeUnknownInst() 331 AliasSetTracker *AST; variable
|
/external/llvm-project/clang-tools-extra/clangd/index/ |
D | FileIndex.cpp | 48 SlabTuple indexSymbols(ASTContext &AST, std::shared_ptr<Preprocessor> PP, in indexSymbols() 219 SlabTuple indexMainDecls(ParsedAST &AST, bool CollectMainFileRefs) { in indexMainDecls() 226 SlabTuple indexHeaderSymbols(llvm::StringRef Version, ASTContext &AST, in indexHeaderSymbols() 416 ASTContext &AST, in updatePreamble() 453 void FileIndex::updateMain(PathRef Path, ParsedAST &AST) { in updateMain()
|