diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-04-01 22:41:11 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-04-01 22:41:11 +0000 |
| commit | e3e01a20d0072aa2d945f6fb5ddded0b408e6710 (patch) | |
| tree | 851cf3ac91db85e9145335ce0ba292cdc0ed6144 /clang/lib/Parse/ParseExprCXX.cpp | |
| parent | ec9c58f7e5678156c5a1bd84a12e5fce6d918c2c (diff) | |
| download | bcm5719-llvm-e3e01a20d0072aa2d945f6fb5ddded0b408e6710.tar.gz bcm5719-llvm-e3e01a20d0072aa2d945f6fb5ddded0b408e6710.zip | |
Add code modification hints to various parsing-related diagnostics.
Plus, reword a extension warnings to avoid talking about "ISO C" when
the extension might also be available in C++ or C++0x.
llvm-svn: 68257
Diffstat (limited to 'clang/lib/Parse/ParseExprCXX.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseExprCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp index 5865771f603..f00edddffe5 100644 --- a/clang/lib/Parse/ParseExprCXX.cpp +++ b/clang/lib/Parse/ParseExprCXX.cpp @@ -608,7 +608,7 @@ void Parser::ParseCXXSimpleTypeSpecifier(DeclSpec &DS) { // GNU typeof support. case tok::kw_typeof: ParseTypeofSpecifier(DS); - DS.Finish(Diags, PP.getSourceManager(), getLang()); + DS.Finish(Diags, PP); return; } if (Tok.is(tok::annot_typename)) @@ -616,7 +616,7 @@ void Parser::ParseCXXSimpleTypeSpecifier(DeclSpec &DS) { else DS.SetRangeEnd(Tok.getLocation()); ConsumeToken(); - DS.Finish(Diags, PP.getSourceManager(), getLang()); + DS.Finish(Diags, PP); } /// ParseCXXTypeSpecifierSeq - Parse a C++ type-specifier-seq (C++ |

