From: Douglas Gregor Date: Wed, 17 Dec 2008 01:46:43 +0000 (+0000) Subject: Fix PrintParserCallbacks for the new ActOnLinkageSpec actions X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e79837aacddb4713465006c0b030bc0675339573;p=clang Fix PrintParserCallbacks for the new ActOnLinkageSpec actions git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61115 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/PrintParserCallbacks.cpp b/Driver/PrintParserCallbacks.cpp index 6546b08816..dff931bba4 100644 --- a/Driver/PrintParserCallbacks.cpp +++ b/Driver/PrintParserCallbacks.cpp @@ -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. //===--------------------------------------------------------------------===//