summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseCXXInlineMethods.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-08-11 06:59:38 +0000
committerJohn McCall <rjmccall@apple.com>2009-08-11 06:59:38 +0000
commitd1e9d835f30a4505c280504bad9f59d68cbd7a50 (patch)
treeb7b4a0abc67d79844bd531dde8844b7040d7949a /clang/lib/Parse/ParseCXXInlineMethods.cpp
parent4d4a2e09a94968ba45dfeb6c294e7b339b81427f (diff)
downloadbcm5719-llvm-d1e9d835f30a4505c280504bad9f59d68cbd7a50.tar.gz
bcm5719-llvm-d1e9d835f30a4505c280504bad9f59d68cbd7a50.zip
Argument-dependent lookup for friend declarations. Add a new decl type,
FriendFunctionDecl, and create instances as appropriate. The design of FriendFunctionDecl is still somewhat up in the air; you can befriend arbitrary types of functions --- methods, constructors, etc. --- and it's not clear that this representation captures that very well. We'll have a better picture when we start consuming this data in access control. llvm-svn: 78653
Diffstat (limited to 'clang/lib/Parse/ParseCXXInlineMethods.cpp')
-rw-r--r--clang/lib/Parse/ParseCXXInlineMethods.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseCXXInlineMethods.cpp b/clang/lib/Parse/ParseCXXInlineMethods.cpp
index 52a812d4ba1..ca9fc322da0 100644
--- a/clang/lib/Parse/ParseCXXInlineMethods.cpp
+++ b/clang/lib/Parse/ParseCXXInlineMethods.cpp
@@ -29,7 +29,7 @@ Parser::ParseCXXInlineMethodDef(AccessSpecifier AS, Declarator &D) {
DeclPtrTy FnD;
if (D.getDeclSpec().isFriendSpecified())
- FnD = Actions.ActOnFriendDecl(CurScope, &D);
+ FnD = Actions.ActOnFriendDecl(CurScope, &D, /*IsDefinition*/ true);
else
FnD = Actions.ActOnCXXMemberDeclarator(CurScope, AS, D, 0, 0);
OpenPOWER on IntegriCloud