Home
last modified time | relevance | path

Searched refs:AST (Results 1 – 25 of 503) sorted by relevance

12345678910>>...21

/external/clang/lib/Frontend/
DASTUnit.cpp646 ASTUnit &AST, bool CaptureDiagnostics) { in ConfigureDiags() argument
649 Diags->setClient(new StoredDiagnosticConsumer(AST.StoredDiagnostics)); in ConfigureDiags()
659 std::unique_ptr<ASTUnit> AST(new ASTUnit(true)); in LoadFromASTFile() local
663 ASTUnitCleanup(AST.get()); in LoadFromASTFile()
668 ConfigureDiags(Diags, *AST, CaptureDiagnostics); in LoadFromASTFile()
670 AST->OnlyLocalDecls = OnlyLocalDecls; in LoadFromASTFile()
671 AST->CaptureDiagnostics = CaptureDiagnostics; in LoadFromASTFile()
672 AST->Diagnostics = Diags; in LoadFromASTFile()
674 AST->FileMgr = new FileManager(FileSystemOpts, VFS); in LoadFromASTFile()
675 AST->UserFilesAreVolatile = UserFilesAreVolatile; in LoadFromASTFile()
[all …]
/external/clang/docs/
DIntroductionToTheClangAST.rst2 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 …]
DPCHInternals.rst60 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 …]
DLibASTMatchers.rst2 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 …]
DRAVFrontendAction.rst9 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/clang/
DAndroid.bp74 "clang/AST/AttrDump.inc",
75 "clang/AST/AttrImpl.inc",
76 "clang/AST/Attrs.inc",
77 "clang/AST/AttrVisitor.inc",
99 in: "include/clang/AST/CommentCommands.td",
101 "clang/AST/CommentCommandInfo.inc",
102 "clang/AST/CommentCommandList.inc",
108 in: "include/clang/AST/CommentHTMLNamedCharacterReferences.td",
109 outs: ["clang/AST/CommentHTMLNamedCharacterReferences.inc"],
114 in: "include/clang/AST/CommentHTMLTags.td",
[all …]
/external/llvm/include/llvm/Analysis/
DAliasSetTracker.h91 AliasSet *getAliasSet(AliasSetTracker &AST) { in getAliasSet() argument
95 AS = OldAS->getForwardedTarget(AST); in getAliasSet()
97 OldAS->dropRef(AST); in getAliasSet()
157 void dropRef(AliasSetTracker &AST) { in dropRef() argument
160 removeFromTracker(AST); in dropRef()
183 void mergeSetIn(AliasSet &AS, AliasSetTracker &AST);
247 AliasSet *getForwardedTarget(AliasSetTracker &AST) {
250 AliasSet *Dest = Forward->getForwardedTarget(AST);
253 Forward->dropRef(AST);
259 void removeFromTracker(AliasSetTracker &AST);
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DAliasSetTracker.h83 AliasSet *getAliasSet(AliasSetTracker &AST) { in getAliasSet() argument
87 AS = OldAS->getForwardedTarget(AST); in getAliasSet()
89 OldAS->dropRef(AST); in getAliasSet()
144 void dropRef(AliasSetTracker &AST) { in dropRef() argument
147 removeFromTracker(AST); in dropRef()
172 void mergeSetIn(AliasSet &AS, AliasSetTracker &AST);
239 AliasSet *getForwardedTarget(AliasSetTracker &AST) {
242 AliasSet *Dest = Forward->getForwardedTarget(AST);
245 Forward->dropRef(AST);
251 void removeFromTracker(AliasSetTracker &AST);
[all …]
/external/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp229 AliasSetTracker *AST; member
272 AliasSetTracker *AST, AssumptionCache *AC) in PromoteMem2Reg()
275 AST(AST), AC(AC) {} in PromoteMem2Reg()
339 AliasSetTracker *AST) { in rewriteSingleStoreAlloca() argument
391 if (AST && LI->getType()->isPointerTy()) in rewriteSingleStoreAlloca()
392 AST->deleteValue(LI); in rewriteSingleStoreAlloca()
413 if (AST) in rewriteSingleStoreAlloca()
414 AST->deleteValue(AI); in rewriteSingleStoreAlloca()
438 AliasSetTracker *AST) { in promoteSingleBlockAlloca() argument
484 if (AST && LI->getType()->isPointerTy()) in promoteSingleBlockAlloca()
[all …]
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/treeparser/
DLangParser.m46 /* 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/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/
DReplaceIcuTags.java22 import org.eclipse.jdt.core.dom.AST;
38 AST ast = tag.getAST(); in visitTagElement()
79 private static TagElement createIcuEnhancementText(AST ast, IDocElement fragment) { in createIcuEnhancementText()
85 private static TagElement createIcuUsageText(AST ast) { in createIcuUsageText()
92 private static TagElement createIcuNoteText(AST ast) { in createIcuNoteText()
96 private static TagElement createIcuMarker(AST ast) { in createIcuMarker()
100 private static TagElement createDiscouragedText(AST ast, List<IDocElement> fragments) { in createDiscouragedText()
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DAST.stg29 /* 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 …]
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/treerewrite/
DTreeRewriteParser.m44 /* 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/clang/include/clang/
Dmodule.modulemap12 umbrella "AST"
14 textual header "AST/BuiltinTypes.def"
15 textual header "AST/OperationKinds.def"
16 textual header "AST/TypeLocNodes.def"
17 textual header "AST/TypeNodes.def"
64 module AST { header "AST/ASTDiagnostic.h" export * }
65 module Comment { header "AST/CommentDiagnostic.h" export * }
134 // FIXME: Exclude this header to avoid pulling all of the AST matchers
136 // importing the AST matchers library gives a link dependency on the AST
137 // matchers (and thus the AST), which clang-format should not have.
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/JavaScript/
DASTParser.stg18 // 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/clang/include/clang/Basic/
DDiagnosticSerializationKinds.td11 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 "
59 "%select{PCH|module|AST}0 file '%1' not found%select{|: %3}2">, DefaultFatal;
61 "%select{PCH|module|AST}0 file '%1' is out of date and "
64 "file '%1' is not a valid precompiled %select{PCH|module|AST}0 file">, DefaultFatal;
68 "AST file '%0' was not built as a module">, DefaultFatal;
71 "module '%0' in AST file '%1' (imported by AST file '%2') "
75 "module '%0' imported by AST file '%1' found in a different module map file"
[all …]
/external/clang/unittests/ASTMatchers/
DASTMatchersInternalTest.cpp142 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("int x;")); in TEST() local
143 ASSERT_TRUE(AST.get()); in TEST()
144 Finder.matchAST(AST->getASTContext()); in TEST()
168 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("int x;")); in TEST() local
169 ASSERT_TRUE(AST.get()); in TEST()
170 Finder.matchAST(AST->getASTContext()); in TEST()
175 std::unique_ptr<ASTUnit> AST = in TEST() local
177 ASSERT_TRUE(AST.get()); in TEST()
179 "x", match(pointerType().bind("x"), AST->getASTContext())); in TEST()
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Python/
DASTParser.stg54 // 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/python/cpython2/Lib/
Dast.py93 if isinstance(node, AST):
108 if not isinstance(node, AST):
179 if isinstance(field, AST):
183 if isinstance(item, AST):
248 if isinstance(item, AST):
250 elif isinstance(value, AST):
296 if isinstance(value, AST):
300 elif not isinstance(value, AST):
305 elif isinstance(old_value, AST):
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/simplecTreeParser/
DSimpleCParser.m233 /* 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/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp207 AliasSetTracker *AST; member
248 : Allocas(A), DT(dt), DIB(0), AST(ast) {} in PromoteMem2Reg()
388 if (AST) PointerAllocaValues.resize(Allocas.size()); in run()
406 if (AST) AST->deleteValue(AI); in run()
437 if (AST) AST->deleteValue(AI); in run()
471 if (AST) AST->deleteValue(AI); in run()
516 if (AST) in run()
571 if (AST) AST->deleteValue(A); in run()
594 if (AST && PN->getType()->isPointerTy()) in run()
595 AST->deleteValue(PN); in run()
[all …]
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/
DASTParser.stg47 // 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/
DASTParser.stg46 // 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/
DASTParser.stg50 // 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/CSharp2/
DASTParser.stg49 // 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 …]

12345678910>>...21