aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/PrintParserCallbacks.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-05-29 01:49:24 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-05-29 01:49:24 +0000
commitc1dc653b08226c1d8e1732f9d8b03b82869900bc (patch)
tree26654a45595980f57aa6c588fd89aee163e9fbf9 /lib/Frontend/PrintParserCallbacks.cpp
parent402abb55fc2e0cdda5fb1ac90009b1f5f6774906 (diff)
If a declarator group declares a type, make sure to add that declaration
to the DeclGroup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72559 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PrintParserCallbacks.cpp')
-rw-r--r--lib/Frontend/PrintParserCallbacks.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Frontend/PrintParserCallbacks.cpp b/lib/Frontend/PrintParserCallbacks.cpp
index 73530ef58d..ca13f3df29 100644
--- a/lib/Frontend/PrintParserCallbacks.cpp
+++ b/lib/Frontend/PrintParserCallbacks.cpp
@@ -116,7 +116,8 @@ namespace {
/// FinalizeDeclaratorGroup - After a sequence of declarators are parsed,
/// this gives the actions implementation a chance to process the group as
/// a whole.
- virtual DeclGroupPtrTy FinalizeDeclaratorGroup(Scope *S, DeclPtrTy *Group,
+ virtual DeclGroupPtrTy FinalizeDeclaratorGroup(Scope *S, const DeclSpec& DS,
+ DeclPtrTy *Group,
unsigned NumDecls) {
Out << __FUNCTION__ << "\n";
return DeclGroupPtrTy();