aboutsummaryrefslogtreecommitdiff
path: root/Driver/PrintParserCallbacks.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-12-17 01:46:43 +0000
committerDouglas Gregor <dgregor@apple.com>2008-12-17 01:46:43 +0000
commite79837aacddb4713465006c0b030bc0675339573 (patch)
treef212646e1ec5a4111da0c3d6c561d6aaa5279288 /Driver/PrintParserCallbacks.cpp
parentbc1c877fe28fb6a825f0b226a0a2da99e713ea03 (diff)
Fix PrintParserCallbacks for the new ActOnLinkageSpec actions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/PrintParserCallbacks.cpp')
-rw-r--r--Driver/PrintParserCallbacks.cpp19
1 files changed, 16 insertions, 3 deletions
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.
//===--------------------------------------------------------------------===//