Lines Matching refs:TranslationUnitDecl
82 class TranslationUnitDecl : public Decl,
84 public Redeclarable<TranslationUnitDecl> {
85 using redeclarable_base = Redeclarable<TranslationUnitDecl>;
87 TranslationUnitDecl *getNextRedeclarationImpl() override { in getNextRedeclarationImpl()
91 TranslationUnitDecl *getPreviousDeclImpl() override { in getPreviousDeclImpl()
95 TranslationUnitDecl *getMostRecentDeclImpl() override { in getMostRecentDeclImpl()
105 explicit TranslationUnitDecl(ASTContext &ctx);
125 static TranslationUnitDecl *Create(ASTContext &C);
130 static DeclContext *castToDeclContext(const TranslationUnitDecl *D) { in castToDeclContext()
131 return static_cast<DeclContext *>(const_cast<TranslationUnitDecl*>(D)); in castToDeclContext()
133 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
134 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
149 PragmaCommentDecl(TranslationUnitDecl *TU, SourceLocation CommentLoc, in PragmaCommentDecl()
156 static PragmaCommentDecl *Create(const ASTContext &C, TranslationUnitDecl *DC,
183 PragmaDetectMismatchDecl(TranslationUnitDecl *TU, SourceLocation Loc, in PragmaDetectMismatchDecl()
191 TranslationUnitDecl *DC,
223 explicit ExternCContextDecl(TranslationUnitDecl *TU) in ExternCContextDecl()
231 TranslationUnitDecl *TU);