summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r--clang/lib/Sema/Sema.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h
index fae0fa680c3..38541ef96ec 100644
--- a/clang/lib/Sema/Sema.h
+++ b/clang/lib/Sema/Sema.h
@@ -1452,6 +1452,21 @@ public:
bool RequireCompleteDeclContext(const CXXScopeSpec &SS);
+ /// \brief Build a scope representation from a declaration context.
+ CXXScopeTy *createScopeRep(DeclContext *DC) {
+ return static_cast<CXXScopeTy *>(DC);
+ }
+
+ /// \brief Build a scope representation from a type.
+ CXXScopeTy *createScopeRep(QualType T);
+
+ DeclContext *getScopeRepAsDeclContext(const CXXScopeSpec &SS);
+ QualType getScopeRepAsType(const CXXScopeSpec &SS);
+
+ /// \brief Determines whether this scope specifier is represented as
+ /// a type.
+ bool isScopeRepType(const CXXScopeSpec &SS);
+
/// ActOnCXXGlobalScopeSpecifier - Return the object that represents the
/// global scope ('::').
virtual CXXScopeTy *ActOnCXXGlobalScopeSpecifier(Scope *S,
OpenPOWER on IntegriCloud