summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDeclCXX.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-16 22:07:16 +0000
committerChris Lattner <sabre@nondot.org>2009-02-16 22:07:16 +0000
commita377833888a05ebcae4654c072382fc82b640c62 (patch)
tree96b10d31c1ab81eb42510ded6c479e3f857fdaed /clang/lib/Parse/ParseDeclCXX.cpp
parent06d21930a12db4bfe1316a137097456119cfd927 (diff)
downloadbcm5719-llvm-a377833888a05ebcae4654c072382fc82b640c62.tar.gz
bcm5719-llvm-a377833888a05ebcae4654c072382fc82b640c62.zip
diagnose uses of deprecated typenames and tags.
We now pass all the deprecation tests in the objc.dg suite. llvm-svn: 64679
Diffstat (limited to 'clang/lib/Parse/ParseDeclCXX.cpp')
-rw-r--r--clang/lib/Parse/ParseDeclCXX.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp
index fe08fc5051e..d6b83f3fb2d 100644
--- a/clang/lib/Parse/ParseDeclCXX.cpp
+++ b/clang/lib/Parse/ParseDeclCXX.cpp
@@ -358,9 +358,8 @@ void Parser::ParseClassSpecifier(DeclSpec &DS,
NameLoc, Attr);
// Parse the optional base clause (C++ only).
- if (getLang().CPlusPlus && Tok.is(tok::colon)) {
+ if (getLang().CPlusPlus && Tok.is(tok::colon))
ParseBaseClause(TagOrTempDecl);
- }
// If there is a body, parse it and inform the actions module.
if (Tok.is(tok::l_brace))
OpenPOWER on IntegriCloud