summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprCXX.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-04 15:01:18 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-04 15:01:18 +0000
commitb8a9a41dd6ea0b0d652edb5be0a78dd21e0e271d (patch)
tree73af2a895cd623e0261648fcb2cb3d7c31e9c9ee /clang/lib/AST/ExprCXX.cpp
parent82b7372941c4273d0bc4180b2b60c681fbcf63d1 (diff)
downloadbcm5719-llvm-b8a9a41dd6ea0b0d652edb5be0a78dd21e0e271d.tar.gz
bcm5719-llvm-b8a9a41dd6ea0b0d652edb5be0a78dd21e0e271d.zip
Fix our semantic analysis of
unqualified-id '(' in C++. The unqualified-id might not refer to any declaration in our current scope, but declarations by that name might be found via argument-dependent lookup. We now do so properly. As part of this change, CXXDependentNameExpr, which was previously designed to express the unqualified-id in the above constructor within templates, has become UnresolvedFunctionNameExpr, which does effectively the same thing but will work for both templates and non-templates. Additionally, we cope with all unqualified-ids, since ADL also applies in cases like operator+(x, y) llvm-svn: 63733
Diffstat (limited to 'clang/lib/AST/ExprCXX.cpp')
-rw-r--r--clang/lib/AST/ExprCXX.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/ExprCXX.cpp b/clang/lib/AST/ExprCXX.cpp
index b21b4136898..dbc811a68b1 100644
--- a/clang/lib/AST/ExprCXX.cpp
+++ b/clang/lib/AST/ExprCXX.cpp
@@ -120,11 +120,11 @@ Stmt::child_iterator CXXNewExpr::child_end() {
Stmt::child_iterator CXXDeleteExpr::child_begin() { return &Argument; }
Stmt::child_iterator CXXDeleteExpr::child_end() { return &Argument+1; }
-// CXXDependentNameExpr
-Stmt::child_iterator CXXDependentNameExpr::child_begin() {
+// UnresolvedFunctionNameExpr
+Stmt::child_iterator UnresolvedFunctionNameExpr::child_begin() {
return child_iterator();
}
-Stmt::child_iterator CXXDependentNameExpr::child_end() {
+Stmt::child_iterator UnresolvedFunctionNameExpr::child_end() {
return child_iterator();
}
OpenPOWER on IntegriCloud