summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorNikola Smiljanic <popizdeh@gmail.com>2014-07-17 01:59:34 +0000
committerNikola Smiljanic <popizdeh@gmail.com>2014-07-17 01:59:34 +0000
commit4fc91538e93860a0b86b72530054acc301ab9c0e (patch)
tree63bfaf383e493bac3327464097d2045de093544e /clang/lib/Sema/SemaDecl.cpp
parent354e23b029e6337eefacb28bcda0cf3bae85b635 (diff)
downloadbcm5719-llvm-4fc91538e93860a0b86b72530054acc301ab9c0e.tar.gz
bcm5719-llvm-4fc91538e93860a0b86b72530054acc301ab9c0e.zip
Fix FriendDecl source location and range for class templates and function declarations that don't start with 'friend' keyword. Add more unittests.
llvm-svn: 213220
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 042fe264526..a7018cd7826 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -10817,6 +10817,7 @@ Decl *Sema::ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK,
SS, Name, NameLoc, Attr,
TemplateParams, AS,
ModulePrivateLoc,
+ /*FriendLoc*/SourceLocation(),
TemplateParameterLists.size()-1,
TemplateParameterLists.data());
return Result.get();
OpenPOWER on IntegriCloud