Home
last modified time | relevance | path

Searched refs:TranslationUnitDecl (Results 1 – 25 of 47) sorted by relevance

12

/external/clang/lib/StaticAnalyzer/Checkers/
DDebugCheckers.cpp115 class CallGraphViewer : public Checker< check::ASTDecl<TranslationUnitDecl> > {
117 void checkASTDecl(const TranslationUnitDecl *TU, AnalysisManager& mgr, in checkASTDecl()
120 CG.addToCallGraph(const_cast<TranslationUnitDecl*>(TU)); in checkASTDecl()
135 class CallGraphDumper : public Checker< check::ASTDecl<TranslationUnitDecl> > {
137 void checkASTDecl(const TranslationUnitDecl *TU, AnalysisManager& mgr, in checkASTDecl()
140 CG.addToCallGraph(const_cast<TranslationUnitDecl*>(TU)); in checkASTDecl()
158 void checkEndOfTranslationUnit(const TranslationUnitDecl *TU, in checkEndOfTranslationUnit()
DCheckerDocumentation.cpp179 void checkEndOfTranslationUnit(const TranslationUnitDecl *TU, in checkEndOfTranslationUnit()
DLLVMConventionsChecker.cpp48 return isa<TranslationUnitDecl>(ND->getDeclContext()); in InNamespace()
/external/clang/docs/
DClangCheck.rst22 (TranslationUnitDecl 0x7ff3a3029ed0 <<invalid sloc>>
DIntroductionToTheClangAST.rst127 `TranslationUnitDecl <http://clang.llvm.org/doxygen/classclang_1_1TranslationUnitDecl.html>`_
/external/clang/lib/Frontend/
DASTMerge.cpp59 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); in ExecuteAction()
DASTConsumers.cpp45 TranslationUnitDecl *D = Context.getTranslationUnitDecl(); in HandleTranslationUnit()
/external/clang/lib/AST/
DDeclBase.cpp247 TranslationUnitDecl *Decl::getTranslationUnitDecl() { in getTranslationUnitDecl()
248 if (TranslationUnitDecl *TUD = dyn_cast<TranslationUnitDecl>(this)) in getTranslationUnitDecl()
259 return cast<TranslationUnitDecl>(DC); in getTranslationUnitDecl()
664 if (isa<TranslationUnitDecl>(this) || in CheckAccessDeclContext()
DDecl.cpp603 !isa<TranslationUnitDecl>(DC); in getLVForNamespaceScopeDecl()
2191 const TranslationUnitDecl *tunit = in isMain()
2192 dyn_cast<TranslationUnitDecl>(getDeclContext()->getRedeclContext()); in isMain()
2212 cast<TranslationUnitDecl>(getDeclContext()->getRedeclContext()) in isReservedGlobalPlacementOperator()
3358 void TranslationUnitDecl::anchor() { } in anchor()
3360 TranslationUnitDecl *TranslationUnitDecl::Create(ASTContext &C) { in Create()
3361 return new (C) TranslationUnitDecl(C); in Create()
DDeclPrinter.cpp48 void VisitTranslationUnitDecl(TranslationUnitDecl *D);
176 ASTContext &Ctx = cast<TranslationUnitDecl>(DC)->getASTContext(); in dumpDeclContext()
329 void DeclPrinter::VisitTranslationUnitDecl(TranslationUnitDecl *D) { in VisitTranslationUnitDecl()
DASTImporter.cpp132 Decl *VisitTranslationUnitDecl(TranslationUnitDecl *D);
2235 Decl *ASTNodeImporter::VisitTranslationUnitDecl(TranslationUnitDecl *D) { in VisitTranslationUnitDecl()
2236 TranslationUnitDecl *ToD = in VisitTranslationUnitDecl()
2257 if (TranslationUnitDecl *TU = dyn_cast<TranslationUnitDecl>(DC)) in VisitNamespaceDecl()
2299 if (TranslationUnitDecl *TU = dyn_cast<TranslationUnitDecl>(DC)) in VisitNamespaceDecl()
/external/clang/lib/ARCMigrate/
DTransforms.h123 void traverse(TranslationUnitDecl *TU);
DTransGCAttrs.cpp124 if (isa<TranslationUnitDecl>(D)) in isMigratable()
DTransforms.cpp516 void MigrationContext::traverse(TranslationUnitDecl *TU) { in traverse()
/external/clang/tools/libclang/
DCursorVisitor.h204 bool VisitTranslationUnitDecl(TranslationUnitDecl *D);
/external/clang/include/clang/AST/
DDecl.h73 class TranslationUnitDecl : public Decl, public DeclContext {
81 explicit TranslationUnitDecl(ASTContext &ctx) in TranslationUnitDecl() function
91 static TranslationUnitDecl *Create(ASTContext &C);
95 static DeclContext *castToDeclContext(const TranslationUnitDecl *D) { in castToDeclContext()
96 return static_cast<DeclContext *>(const_cast<TranslationUnitDecl*>(D)); in castToDeclContext()
98 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
99 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
DDeclBase.h51 class TranslationUnitDecl; variable
396 TranslationUnitDecl *getTranslationUnitDecl();
397 const TranslationUnitDecl *getTranslationUnitDecl() const { in getTranslationUnitDecl()
DASTContext.h371 TranslationUnitDecl *TUDecl;
735 TranslationUnitDecl *getTranslationUnitDecl() const { return TUDecl; } in getTranslationUnitDecl()
/external/clang/include/clang/StaticAnalyzer/Core/
DCheckerManager.h390 void runCheckersOnEndOfTranslationUnit(const TranslationUnitDecl *TU,
478 typedef CheckerFn<void (const TranslationUnitDecl *,
DChecker.h70 const TranslationUnitDecl *TU, in _checkEndOfTranslationUnit()
/external/clang/lib/StaticAnalyzer/Frontend/
DAnalysisConsumer.cpp490 TranslationUnitDecl *TU = C.getTranslationUnitDecl(); in HandleTranslationUnit()
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp495 if (Node.get<TranslationUnitDecl>() == in memoizedMatchesAncestorOfRecursively()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp215 void VisitTranslationUnitDecl(TranslationUnitDecl *TU);
410 void ASTDeclReader::VisitTranslationUnitDecl(TranslationUnitDecl *TU) { in VisitTranslationUnitDecl()
2816 if (TranslationUnitDecl *TU = dyn_cast<TranslationUnitDecl>(D)) in UpdateDecl()
DASTWriterDecl.cpp52 void VisitTranslationUnitDecl(TranslationUnitDecl *D);
173 void ASTDeclWriter::VisitTranslationUnitDecl(TranslationUnitDecl *D) { in VisitTranslationUnitDecl()
897 if (Parent->isFromASTFile() || isa<TranslationUnitDecl>(Parent)) { in VisitNamespaceDecl()
/external/clang/lib/StaticAnalyzer/Core/
DCheckerManager.cpp572 const TranslationUnitDecl *TU, in runCheckersOnEndOfTranslationUnit()

12