diff options
author | Richard Trieu <rtrieu@google.com> | 2012-05-16 19:04:59 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2012-05-16 19:04:59 +0000 |
commit | 4b0e6f1da341510c1ad83eaf4c836f3134d0156a (patch) | |
tree | 2dff3a69b5a063baa3ca503771b8cf6f5db4e9c5 /test/Parser/cxx-class.cpp | |
parent | 533718fb27f87a25bf9f6fdd69df4a4ce8b783a6 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-class.cpp')
-rw-r--r-- | test/Parser/cxx-class.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Parser/cxx-class.cpp b/test/Parser/cxx-class.cpp index 1b3dd41ee8..75e3fbacc4 100644 --- a/test/Parser/cxx-class.cpp +++ b/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; |