Home
last modified time | relevance | path

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

12345678910>>...13

/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dparsetimevisitor.d16 extern (C++) class ParseTimeVisitor(AST) in ParseTimeVisitor() argument
19 void visit(AST.Dsymbol) { assert(0); } in ParseTimeVisitor()
20 void visit(AST.Parameter) { assert(0); } in ParseTimeVisitor()
21 void visit(AST.Statement) { assert(0); } in ParseTimeVisitor()
22 void visit(AST.Type) { assert(0); } in ParseTimeVisitor()
23 void visit(AST.Expression) { assert(0); } in ParseTimeVisitor()
24 void visit(AST.TemplateParameter) { assert(0); } in ParseTimeVisitor()
25 void visit(AST.Condition) { assert(0); } in ParseTimeVisitor()
26 void visit(AST.Initializer) { assert(0); } in ParseTimeVisitor()
30 void visit(AST.AliasThis s) { visit(cast(AST.Dsymbol)s); } in ParseTimeVisitor()
[all …]
H A Dtransitivevisitor.d17 extern(C++) class ParseTimeTransitiveVisitor(AST) : PermissiveVisitor!AST
19 alias visit = PermissiveVisitor!AST.visit;
21 mixin ParseVisitMethods!AST __methods;
29 package mixin template ParseVisitMethods(AST) in ParseVisitMethods() argument
34 override void visit(AST.ExpStatement s) in ParseVisitMethods()
46 override void visit(AST.CompileStatement s) in ParseVisitMethods()
52 override void visit(AST.CompoundStatement s) in ParseVisitMethods()
62 void visitVarDecl(AST.VarDeclaration v) in ParseVisitMethods()
83 override void visit(AST.CompoundDeclarationStatement s) in ParseVisitMethods()
105 override void visit(AST.ScopeStatement s) in ParseVisitMethods()
[all …]
H A Dparse.d33 class Parser(AST, Lexer = dmd.lexer.Lexer) : Lexer
35 AST.ModuleDeclaration* md;
39 AST.Module mod;
53 extern (D) this(const ref Loc loc, AST.Module _module, const(char)[] input, bool doDocComment)
75 extern (D) this(AST.Module _module, const(char)[] input, bool doDocComment)
92 AST.Dsymbols* parseModule() in parseModule()
109 AST.Expression msg = null; in parseModuleDeclaration()
145 md = new AST.ModuleDeclaration(loc, a, id, msg, isdeprecated); in parseModuleDeclaration()
160 final AST.Dsymbols* parseModuleContent() in parseModuleContent()
162 AST.Dsymbol lastDecl = mod; in parseModuleContent()
[all …]
H A Dcparse.d35 final class CParser(AST) : Parser!AST
37 AST.Dsymbols* symbols; // symbols declared in current scope
62 extern (D) this(TARGET)(AST.Module _module, const(char)[] input, bool doDocComment, in this()
98 override AST.Dsymbols* parseModule() in parseModule()
101 symbols = new AST.Dsymbols(); in parseModule()
108 auto wrap = new AST.Dsymbols(); in parseModule()
109 auto ld = new AST.LinkDeclaration(token.loc, LINK.c, symbols); in parseModule()
117 auto s = new AST.Import(Loc.initial, null, Id.builtins, null, false); in parseModule()
153 AST.Statement cparseStatement(int flags, const(char)** endPtr = null, Loc* pEndloc = null)
155 AST.Statement s;
[all …]
H A Ddtoh.d224 alias AST = ASTCodegen;
259 AST.AggregateDeclaration adparent;
262 AST.TemplateDeclaration tdparent;
269 AST.Type origType;
272 AST.Visibility.Kind currentVisibility;
275 AST.STC storageClass;
309 private void includeSymbol(AST.Dsymbol dsym)
341 private EnumKind getEnumKind(AST.Type type)
345 case AST.Tint32:
347 case AST.Tbool,
[all …]
H A Dpermissivevisitor.d16 extern(C++) class PermissiveVisitor(AST): ParseTimeVisitor!AST
18 alias visit = ParseTimeVisitor!AST.visit;
20 override void visit(AST.Dsymbol){}
21 override void visit(AST.Parameter){}
22 override void visit(AST.Statement){}
23 override void visit(AST.Type){}
24 override void visit(AST.Expression){}
25 override void visit(AST.TemplateParameter){}
26 override void visit(AST.Condition){}
27 override void visit(AST.Initializer){}
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DZ3Solver.cpp147 Z3_ast AST; member in __anondfffcc6f0111::Z3Expr
150 Z3Expr(Z3Context &C, Z3_ast ZA) : SMTExpr(), Context(C), AST(ZA) { in Z3Expr()
151 Z3_inc_ref(Context.Context, AST); in Z3Expr()
155 Z3Expr(const Z3Expr &Copy) : SMTExpr(), Context(Copy.Context), AST(Copy.AST) { in Z3Expr()
156 Z3_inc_ref(Context.Context, AST); in Z3Expr()
162 Z3_inc_ref(Context.Context, Other.AST); in operator =()
163 Z3_dec_ref(Context.Context, AST); in operator =()
164 AST = Other.AST; in operator =()
172 if (AST) in ~Z3Expr()
173 Z3_dec_ref(Context.Context, AST); in ~Z3Expr()
[all …]
/netbsd-src/share/i18n/csmapper/AST/
H A DMakefile.inc3 .PATH: ${.CURDIR}/AST
5 SRCS_mapper.dir+= mapper.dir.AST
6 SRCS_charset.pivot+= charset.pivot.AST
7 CLEANFILES+= mapper.dir.AST charset.pivot.AST
8 PART_ARMSCII!= ${TOOL_SED} '/^\#/d;/^$$/d;' ${.CURDIR}/AST/ARMSCII.part
11 .if exists(${.CURDIR}/AST/ARMSCII-$i%UCS.src)
14 FILESDIR_ARMSCII-$i%UCS.mps= ${BINDIR}/AST
16 .if exists(${.CURDIR}/AST/UCS%ARMSCII-$i.src)
19 FILESDIR_UCS%ARMSCII-$i.mps= ${BINDIR}/AST
23 mapper.dir.AST: ${.CURDIR}/AST/ARMSCII.part
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A DASTUnit.cpp748 ASTUnit &AST, in ConfigureDiags() argument
753 &AST.StoredDiagnostics, nullptr, in ConfigureDiags()
763 std::unique_ptr<ASTUnit> AST(new ASTUnit(true)); in LoadFromASTFile() local
767 ASTUnitCleanup(AST.get()); in LoadFromASTFile()
772 ConfigureDiags(Diags, *AST, CaptureDiagnostics); in LoadFromASTFile()
774 AST->LangOpts = std::make_shared<LangOptions>(); in LoadFromASTFile()
775 AST->OnlyLocalDecls = OnlyLocalDecls; in LoadFromASTFile()
776 AST->CaptureDiagnostics = CaptureDiagnostics; in LoadFromASTFile()
777 AST->Diagnostics = Diags; in LoadFromASTFile()
780 AST->FileMgr = new FileManager(FileSystemOpts, VFS); in LoadFromASTFile()
[all …]
H A DFrontendAction.cpp138 std::unique_ptr<ASTUnit> AST) { in setCurrentInput() argument
140 CurrentASTUnit = std::move(AST); in setCurrentInput()
578 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile( in BeginSourceFile() local
582 if (!AST) in BeginSourceFile()
587 CI.getHeaderSearchOpts() = AST->getHeaderSearchOpts(); in BeginSourceFile()
588 CI.getPreprocessorOpts() = AST->getPreprocessorOpts(); in BeginSourceFile()
589 CI.getLangOpts() = AST->getLangOpts(); in BeginSourceFile()
593 CI.setFileManager(&AST->getFileManager()); in BeginSourceFile()
595 CI.getSourceManager().initializeForReplay(AST->getSourceManager()); in BeginSourceFile()
600 if (auto ASTReader = AST->getASTReader()) { in BeginSourceFile()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/gn/secondary/clang/lib/AST/
H A DBUILD.gn4 visibility = [ ":AST" ]
9 static_library("AST") {
14 "//clang/include/clang/AST:AttrImpl",
15 "//clang/include/clang/AST:AttrNodeTraverse",
16 "//clang/include/clang/AST:AttrTextNodeDump",
17 "//clang/include/clang/AST:CommentCommandInfo",
18 "//clang/include/clang/AST:CommentHTMLNamedCharacterReferences",
19 "//clang/include/clang/AST:CommentHTMLTags",
20 "//clang/include/clang/AST:CommentHTMLTagsProperties",
21 "//clang/include/clang/AST:DeclNodes",
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/docs/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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
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 …]
H A DLibASTImporter.rst5 The ``ASTImporter`` class is part of Clang's core library, the AST library.
8 In this document, we assume basic knowledge about the Clang AST. See the :doc:`Introduction
9 to the Clang AST <IntroductionToTheClangAST>` if you want to learn more
10 about how the AST is structured.
11 Knowledge about :doc:`matching the Clang AST <LibASTMatchers>` and the `reference for the matchers …
19 ``ASTContext`` holds long-lived AST nodes (such as types and decls) that can be referred to through…
22 It may be convenient if we could view the set of the resulting ASTs as if they were one AST resulti…
29 … ``ASTContext`` for that and then imports the missing definitions from the AST what we got from th…
34 Importing one AST node copies that node into the destination ``ASTContext``.
38 Also, the Clang AST consider nodes (or certain properties of nodes) equivalent if they have the sam…
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DAliasSetTracker.h112 AliasSet *getAliasSet(AliasSetTracker &AST) { in getAliasSet() argument
116 AS = OldAS->getForwardedTarget(AST); in getAliasSet()
118 OldAS->dropRef(AST); in getAliasSet()
188 void dropRef(AliasSetTracker &AST) { in dropRef() argument
191 removeFromTracker(AST); in dropRef()
214 void mergeSetIn(AliasSet &AS, AliasSetTracker &AST);
285 AliasSet *getForwardedTarget(AliasSetTracker &AST) { in getForwardedTarget() argument
288 AliasSet *Dest = Forward->getForwardedTarget(AST); in getForwardedTarget()
291 Forward->dropRef(AST); in getForwardedTarget()
297 void removeFromTracker(AliasSetTracker &AST);
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/
H A Dmodule.modulemap9 // FIXME: Exclude these headers to avoid pulling all of the AST matchers
11 // importing the AST matchers library gives a link dependency on the AST
12 // matchers (and thus the AST), which clang-format should not have.
18 umbrella "AST"
20 textual header "AST/BuiltinTypes.def"
21 textual header "AST/CXXRecordDeclDefinitionBits.def"
22 textual header "AST/OperationKinds.def"
23 textual header "AST/TypeLocNodes.def"
85 module AST { header "AST/ASTDiagnostic.h" export * }
86 module Comment { header "AST/CommentDiagnostic.h" export * }
[all …]
/netbsd-src/share/i18n/esdb/AST/
H A DMakefile.inc3 .PATH: ${.CURDIR}/AST
6 PARTFILE_ARMSCII:= ${.CURDIR}/AST/ARMSCII.part
7 ALIASFILE_ARMSCII:= ${.CURDIR}/AST/ARMSCII.alias
8 SUBDIR_ARMSCII:= AST
12 .if !exists(${.CURDIR}/AST/ARMSCII-${i:S/:/@/}.src)
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DExternalASTMerger.h54 ASTContext *AST; member
74 ASTContext &AST; member
84 ASTContext &AST; variable
95 ImporterSource(ASTContext &AST, FileManager &FM, const OriginMap &OM,
97 : AST(AST), FM(FM), OM(OM), Temporary(Temporary), Merger(Merger) {} in AST() argument
98 ASTContext &getASTContext() const { return AST; } in getASTContext()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/
H A DRefactoringRuleContext.h45 bool hasASTContext() const { return AST; } in hasASTContext()
48 assert(AST && "no AST!"); in getASTContext()
49 return *AST; in getASTContext()
52 void setASTContext(ASTContext &Context) { AST = &Context; } in setASTContext()
78 ASTContext *AST = nullptr; variable
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DAliasSetTracker.cpp48 void AliasSet::mergeSetIn(AliasSet &AS, AliasSetTracker &AST) { in mergeSetIn() argument
61 AliasAnalysis &AA = AST.getAliasAnalysis(); in mergeSetIn()
74 AST.TotalMayAliasSetSize += size(); in mergeSetIn()
76 AST.TotalMayAliasSetSize += AS.size(); in mergeSetIn()
106 AS.dropRef(AST); in mergeSetIn()
126 void AliasSet::removeFromTracker(AliasSetTracker &AST) { in removeFromTracker() argument
128 AST.removeAliasSet(this); in removeFromTracker()
131 void AliasSet::addPointer(AliasSetTracker &AST, PointerRec &Entry, in addPointer() argument
140 AliasAnalysis &AA = AST.getAliasAnalysis(); in addPointer()
146 AST.TotalMayAliasSetSize += size(); in addPointer()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp114 Impl(SyntaxTree *Parent, ASTContext &AST);
116 Impl(SyntaxTree *Parent, Decl *N, ASTContext &AST);
117 Impl(SyntaxTree *Parent, Stmt *N, ASTContext &AST);
121 ASTContext &AST) in Impl() argument
122 : Impl(Parent, dyn_cast<Stmt>(Node), AST) {} in Impl()
126 ASTContext &AST) in Impl() argument
127 : Impl(Parent, dyn_cast<Decl>(Node), AST) {} in Impl()
130 ASTContext &AST; member in clang::diff::SyntaxTree::Impl
233 if (isNodeExcluded(Tree.AST.getSourceManager(), D)) in TraverseDecl()
243 if (isNodeExcluded(Tree.AST.getSourceManager(), S)) in TraverseStmt()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DExternalASTMerger.cpp213 Parent.HasImporterForOrigin(*FromOrigins.at(FromDC).AST)) { in Imported()
219 << (void*)FromOrigins.at(FromDC).AST in Imported()
284 LazyASTImporter &Importer = LazyImporterForOrigin(*this, *Origin.AST); in ForEachMatchingDC()
302 << ", (ASTContext*)" << (void*)&Target.AST in ForEachMatchingDC()
371 LazyASTImporter &Importer = LazyImporterForOrigin(*this, *Origin.AST); in MaybeRecordOrigin()
374 LookupSameContext(Origin.AST->getTranslationUnitDecl(), ToDC, Reverse); in MaybeRecordOrigin()
382 << ", (ASTContext*)" << (void*)&Origin.AST in MaybeRecordOrigin()
388 RecordOriginImpl(ToDC, Origin, ImporterForOrigin(*Origin.AST)); in ForceRecordOrigin()
400 *Target.AST.getTranslationUnitDecl()); in ExternalASTMerger()
405 assert(&D->getASTContext() == &Target.AST); in FindOriginalDecl()
[all …]
/netbsd-src/external/apache2/llvm/include/
H A DMakefile158 .PATH: ${CLANG_SRCDIR}/include/clang/AST \
187 clang/AST/AttrImpl.inc|-gen-clang-attr-impl \
188 clang/AST/AttrNodeTraverse.inc|-gen-clang-attr-node-traverse \
189 clang/AST/AttrTextNodeDump.inc|-gen-clang-attr-text-node-dump \
190 clang/AST/Attrs.inc|-gen-clang-attr-classes \
191 clang/AST/AttrVisitor.inc|-gen-clang-attr-ast-visitor \
206 clang/AST/AbstractBasicReader.inc|-gen-clang-basic-reader \
207 clang/AST/AbstractBasicWriter.inc|-gen-clang-basic-writer
211 clang/AST/AbstractTypeReader.inc|-gen-clang-type-reader \
212 clang/AST/AbstractTypeWriter.inc|-gen-clang-type-writer
[all …]

12345678910>>...13