From 4ea8043d6fca75710a6f7a08b1a2f0d8ecf34277 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 18 Nov 2008 15:03:34 +0000 Subject: As threatened previously: consolidate name lookup and the creation of DeclRefExprs and BlockDeclRefExprs into a single function Sema::ActOnDeclarationNameExpr, eliminating a bunch of duplicate lookup-name-and-check-the-result code. Note that we still have the three parser entry points for identifiers, operator-function-ids, and conversion-function-ids, since the parser doesn't (and shouldn't) know about DeclarationNames. This is a Good Thing (TM), and there will be more entrypoints coming (e.g., for C++ pseudo-destructor expressions). llvm-svn: 59527 --- clang/lib/Sema/Sema.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/lib/Sema/Sema.h') diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 03099956b07..66c01386147 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -625,6 +625,12 @@ public: TypeTy *Ty, bool HasTrailingLParen, const CXXScopeSpec *SS); + ExprResult ActOnDeclarationNameExpr(Scope *S, SourceLocation Loc, + DeclarationName Name, + bool HasTrailingLParen, + const CXXScopeSpec *SS); + + virtual ExprResult ActOnPredefinedExpr(SourceLocation Loc, tok::TokenKind Kind); virtual ExprResult ActOnNumericConstant(const Token &); -- cgit v1.2.3