aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Parser/cxx-class.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2012-05-16 19:04:59 +0000
committerRichard Trieu <rtrieu@google.com>2012-05-16 19:04:59 +0000
commit2f7dc46a5868db54f5a96e3a7308cad6970c0e4b (patch)
treee6c0a659e4d59be74b1b89330ea5f7228797b616 /clang/test/Parser/cxx-class.cpp
parent8c17fbd6c167687fca630b91ba007265e6a9c424 (diff)
downloadllvm-2f7dc46a5868db54f5a96e3a7308cad6970c0e4b.zip
llvm-2f7dc46a5868db54f5a96e3a7308cad6970c0e4b.tar.gz
llvm-2f7dc46a5868db54f5a96e3a7308cad6970c0e4b.tar.bz2
Move the warnings for extra semi-colons under -Wextra-semi. Also, added
a warning for an extra semi-colon after function definitions. Added logic so that a block of semi-colons on a line will only get one warning instead of a warning for each semi-colon. llvm-svn: 156934
Diffstat (limited to 'clang/test/Parser/cxx-class.cpp')
-rw-r--r--clang/test/Parser/cxx-class.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Parser/cxx-class.cpp b/clang/test/Parser/cxx-class.cpp
index 1b3dd41..75e3fba 100644
--- a/clang/test/Parser/cxx-class.cpp
+++ b/clang/test/Parser/cxx-class.cpp
@@ -14,9 +14,9 @@ protected:
public:
void m() {
int l = 2;
- };
+ }; // expected-warning{{extra ';' after function definition}}
- template<typename T> void mt(T) { };
+ template<typename T> void mt(T) { }
; // expected-warning{{extra ';' inside a class}}
virtual int vf() const volatile = 0;