Searched refs:AST (Results 1 - 25 of 74) sorted by relevance

123

/netbsd-current/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dpermissivevisitor.d2 * A visitor that facilitates the traversal of subsets of the AST.
13 * that assert(0) in order to facilitate the traversal of subsets of the AST.
16 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
[all...]
H A Dparsetimevisitor.d2 * Defines a visitor for the AST.
12 /** Basic and dumm visitor which implements a visit method for each AST node
13 * implemented in AST. This visitor is the parent of strict, transitive
16 extern (C++) class ParseTimeVisitor(AST)
19 void visit(AST.Dsymbol) { assert(0); }
20 void visit(AST.Parameter) { assert(0); }
21 void visit(AST.Statement) { assert(0); }
22 void visit(AST.Type) { assert(0); }
23 void visit(AST.Expression) { assert(0); }
24 void visit(AST
[all...]
H A Dtransitivevisitor.d15 /** Visitor that implements the AST traversal logic. The nodes just accept their children.
17 extern(C++) class ParseTimeTransitiveVisitor(AST) : PermissiveVisitor!AST
19 alias visit = PermissiveVisitor!AST.visit;
21 mixin ParseVisitMethods!AST __methods;
25 /* This mixin implements the AST traversal logic for parse time AST nodes. The same code
26 * is used for semantic time AST node traversal, so in order to not duplicate the code,
29 package mixin template ParseVisitMethods(AST)
34 override void visit(AST
[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()
109 AST.Expression msg = null;
145 md = new AST.ModuleDeclaration(loc, a, id, msg, isdeprecated);
160 final AST.Dsymbols* parseModuleContent()
162 AST
[all...]
H A Dcparse.d35 final class CParser(AST) : Parser!AST
37 AST.Dsymbols* symbols; // symbols declared in current scope
54 * but to build the AST we need to distinguish `fun` being a function as opposed to a variable.
60 Array!(void*) typedefTab; /// Array of AST.Type[Identifier], typedef's indexed by Identifier
62 extern (D) this(TARGET)(AST.Module _module, const(char)[] input, bool doDocComment,
98 override AST.Dsymbols* parseModule()
101 symbols = new AST.Dsymbols();
108 auto wrap = new AST.Dsymbols();
109 auto ld = new AST
[all...]
H A Ddtoh.d223 /// Namespace providing the actual AST nodes
224 alias AST = ASTCodegen;
259 AST.AggregateDeclaration adparent;
262 AST.TemplateDeclaration tdparent;
269 AST.Type origType;
272 AST.Visibility.Kind currentVisibility;
275 AST.STC storageClass;
291 /// Informations about the current context in the AST
309 private void includeSymbol(AST.Dsymbol dsym)
313 printf("[includeSymbol(AST
[all...]
/netbsd-current/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
[all...]
/netbsd-current/external/mit/isl/dist/interface/
H A Dextract_interface.h1 #include <clang/AST/Decl.h>
/netbsd-current/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-current/external/apache2/llvm/dist/llvm/lib/Support/
H A DZ3Solver.cpp147 Z3_ast AST; member in class:__anon2116::Z3Expr
150 Z3Expr(Z3Context &C, Z3_ast ZA) : SMTExpr(), Context(C), AST(ZA) {
151 Z3_inc_ref(Context.Context, AST);
155 Z3Expr(const Z3Expr &Copy) : SMTExpr(), Context(Copy.Context), AST(Copy.AST) {
156 Z3_inc_ref(Context.Context, AST);
162 Z3_inc_ref(Context.Context, Other.AST);
163 Z3_dec_ref(Context.Context, AST);
164 AST = Other.AST;
784 toAPFloat(const SMTSortRef &Sort, const SMTExprRef &AST, llvm::APFloat &Float, bool useSemantics) argument
805 toAPSInt(const SMTSortRef &Sort, const SMTExprRef &AST, llvm::APSInt &Int, bool useSemantics) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/
H A DRefactoringRuleContext.h45 bool hasASTContext() const { return AST; }
48 assert(AST && "no AST!");
49 return *AST;
52 void setASTContext(ASTContext &Context) { AST = &Context; }
76 /// An optional AST for the translation unit on which a refactoring action
78 ASTContext *AST = nullptr; member in class:clang::tooling::RefactoringRuleContext
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/AST/
H A DExternalASTMerger.h1 //===--- ExternalASTMerger.h - Merging External AST Interface ---*- C++ -*-===//
16 #include "clang/AST/ASTImporter.h"
17 #include "clang/AST/ASTImporterSharedState.h"
18 #include "clang/AST/ExternalASTSource.h"
54 ASTContext *AST; member in struct:clang::ExternalASTMerger::DCOrigin
74 ASTContext &AST; member in struct:clang::ExternalASTMerger::ImporterTarget
84 ASTContext &AST; member in class:clang::ExternalASTMerger::ImporterSource
95 ImporterSource(ASTContext &AST, FileManager &FM, const OriginMap &OM, argument
97 : AST(AST), F
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/Frontend/
H A DASTUnit.cpp14 #include "clang/AST/ASTConsumer.h"
15 #include "clang/AST/ASTContext.h"
16 #include "clang/AST/CommentCommandTraits.h"
17 #include "clang/AST/Decl.h"
18 #include "clang/AST/DeclBase.h"
19 #include "clang/AST/DeclCXX.h"
20 #include "clang/AST/DeclGroup.h"
21 #include "clang/AST/DeclObjC.h"
22 #include "clang/AST/DeclTemplate.h"
23 #include "clang/AST/DeclarationNam
747 ConfigureDiags(IntrusiveRefCntPtr<DiagnosticsEngine> Diags, ASTUnit &AST, CaptureDiagsKind CaptureDiagnostics) argument
1513 ASTUnit *AST = Unit; local
1761 std::unique_ptr<ASTUnit> AST; local
1889 ASTUnit &AST; member in class:__anon619::AugmentedCodeCompleteConsumer
1893 AugmentedCodeCompleteConsumer(ASTUnit &AST, CodeCompleteConsumer &Next, const CodeCompleteOptions &CodeCompleteOpts) argument
[all...]
H A DFrontendAction.cpp10 #include "clang/AST/ASTConsumer.h"
11 #include "clang/AST/ASTContext.h"
12 #include "clang/AST/DeclGroup.h"
138 std::unique_ptr<ASTUnit> AST) {
140 CurrentASTUnit = std::move(AST);
564 // If we're replaying the build of an AST file, import it and set up
569 // The AST unit populates its own diagnostics engine rather than ours.
578 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile( local
582 if (!AST)
586 // are inherited from the AST uni
137 setCurrentInput(const FrontendInputFile &CurrentInput, std::unique_ptr<ASTUnit> AST) argument
646 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile( local
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DAliasSetTracker.h112 AliasSet *getAliasSet(AliasSetTracker &AST) { argument
116 AS = OldAS->getForwardedTarget(AST);
118 OldAS->dropRef(AST);
188 void dropRef(AliasSetTracker &AST) { argument
191 removeFromTracker(AST);
214 void mergeSetIn(AliasSet &AS, AliasSetTracker &AST);
285 AliasSet *getForwardedTarget(AliasSetTracker &AST) { argument
288 AliasSet *Dest = Forward->getForwardedTarget(AST);
291 Forward->dropRef(AST);
297 void removeFromTracker(AliasSetTracker &AST);
304 removeUnknownInst(AliasSetTracker &AST, Instruction *I) argument
333 AliasSetTracker *AST; member in class:llvm::AliasSetTracker::final
456 operator <<(raw_ostream &OS, const AliasSetTracker &AST) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Tooling/ASTDiff/
H A DASTDiff.h1 //===- ASTDiff.h - AST differencing API -----------------------*- C++ -*- -===//
36 /// Represents a Clang AST node, alongside some additional information.
65 /// SyntaxTree objects represent subtrees of the AST.
70 SyntaxTree(ASTContext &AST);
71 /// Constructs a tree from any AST node.
73 SyntaxTree(T *Node, ASTContext &AST) argument
74 : TreeImpl(std::make_unique<Impl>(this, Node, AST)) {}
/netbsd-current/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Extract/
H A DExtract.cpp16 #include "clang/AST/ASTContext.h"
17 #include "clang/AST/DeclCXX.h"
18 #include "clang/AST/Expr.h"
19 #include "clang/AST/ExprObjC.h"
108 ASTContext &AST = Context.getASTContext(); local
109 SourceManager &SM = AST.getSourceManager();
110 const LangOptions &LangOpts = AST.getLangOpts();
116 QualType ReturnType = AST.VoidTy;
142 PrintingPolicy PP = AST.getPrintingPolicy();
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DAliasSetTracker.cpp48 void AliasSet::mergeSetIn(AliasSet &AS, AliasSetTracker &AST) { argument
61 AliasAnalysis &AA = AST.getAliasAnalysis();
74 AST.TotalMayAliasSetSize += size();
76 AST.TotalMayAliasSetSize += AS.size();
106 AS.dropRef(AST);
126 void AliasSet::removeFromTracker(AliasSetTracker &AST) { argument
128 AST.removeAliasSet(this);
131 void AliasSet::addPointer(AliasSetTracker &AST, PointerRec &Entry, argument
140 AliasAnalysis &AA = AST.getAliasAnalysis();
146 AST
516 add(const AliasSetTracker &AST) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp1 //===- ASTDiff.cpp - AST differencing implementation-----------*- C++ -*- -===//
9 // This file contains definitons for the AST differencing interface.
14 #include "clang/AST/ParentMapContext.h"
15 #include "clang/AST/RecursiveASTVisitor.h"
111 /// Represents the AST of a TranslationUnit.
114 Impl(SyntaxTree *Parent, ASTContext &AST);
115 /// Constructs a tree from an AST node.
116 Impl(SyntaxTree *Parent, Decl *N, ASTContext &AST);
117 Impl(SyntaxTree *Parent, Stmt *N, ASTContext &AST);
121 ASTContext &AST)
119 Impl(SyntaxTree *Parent, std::enable_if_t<std::is_base_of<Stmt, T>::value, T> *Node, ASTContext &AST) argument
124 Impl(SyntaxTree *Parent, std::enable_if_t<std::is_base_of<Decl, T>::value, T> *Node, ASTContext &AST) argument
130 ASTContext &AST; member in class:clang::diff::SyntaxTree::Impl
262 Impl(SyntaxTree *Parent, ASTContext &AST) argument
267 Impl(SyntaxTree *Parent, Decl *N, ASTContext &AST) argument
274 Impl(SyntaxTree *Parent, Stmt *N, ASTContext &AST) argument
384 getEnclosingDeclContext(ASTContext &AST, const Stmt *S) argument
970 SyntaxTree(ASTContext &AST) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/AST/
H A DExternalASTMerger.cpp1 //===- ExternalASTMerger.cpp - Merging External AST Interface ---*- C++ -*-===//
14 #include "clang/AST/ASTContext.h"
15 #include "clang/AST/Decl.h"
16 #include "clang/AST/DeclCXX.h"
17 #include "clang/AST/DeclObjC.h"
18 #include "clang/AST/DeclTemplate.h"
19 #include "clang/AST/ExternalASTMerger.h"
134 // AST could contain declarations that were imported from a source
141 // would fail to do so as their temporary AST could be deleted (which means
153 // Target AST <
[all...]
/netbsd-current/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/AbstractTypeWrite
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/tools/clang-check/
H A DClangCheck.cpp18 #include "clang/AST/ASTConsumer.h"
152 void HandleTranslationUnit(clang::ASTContext &AST) override {
156 clang::syntax::Arena A(AST.getSourceManager(), AST.getLangOpts(), TB);
157 llvm::outs() << clang::syntax::buildSyntaxTree(A, AST)->dump(
158 AST.getSourceManager());
/netbsd-current/share/i18n/csmapper/
H A DMakefile13 SUBDIR= APPLE AST BIG5 CBM CNS CP EBCDIC GB GEORGIAN ISO646 ISO-8859 \
/netbsd-current/share/i18n/esdb/
H A DMakefile15 SUBDIR= APPLE AST BIG5 CBM CP DEC EUC EBCDIC GB GEORGIAN ISO-2022 \
/netbsd-current/external/apache2/llvm/dist/clang/tools/clang-import-test/
H A Dclang-import-test.cpp9 #include "clang/AST/ASTContext.h"
10 #include "clang/AST/ASTImporter.h"
11 #include "clang/AST/DeclObjC.h"
12 #include "clang/AST/ExternalASTMerger.h"
72 llvm::cl::desc("Dump combined AST"));
221 auto AST = std::make_unique<ASTContext>( local
224 AST->InitBuiltinTypes(CI.getTarget());
225 return AST;
282 std::unique_ptr<ASTContext> AST = init_convenience::BuildASTContext( local
284 IndirectCI.getCompilerInstance().setASTContext(AST
309 std::unique_ptr<ASTContext> AST = local
[all...]

Completed in 344 milliseconds

123