/external/clang/lib/Frontend/ |
D | ASTUnit.cpp | 644 ASTUnit &AST, bool CaptureDiagnostics) { in ConfigureDiags() argument 647 Diags->setClient(new StoredDiagnosticConsumer(AST.StoredDiagnostics)); in ConfigureDiags() 655 std::unique_ptr<ASTUnit> AST(new ASTUnit(true)); in LoadFromASTFile() local 659 ASTUnitCleanup(AST.get()); in LoadFromASTFile() 664 ConfigureDiags(Diags, *AST, CaptureDiagnostics); in LoadFromASTFile() 666 AST->OnlyLocalDecls = OnlyLocalDecls; in LoadFromASTFile() 667 AST->CaptureDiagnostics = CaptureDiagnostics; in LoadFromASTFile() 668 AST->Diagnostics = Diags; in LoadFromASTFile() 670 AST->FileMgr = new FileManager(FileSystemOpts, VFS); in LoadFromASTFile() 671 AST->UserFilesAreVolatile = UserFilesAreVolatile; in LoadFromASTFile() [all …]
|
/external/clang/ |
D | clang-tblgen-rules.mk | 25 LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrDump.inc 26 $(generated_sources)/include/clang/AST/AttrDump.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) 27 $(generated_sources)/include/clang/AST/AttrDump.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td… 32 LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/AttrImpl.inc 33 $(generated_sources)/include/clang/AST/AttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) 34 $(generated_sources)/include/clang/AST/AttrImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td… 74 LOCAL_GENERATED_SOURCES += $(generated_sources)/include/clang/AST/Attrs.inc 75 $(generated_sources)/include/clang/AST/Attrs.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE) 76 $(generated_sources)/include/clang/AST/Attrs.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td $(… 88 LOCAL_GENERATED_SOURCES += $(generated_sources)/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 38 ASTConsumer is an interface used to write generic actions on an AST, 39 regardless of how the AST was produced. ASTConsumer provides many 50 // will visit all nodes in the AST. 62 RecursiveASTVisitor to extract the relevant information from the AST. 65 VisitNodeType(NodeType \*) for most AST nodes; the exception are TypeLoc 78 // For debugging, dumping the AST nodes will show which nodes are already 83 // Return false to stop the traversal of the AST. 89 of the Clang AST to drill through to the parts that are interesting for [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | AliasSetTracker.h | 83 AliasSet *getAliasSet(AliasSetTracker &AST) { in getAliasSet() argument 87 AS = OldAS->getForwardedTarget(AST); in getAliasSet() 89 OldAS->dropRef(AST); in getAliasSet() 143 void dropRef(AliasSetTracker &AST) { in dropRef() argument 146 removeFromTracker(AST); in dropRef() 171 void mergeSetIn(AliasSet &AS, AliasSetTracker &AST); 234 AliasSet *getForwardedTarget(AliasSetTracker &AST) { 237 AliasSet *Dest = Forward->getForwardedTarget(AST); 240 Forward->dropRef(AST); 246 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/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/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 | 240 AliasSetTracker *AST; member 286 AliasSetTracker *AST, AssumptionCache *AC) in PromoteMem2Reg() 289 AST(AST), AC(AC) {} in PromoteMem2Reg() 355 AliasSetTracker *AST) { in rewriteSingleStoreAlloca() argument 407 if (AST && LI->getType()->isPointerTy()) in rewriteSingleStoreAlloca() 408 AST->deleteValue(LI); in rewriteSingleStoreAlloca() 430 if (AST) in rewriteSingleStoreAlloca() 431 AST->deleteValue(AI); in rewriteSingleStoreAlloca() 452 AliasSetTracker *AST) { in promoteSingleBlockAlloca() argument 493 if (AST && LI->getType()->isPointerTy()) in promoteSingleBlockAlloca() [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/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/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/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/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/llvm/lib/Analysis/ |
D | AliasSetTracker.cpp | 30 void AliasSet::mergeSetIn(AliasSet &AS, AliasSetTracker &AST) { in mergeSetIn() argument 43 AliasAnalysis &AA = AST.getAliasAnalysis(); in mergeSetIn() 83 AS.dropRef(AST); in mergeSetIn() 94 void AliasSet::removeFromTracker(AliasSetTracker &AST) { in removeFromTracker() argument 96 AST.removeAliasSet(this); in removeFromTracker() 99 void AliasSet::addPointer(AliasSetTracker &AST, PointerRec &Entry, in addPointer() argument 107 AliasAnalysis &AA = AST.getAliasAnalysis(); in addPointer() 386 void AliasSetTracker::add(const AliasSetTracker &AST) { in add() argument 387 assert(&AA == &AST.AA && in add() 393 for (const_iterator I = AST.begin(), E = AST.end(); I != E; ++I) { in add() [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/include/clang/ |
D | module.modulemap | 12 umbrella "AST" 14 textual header "AST/BuiltinTypes.def" 15 textual header "AST/TypeLocNodes.def" 16 textual header "AST/TypeNodes.def" 61 module AST { header "AST/ASTDiagnostic.h" export * } 62 module Comment { header "AST/CommentDiagnostic.h" export * }
|
/external/clang/unittests/Tooling/ |
D | ToolingTest.cpp | 88 bool FindClassDeclX(ASTUnit *AST) { in FindClassDeclX() argument 89 for (std::vector<Decl *>::iterator i = AST->top_level_begin(), in FindClassDeclX() 90 e = AST->top_level_end(); in FindClassDeclX() 119 std::unique_ptr<ASTUnit> AST = buildASTFromCode("class X;"); in TEST() local 120 ASSERT_TRUE(AST.get()); in TEST() 121 EXPECT_TRUE(FindClassDeclX(AST.get())); in TEST() 123 AST = buildASTFromCode("class Y;"); in TEST() 124 ASSERT_TRUE(AST.get()); in TEST() 125 EXPECT_FALSE(FindClassDeclX(AST.get())); in TEST()
|
/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 " 57 "module '%0' in AST file '%1' (imported by AST file '%2') " 61 "module '%0' imported by AST file '%1' found in a different module map file" 62 " (%2) than when the importing AST file was built (%3)">, DefaultFatal;
|