diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2014-10-02 23:13:51 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-10-02 23:13:51 +0000 |
commit | b91c5d6a79665c9028f15669dc41b5973b9fd8f8 (patch) | |
tree | 10280a0264c8f5e06807e0dd2f2e1f6495886d34 /clang/test/Parser/MicrosoftExtensions.cpp | |
parent | a3f58694b5c0fa2af552d70220da787dc6d7e890 (diff) | |
download | bcm5719-llvm-b91c5d6a79665c9028f15669dc41b5973b9fd8f8.tar.gz bcm5719-llvm-b91c5d6a79665c9028f15669dc41b5973b9fd8f8.zip |
Patch to warn if 'override' is missing
for an overriding method if class has at least one
'override' specified on one of its methods.
Reviewed by Doug Gregor. rdar://18295240
(I have already checked in all llvm files with missing 'override'
methods and Bob Wilson has fixed a TableGen of FastISel so
no warnings are expected from build of llvm after this patch.
I have already verified this).
llvm-svn: 218925
Diffstat (limited to 'clang/test/Parser/MicrosoftExtensions.cpp')
-rw-r--r-- | clang/test/Parser/MicrosoftExtensions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Parser/MicrosoftExtensions.cpp b/clang/test/Parser/MicrosoftExtensions.cpp index ee530b8669f..85ccdc5490c 100644 --- a/clang/test/Parser/MicrosoftExtensions.cpp +++ b/clang/test/Parser/MicrosoftExtensions.cpp @@ -208,12 +208,12 @@ extern TypenameWrongPlace<AAAA> PR16925; __interface MicrosoftInterface; __interface MicrosoftInterface { - void foo1() = 0; + void foo1() = 0; // expected-note {{overridden virtual function is here}} virtual void foo2() = 0; }; __interface MicrosoftDerivedInterface : public MicrosoftInterface { - void foo1(); + void foo1(); // expected-warning {{'foo1' overrides a member function but is not marked 'override'}} void foo2() override; void foo3(); }; |