Home | History | Annotate | Download | only in Parse

Lines Matching refs:Scope

24 #include "clang/Sema/Scope.h"
987 /// scope appropriately.
992 ParseScope ClassTemplateScope(this, Scope::TemplateParamScope,
997 // Set or update the scope flags.
999 unsigned ScopeFlags = Scope::ClassScope|Scope::DeclScope;
1003 // Enter the scope of nested classes
1071 // If the Decl is templatized, add template parameters to scope.
1073 ParseScope TempScope(this, Scope::TemplateParamScope, HasTemplateScope);
1077 // If the Decl is on a function, add function parameters to the scope.
1079 ParseScope FnScope(this, Scope::FnScope|Scope::DeclScope, HasFunScope);
1088 FnScope.Exit(); // Pop scope, and remove Decls from IdResolver
1095 // function scope.
1347 // Must temporarily exit the objective-c container scope for
1483 // At namespace scope, 'identifier:' is probably a typo for 'identifier::'
1484 // and in block scope it's probably a label. Inside a class definition,
1599 // appropriate function scope after the function Decl has been constructed.
2235 // TODO: Could inject an invalid typedef decl in an enclosing scope to
2408 = (getCurScope()->getFlags() & (Scope::ControlScope |
2409 Scope::BlockScope |
2410 Scope::TemplateParamScope |
2411 Scope::FunctionPrototypeScope |
2412 Scope::AtCatchScope)) == 0;
2438 // C++ scope specifier. Annotate and loop, or bail out on error.
2505 ConsumeToken(); // The C++ scope.
2514 ConsumeToken(); // The C++ scope.
2562 ConsumeToken(); // Eat the scope spec so the identifier is current.
2575 ConsumeToken(); // The C++ scope.
2632 // In C++, check to see if this is a scope specifier like foo::bar::, if
3250 ParseScope StructScope(this, Scope::ClassScope|Scope::DeclScope);
3499 bool CanBeBitfield = getCurScope()->getFlags() & Scope::ClassScope;
3503 // If we're in class scope, this can either be an enum declaration with
3716 // Enter the scope of the enum body and start the definition.
3717 ParseScope EnumScope(this, Scope::DeclScope);
3806 bool CanBeBitfield = getCurScope()->getFlags() & Scope::ClassScope;
3908 // Annotate typenames and C++ scope specifiers. If we get one, just
4039 // Annotate typenames and C++ scope specifiers. If we get one, just
4062 // Annotate typenames and C++ scope specifiers. If we get one, just
4201 // Parse the C++ scope specifier.
4234 // If we need to, enter the specified scope.
4454 // scope spec in the generic path below.
4465 // The scope spec really belongs to the direct-declarator.
4486 // scope. It has to catch pointers into namespace scope anyway.
4649 // ParseDeclaratorInternal might already have parsed the scope.
4714 // Once we're past the identifier, if the scope was bad, mark the
4749 // scope when parsing the parenthesized declarator, then exited
4750 // the scope already. Re-enter the scope, if we need to.
4753 // scope may have been entered before. Don't do it again.
4797 // Enter function-declaration scope, limiting any declarators to the
4798 // function prototype scope, including parameter declarators.
4800 Scope::FunctionPrototypeScope|Scope::DeclScope|
4802 ? Scope::FunctionDeclarationScope : 0));
4930 // Enter function-declaration scope, limiting any declarators to the
4931 // function prototype scope, including parameter declarators.
4933 Scope::FunctionPrototypeScope | Scope::DeclScope |
4935 ? Scope::FunctionDeclarationScope : 0));
4965 "Should call from a Function scope");
5253 // Just use the ParsingDeclaration "scope" of the declarator.
5299 // added to the current scope.