diff options
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/AST/ExprCXX.h | 11 | ||||
-rw-r--r-- | include/clang/Frontend/PCHBitCodes.h | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/include/clang/AST/ExprCXX.h b/include/clang/AST/ExprCXX.h index 48248d322b..d9058ac326 100644 --- a/include/clang/AST/ExprCXX.h +++ b/include/clang/AST/ExprCXX.h @@ -1497,6 +1497,11 @@ class UnresolvedLookupExpr : public OverloadExpr { RequiresADL(RequiresADL), Overloaded(Overloaded), NamingClass(NamingClass) {} + UnresolvedLookupExpr(EmptyShell Empty) + : OverloadExpr(UnresolvedLookupExprClass, Empty), + RequiresADL(false), Overloaded(false), NamingClass(0) + {} + public: static UnresolvedLookupExpr *Create(ASTContext &C, bool Dependent, @@ -1528,17 +1533,23 @@ public: UnresolvedSetIterator Begin, UnresolvedSetIterator End); + static UnresolvedLookupExpr *CreateEmpty(ASTContext &C, + unsigned NumTemplateArgs); + /// True if this declaration should be extended by /// argument-dependent lookup. bool requiresADL() const { return RequiresADL; } + void setRequiresADL(bool V) { RequiresADL = V; } /// True if this lookup is overloaded. bool isOverloaded() const { return Overloaded; } + void setOverloaded(bool V) { Overloaded = V; } /// Gets the 'naming class' (in the sense of C++0x /// [class.access.base]p5) of the lookup. This is the scope /// that was looked in to find these results. CXXRecordDecl *getNamingClass() const { return NamingClass; } + void setNamingClass(CXXRecordDecl *D) { NamingClass = D; } // Note that, inconsistently with the explicit-template-argument AST // nodes, users are *forbidden* from calling these methods on objects diff --git a/include/clang/Frontend/PCHBitCodes.h b/include/clang/Frontend/PCHBitCodes.h index eda0fa12c6..fb7da7713d 100644 --- a/include/clang/Frontend/PCHBitCodes.h +++ b/include/clang/Frontend/PCHBitCodes.h @@ -771,7 +771,8 @@ namespace clang { EXPR_CXX_DEPENDENT_SCOPE_MEMBER, // CXXDependentScopeMemberExpr EXPR_CXX_UNRESOLVED_CONSTRUCT, // CXXUnresolvedConstructExpr - EXPR_CXX_UNRESOLVED_MEMBER // UnresolvedMemberExpr + EXPR_CXX_UNRESOLVED_MEMBER, // UnresolvedMemberExpr + EXPR_CXX_UNRESOLVED_LOOKUP // UnresolvedLookupExpr }; /// \brief The kinds of designators that can occur in a |