Lines Matching defs:Scope
36 #include "clang/Sema/Scope.h"
63 void Sema::ActOnTranslationUnitScope(Scope *S) {
186 // Tell the SemaConsumer to forget about us; we're going out of scope.
540 /// translation unit when EOF is reached and all but the top-level scope is
655 // scope without an initializer, and without a storage-class
661 // translation unit contains a file scope declaration of that
959 /// \brief Determines the active Scope associated with the given declaration
962 /// This routine maps a declaration context to the active Scope object that
964 /// from "scope-less" code (e.g., template instantiation, lazy creation of
966 /// must update the Scope.
968 /// \returns The scope corresponding to the given declaraion context, or NULL
969 /// if no such scope is open.
970 Scope *Sema::getScopeForContext(DeclContext *Ctx) {
976 for (Scope *S = getCurScope(); S; S = S->getParent()) {
979 if (S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope))
988 /// \brief Enter a new function scope
991 // Use the "top" function scope rather than having to allocate
992 // memory for a new scope.
1001 void Sema::PushBlockScope(Scope *BlockScope, BlockDecl *Block) {
1014 FunctionScopeInfo *Scope = FunctionScopes.pop_back_val();
1019 AnalysisWarnings.IssueWarnings(*WP, Scope, D, blkExpr);
1022 i = Scope->PossiblyUnreachableDiags.begin(),
1023 e = Scope->PossiblyUnreachableDiags.end();
1030 if (FunctionScopes.back() != Scope) {
1031 delete Scope;
1341 void Sema::PushCapturedRegionScope(Scope *S, CapturedDecl *CD, RecordDecl *RD,