]> granicus.if.org Git - clang/commitdiff
Fix PrintParserCallbacks for the new ActOnLinkageSpec actions
authorDouglas Gregor <dgregor@apple.com>
Wed, 17 Dec 2008 01:46:43 +0000 (01:46 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 17 Dec 2008 01:46:43 +0000 (01:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61115 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/PrintParserCallbacks.cpp

index 6546b08816fc8cbe2355952b389d6d4d629fb8d3..dff931bba4574156d8b8fe462a7b945a2fcf23ee 100644 (file)
@@ -156,14 +156,27 @@ namespace {
       llvm::cout << __FUNCTION__ << "\n";
       return 0;
     }
-
+    
+    /// ActOnLinkageSpec - Parsed a C++ linkage-specification that
+    /// contained braces. Lang/StrSize contains the language string that
+    /// was parsed at location Loc. Decls/NumDecls provides the
+    /// declarations parsed inside the linkage specification.
     virtual DeclTy *ActOnLinkageSpec(SourceLocation Loc, SourceLocation LBrace,
                                      SourceLocation RBrace, const char *Lang,
-                                     unsigned StrSize, DeclTy *D) {
+                                     unsigned StrSize, 
+                                     DeclTy **Decls, unsigned NumDecls) {
       llvm::cout << __FUNCTION__ << "\n";
       return 0;
     }
-  
+    
+    /// ActOnLinkageSpec - Parsed a C++ linkage-specification without
+    /// braces. Lang/StrSize contains the language string that was
+    /// parsed at location Loc. D is the declaration parsed.
+    virtual DeclTy *ActOnLinkageSpec(SourceLocation Loc, const char *Lang,
+                                     unsigned StrSize, DeclTy *D) {
+      return 0;
+    }
+    
     //===--------------------------------------------------------------------===//
     // Type Parsing Callbacks.
     //===--------------------------------------------------------------------===//