/external/clang/lib/Frontend/ |
D | ASTUnit.cpp | 650 ASTUnit &AST, bool CaptureDiagnostics) { in ConfigureDiags() argument 656 Client = new StoredDiagnosticConsumer(AST.StoredDiagnostics); in ConfigureDiags() 661 Diags->setClient(new StoredDiagnosticConsumer(AST.StoredDiagnostics)); in ConfigureDiags() 673 std::unique_ptr<ASTUnit> AST(new ASTUnit(true)); in LoadFromASTFile() local 677 ASTUnitCleanup(AST.get()); in LoadFromASTFile() 682 ConfigureDiags(Diags, nullptr, nullptr, *AST, CaptureDiagnostics); in LoadFromASTFile() 684 AST->OnlyLocalDecls = OnlyLocalDecls; in LoadFromASTFile() 685 AST->CaptureDiagnostics = CaptureDiagnostics; in LoadFromASTFile() 686 AST->Diagnostics = Diags; in LoadFromASTFile() 688 AST->FileMgr = new FileManager(FileSystemOpts, VFS); in LoadFromASTFile() [all …]
|
/external/clang/ |
D | clang-tblgen-rules.mk | 13 LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/AttrDump.inc 14 $(intermediates)/include/clang/AST/AttrDump.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) 15 $(intermediates)/include/clang/AST/AttrDump.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $… 20 LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/AttrImpl.inc 21 $(intermediates)/include/clang/AST/AttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) 22 $(intermediates)/include/clang/AST/AttrImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $… 62 LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/Attrs.inc 63 $(intermediates)/include/clang/AST/Attrs.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) 64 $(intermediates)/include/clang/AST/Attrs.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CL… 76 LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/AttrVisitor.inc [all …]
|
/external/clang/docs/ |
D | IntroductionToTheClangAST.rst | 2 Introduction to the Clang AST 6 AST. It is targeted at developers who either want to contribute to 7 Clang, or use tools that work based on Clang's AST, like the AST 19 Clang's AST is different from ASTs produced by some other compilers in 22 constants are available in an unreduced form in the AST. This makes 23 Clang's AST a good fit for refactoring tools. 25 Documentation for all Clang AST nodes is available via the generated 28 make a search for clang and the AST node's class name usually turn up 32 Examining the AST 35 A good way to familarize yourself with the Clang AST is to actually look [all …]
|
D | PCHInternals.rst | 60 headers to save a serialized AST file (one per module) and use those AST 65 AST file format required for modules are discussed in the section on 68 Clang's AST files are designed with a compact on-disk representation, which 69 minimizes both creation time and the time required to initially load the AST 70 file. The AST file itself contains a serialized representation of Clang's 75 Clang's AST files are loaded "lazily" from disk. When an AST file is initially 76 loaded, Clang reads only a small amount of data from the AST file to establish 78 this initial load is independent of the size of the AST file, such that a 79 larger AST file does not lead to longer AST load times. The actual header data 80 in the AST file --- macros, functions, variables, types, etc. --- is loaded [all …]
|
D | LibASTMatchers.rst | 2 Matching the Clang AST 6 nodes of the AST and execute code that uses the matched nodes. Combined with 10 We assume basic knowledge about the Clang AST. See the :doc:`Introduction 11 to the Clang AST <IntroductionToTheClangAST>` if you want to learn more 12 about how the AST is structured. 20 Clang's AST. This DSL is written in and can be used from C++, allowing users 21 to write a single program to both match AST nodes and access the node's C++ 23 provided on the AST level. 25 AST matchers are predicates on nodes in the AST. Matchers are created by 30 in the AST of a translation unit, you can call `recordDecl() [all …]
|
D | RAVFrontendAction.rst | 9 a RecursiveASTVisitor to find CXXRecordDecl AST nodes with a specified 18 actions as part of the compilation. To run tools over the AST clang 37 ASTConsumer is an interface used to write generic actions on an AST, 38 regardless of how the AST was produced. ASTConsumer provides many 49 // will visit all nodes in the AST. 61 RecursiveASTVisitor to extract the relevant information from the AST. 64 VisitNodeType(NodeType \*) for most AST nodes; the exception are TypeLoc 77 // For debugging, dumping the AST nodes will show which nodes are already 82 // Return false to stop the traversal of the AST. 88 of the Clang AST to drill through to the parts that are interesting for [all …]
|
D | Tooling.rst | 26 * want powerful high-level abstractions, like iterating through an AST with a 27 cursor, and don't want to learn all the nitty gritty details of Clang's AST. 31 * want full control over the Clang AST 37 AST as part of a compilation. Plugins are dynamic libraries that are loaded at 50 * need full control over the Clang AST 74 * want full control over the Clang AST 80 * want a stable interface so you don't need to change your code when the AST API
|
/external/llvm/include/llvm/Analysis/ |
D | AliasSetTracker.h | 82 AliasSet *getAliasSet(AliasSetTracker &AST) { in getAliasSet() argument 86 AS = OldAS->getForwardedTarget(AST); in getAliasSet() 88 OldAS->dropRef(AST); in getAliasSet() 142 void dropRef(AliasSetTracker &AST) { in dropRef() argument 145 removeFromTracker(AST); in dropRef() 170 void mergeSetIn(AliasSet &AS, AliasSetTracker &AST); 238 AliasSet *getForwardedTarget(AliasSetTracker &AST) { 241 AliasSet *Dest = Forward->getForwardedTarget(AST); 244 Forward->dropRef(AST); 250 void removeFromTracker(AliasSetTracker &AST); [all …]
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/treeparser/ |
D | LangParser.m | 46 /* AST returnScope.synthesize */ 59 /* AST returnScope.methods */ 86 /* AST returnScope.synthesize */ 99 /* AST returnScope.methods */ 126 /* AST returnScope.synthesize */ 139 /* AST returnScope.methods */ 181 /* AST genericParser.synthesize */ 182 /* AST parserProperties */ 214 /* AST genericParser.init */ 222 /* AST genericParser.dealloc */ [all …]
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/treerewrite/ |
D | TreeRewriteParser.m | 44 /* AST returnScope.synthesize */ 57 /* AST returnScope.methods */ 84 /* AST returnScope.synthesize */ 97 /* AST returnScope.methods */ 139 /* AST genericParser.synthesize */ 140 /* AST parserProperties */ 171 /* AST genericParser.init */ 179 /* AST genericParser.dealloc */ 190 /* AST genericParser.methods */ 191 /* AST parserMethods */ [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 239 AliasSetTracker *AST; member 282 AliasSetTracker *AST) in PromoteMem2Reg() 284 DIB(*DT.getRoot()->getParent()->getParent()), AST(AST) {} in PromoteMem2Reg() 350 AliasSetTracker *AST) { in rewriteSingleStoreAlloca() argument 402 if (AST && LI->getType()->isPointerTy()) in rewriteSingleStoreAlloca() 403 AST->deleteValue(LI); in rewriteSingleStoreAlloca() 424 if (AST) in rewriteSingleStoreAlloca() 425 AST->deleteValue(AI); in rewriteSingleStoreAlloca() 446 AliasSetTracker *AST) { in promoteSingleBlockAlloca() argument 487 if (AST && LI->getType()->isPointerTy()) in promoteSingleBlockAlloca() [all …]
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ObjC/ |
D | AST.stg | 29 /* AST parserHeaderFile.memVars */ 32 <@super.memVars()> /* AST super.memVars */ 33 <parserMemVars()> /* AST parserMemVars */ 37 /* AST parserHeaderFile.properties */ 38 <@super.properties()> /* AST super.properties */ 39 <parserProperties()> /* AST parserproperties */ 43 /* AST parserHeaderFile.methodsDecl */ 44 <@super.methodsDecl()> /* AST super.methodsDecl */ 45 <parserMethodsDecl()> /* AST parsermethodsDecl */ 49 /* AST genericParser.synthesize */ [all …]
|
D | ASTParser.stg | 46 // TOKEN AST STUFF 48 /** ID and output=AST */ 58 /* ID! and output=AST (same as plain tokenRef) */ 62 /** ID^ and output=AST */ 71 /** ids+=ID! and output=AST */ 78 /** label+=TOKEN when output=AST but not rewrite alt */ 85 /** Match label+=TOKEN^ when output=AST but not rewrite alt */ 92 // SET AST 130 // RULE REF AST 132 /** rule when output=AST */ [all …]
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/JavaScript/ |
D | ASTParser.stg | 18 // TOKEN AST STUFF 20 /** ID and output=AST */ 29 /** ID! and output=AST (same as plain tokenRef) */ 32 /** ID^ and output=AST */ 41 /** ids+=ID! and output=AST */ 47 /** label+=TOKEN when output=AST but not rewrite alt */ 53 /** Match label+=TOKEN^ when output=AST but not rewrite alt */ 59 // SET AST 92 // RULE REF AST 94 /** rule when output=AST */ [all …]
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Python/ |
D | ASTParser.stg | 54 // TOKEN AST STUFF 56 /** ID and output=AST */ 65 /** ID! and output=AST (same as plain tokenRef) */ 68 /** ID^ and output=AST */ 77 /** ids+=ID! and output=AST */ 83 /** label+=TOKEN when output=AST but not rewrite alt */ 89 /** Match label+=TOKEN^ when output=AST but not rewrite alt */ 95 // SET AST 128 // RULE REF AST 130 /** rule when output=AST */ [all …]
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/simplecTreeParser/ |
D | SimpleCParser.m | 233 /* AST returnScope.synthesize */ 246 /* AST returnScope.methods */ 273 /* AST returnScope.synthesize */ 286 /* AST returnScope.methods */ 313 /* AST returnScope.synthesize */ 326 /* AST returnScope.methods */ 353 /* AST returnScope.synthesize */ 366 /* AST returnScope.methods */ 393 /* AST returnScope.synthesize */ 406 /* AST returnScope.methods */ [all …]
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Java/ |
D | ASTParser.stg | 46 // TOKEN AST STUFF 48 /** ID and output=AST */ 57 /** ID! and output=AST (same as plain tokenRef) */ 60 /** ID^ and output=AST */ 69 /** ids+=ID! and output=AST */ 75 /** label+=TOKEN when output=AST but not rewrite alt */ 81 /** Match label+=TOKEN^ when output=AST but not rewrite alt */ 87 // SET AST 120 // RULE REF AST 122 /** rule when output=AST */ [all …]
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/ |
D | ASTParser.stg | 47 // TOKEN AST STUFF 49 /** ID and output=AST */ 58 /** ID! and output=AST (same as plain tokenRef) */ 61 /** ID^ and output=AST */ 70 /** ids+=ID! and output=AST */ 76 /** label+=TOKEN when output=AST but not rewrite alt */ 82 /** Match label+=TOKEN^ when output=AST but not rewrite alt */ 88 // SET AST 121 // RULE REF AST 123 /** rule when output=AST */ [all …]
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/C/ |
D | ASTParser.stg | 48 // TOKEN AST STUFF 50 /** ID and output=AST */ 59 /** ID! and output=AST (same as plain tokenRef) */ 62 /** ID^ and output=AST */ 71 /** ids+=ID! and output=AST */ 78 /** label+=TOKEN when output=AST but not rewrite alt */ 85 /** Match label+=TOKEN^ when output=AST but not rewrite alt */ 91 // SET AST 124 // RULE REF AST 126 /** rule when output=AST */ [all …]
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/ |
D | ASTParser.stg | 49 // TOKEN AST STUFF 51 /** ID and output=AST */ 60 /** ID! and output=AST (same as plain tokenRef) */ 63 /** ID^ and output=AST */ 72 /** ids+=ID! and output=AST */ 78 /** label+=TOKEN when output=AST but not rewrite alt */ 84 /** Match label+=TOKEN^ when output=AST but not rewrite alt */ 90 // SET AST 123 // RULE REF AST 125 /** rule when output=AST */ [all …]
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Delphi/ |
D | ASTParser.stg | 50 // TOKEN AST STUFF 52 /** ID and output=AST */ 66 /** ID! and output=AST (same as plain tokenRef) */ 69 /** ID^ and output=AST */ 83 /** ids+=ID! and output=AST */ 89 /** label+=TOKEN when output=AST but not rewrite alt */ 95 /** Match label+=TOKEN^ when output=AST but not rewrite alt */ 101 // SET AST 134 // RULE REF AST 136 /** rule when output=AST */ [all …]
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/ |
D | ASTParser.stg | 50 // TOKEN AST STUFF 52 /** ID and output=AST */ 63 /** ID! and output=AST (same as plain tokenRef) */ 66 /** ID^ and output=AST */ 77 /** ids+=ID! and output=AST */ 83 /** label+=TOKEN when output=AST but not rewrite alt */ 89 /** Match label+=TOKEN^ when output=AST but not rewrite alt */ 95 // SET AST 128 // RULE REF AST 130 /** rule when output=AST */ [all …]
|
/external/clang/unittests/Tooling/ |
D | ToolingTest.cpp | 84 bool FindClassDeclX(ASTUnit *AST) { in FindClassDeclX() argument 85 for (std::vector<Decl *>::iterator i = AST->top_level_begin(), in FindClassDeclX() 86 e = AST->top_level_end(); in FindClassDeclX() 111 std::unique_ptr<ASTUnit> AST = buildASTFromCode("class X;"); in TEST() local 112 ASSERT_TRUE(AST.get()); in TEST() 113 EXPECT_TRUE(FindClassDeclX(AST.get())); in TEST() 115 AST = buildASTFromCode("class Y;"); in TEST() 116 ASSERT_TRUE(AST.get()); in TEST() 117 EXPECT_FALSE(FindClassDeclX(AST.get())); in TEST()
|
/external/llvm/lib/Analysis/ |
D | AliasSetTracker.cpp | 30 void AliasSet::mergeSetIn(AliasSet &AS, AliasSetTracker &AST) { in mergeSetIn() argument 43 AliasAnalysis &AA = AST.getAliasAnalysis(); in mergeSetIn() 89 void AliasSet::removeFromTracker(AliasSetTracker &AST) { in removeFromTracker() argument 91 AST.removeAliasSet(this); in removeFromTracker() 94 void AliasSet::addPointer(AliasSetTracker &AST, PointerRec &Entry, in addPointer() argument 102 AliasAnalysis &AA = AST.getAliasAnalysis(); in addPointer() 365 void AliasSetTracker::add(const AliasSetTracker &AST) { in add() argument 366 assert(&AA == &AST.AA && in add() 372 for (const_iterator I = AST.begin(), E = AST.end(); I != E; ++I) { in add() 600 assert(AST && "ASTCallbackVH called with a null AliasSetTracker!"); in deleted() [all …]
|
/external/clang/include/clang/Basic/ |
D | DiagnosticSerializationKinds.td | 11 let CategoryName = "AST Deserialization Issue" in { 18 "malformed or corrupted AST file: '%0'">, DefaultFatal; 35 "%select{AST file|current translation unit}0 was compiled with the target " 36 "feature'%1' but the %select{current translation unit is|AST file was}0 " 55 "module '%0' imported by AST file '%1' not found">, DefaultFatal; 57 "module '%0' imported by AST file '%1' found in a different module map file" 58 " (%2) than when the importing AST file was built (%3)">, DefaultFatal;
|