Home
last modified time | relevance | path

Searched refs:TopLevelStmtDecl (Results 1 – 13 of 13) sorted by relevance

/src/contrib/llvm-project/clang/include/clang/AST/
H A DDecl.h4430 class TopLevelStmtDecl : public Decl, public DeclContext {
4437 TopLevelStmtDecl(DeclContext *DC, SourceLocation L, Stmt *S) in TopLevelStmtDecl() function
4443 static TopLevelStmtDecl *Create(ASTContext &C, Stmt *Statement);
4444 static TopLevelStmtDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID);
4456 static DeclContext *castToDeclContext(const TopLevelStmtDecl *D) { in castToDeclContext()
4457 return static_cast<DeclContext *>(const_cast<TopLevelStmtDecl *>(D)); in castToDeclContext()
4459 static TopLevelStmtDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
4460 return static_cast<TopLevelStmtDecl *>(const_cast<DeclContext *>(DC)); in castFromDeclContext()
H A DASTNodeTraverser.h581 void VisitTopLevelStmtDecl(const TopLevelStmtDecl *D) { Visit(D->getStmt()); } in VisitTopLevelStmtDecl()
H A DRecursiveASTVisitor.h1592 DEF_TRAVERSE_DECL(TopLevelStmtDecl, { TRY_TO(TraverseStmt(D->getStmt())); })
/src/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp5591 void TopLevelStmtDecl::anchor() {} in anchor()
5593 TopLevelStmtDecl *TopLevelStmtDecl::Create(ASTContext &C, Stmt *Statement) { in Create()
5600 return new (C, DC) TopLevelStmtDecl(DC, Loc, Statement); in Create()
5603 TopLevelStmtDecl *TopLevelStmtDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
5606 TopLevelStmtDecl(/*DC=*/nullptr, SourceLocation(), /*S=*/nullptr); in CreateDeserialized()
5609 SourceRange TopLevelStmtDecl::getSourceRange() const { in getSourceRange()
5613 void TopLevelStmtDecl::setStmt(Stmt *S) { in setStmt()
H A DDeclPrinter.cpp76 void VisitTopLevelStmtDecl(TopLevelStmtDecl *D);
1014 void DeclPrinter::VisitTopLevelStmtDecl(TopLevelStmtDecl *D) { in VisitTopLevelStmtDecl()
/src/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.cpp49 if (auto *TSD = llvm::dyn_cast<TopLevelStmtDecl>(D); in HandleTopLevelDecl()
/src/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.h620 std::pair<std::unique_ptr<CodeGenFunction>, const TopLevelStmtDecl *>
1733 void EmitTopLevelStmt(const TopLevelStmtDecl *D);
H A DCodeGenModule.cpp860 const TopLevelStmtDecl *TLSD = GlobalTopLevelStmtBlockInFlight.second; in Release()
6818 void CodeGenModule::EmitTopLevelStmt(const TopLevelStmtDecl *D) { in EmitTopLevelStmt()
7064 EmitTopLevelStmt(cast<TopLevelStmtDecl>(D)); in EmitTopLevelDecl()
/src/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp129 void VisitTopLevelStmtDecl(TopLevelStmtDecl *D);
1279 void ASTDeclWriter::VisitTopLevelStmtDecl(TopLevelStmtDecl *D) { in VisitTopLevelStmtDecl()
2788 if (isa<FileScopeAsmDecl, TopLevelStmtDecl, ObjCImplDecl>(D)) in isRequiredDecl()
H A DASTReaderDecl.cpp411 void VisitTopLevelStmtDecl(TopLevelStmtDecl *D);
1758 void ASTDeclReader::VisitTopLevelStmtDecl(TopLevelStmtDecl *D) { in VisitTopLevelStmtDecl()
3198 if (isa<FileScopeAsmDecl, TopLevelStmtDecl, ObjCProtocolDecl, ObjCImplDecl, in isConsumerInterestedIn()
4058 D = TopLevelStmtDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
/src/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp5970 TopLevelStmtDecl *TLSD = Actions.ActOnStartTopLevelStmtDecl(getCurScope()); in ParseTopLevelStmtDecl()
5990 TopLevelStmtDecl *D = Actions.ActOnStartTopLevelStmtDecl(getCurScope()); in ParseTopLevelStmtDecl()
/src/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h3784 TopLevelStmtDecl *ActOnStartTopLevelStmtDecl(Scope *S);
3785 void ActOnFinishTopLevelStmtDecl(TopLevelStmtDecl *D, Stmt *Statement);
/src/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp20089 TopLevelStmtDecl *Sema::ActOnStartTopLevelStmtDecl(Scope *S) { in ActOnStartTopLevelStmtDecl()
20090 auto *New = TopLevelStmtDecl::Create(Context, /*Statement=*/nullptr); in ActOnStartTopLevelStmtDecl()
20098 void Sema::ActOnFinishTopLevelStmtDecl(TopLevelStmtDecl *D, Stmt *Statement) { in ActOnFinishTopLevelStmtDecl()