summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-11-18 15:03:34 +0000
committerDouglas Gregor <dgregor@apple.com>2008-11-18 15:03:34 +0000
commit4ea8043d6fca75710a6f7a08b1a2f0d8ecf34277 (patch)
tree56b2ba339a5e5d36c543010a41044fb8bc3bb017 /clang/lib/Sema/Sema.h
parent163c58502abf01db880cefb8a6c0b55c88142446 (diff)
downloadbcm5719-llvm-4ea8043d6fca75710a6f7a08b1a2f0d8ecf34277.tar.gz
bcm5719-llvm-4ea8043d6fca75710a6f7a08b1a2f0d8ecf34277.zip
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
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r--clang/lib/Sema/Sema.h6
1 files changed, 6 insertions, 0 deletions
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 &);
OpenPOWER on IntegriCloud