]> granicus.if.org Git - clang/commit
Patch to warn if 'override' is missing
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 2 Oct 2014 23:13:51 +0000 (23:13 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 2 Oct 2014 23:13:51 +0000 (23:13 +0000)
commit6756af31efc2b57943f982b501a79377906de44f
treee9f627edcf978d244dbb453262d5f09dbb4543c6
parentbb17ae00530bdbfe91b62f95a2769faba44d0ca6
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).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218925 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaDeclCXX.cpp
test/CXX/class.derived/class.virtual/p3-0x.cpp
test/FixIt/cxx11-fixit-missing-override.cpp [new file with mode: 0644]
test/FixIt/fixit-cxx0x.cpp
test/Parser/MicrosoftExtensions.cpp
test/Parser/cxx0x-decl.cpp
test/Parser/cxx0x-in-cxx98.cpp
test/SemaCXX/MicrosoftExtensions.cpp
test/SemaCXX/attr-gnu.cpp
test/SemaCXX/cxx11-warn-missing-override.cpp [new file with mode: 0644]
test/SemaCXX/cxx98-compat.cpp
test/SemaCXX/ms-interface.cpp