summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-overloaded-virtual.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Basic] Extend DiagnosticEngine to store and format Qualifiers.Anastasia Stulova2019-01-041-1/+1
| | | | | | | | | | | Qualifiers can now be streamed into the DiagnosticEngine using regular << operator. If Qualifiers are empty 'unqualified' will be printed in the diagnostic otherwise regular qual syntax is used. Differential Revision: https://reviews.llvm.org/D56198 llvm-svn: 350386
* Updating a comment related to the implementation of -Woverloaded-virtual, ↵Aaron Ballman2014-07-301-2/+20
| | | | | | | | and adding a FIXME to a test case. (Drive-by removal of trailing whitespace in the test case as well.) No functional changes. llvm-svn: 214362
* When -Woverloaded-virtual is triggered, call HandleFunctionTypeMismatch to addRichard Trieu2013-04-051-0/+18
| | | | | | | more information to the notes. This information is already present on other diagnostic messages that involves overloads. llvm-svn: 178923
* Handle diamond inheritance in -Woverloaded-virtual.David Blaikie2012-10-191-0/+40
| | | | llvm-svn: 166254
* Fix -Woverloaded-virtual when the using statement refers to a base ↵David Blaikie2012-10-171-0/+16
| | | | | | | | | | | | | | | declaration of a virtual function. GCC and Clang both do not warn on: struct a { virtual void func(); }; struct b: a { virtual void func(); void func(int); }; struct c: b { void func(int); using b::func; }; but if the "using" was using a::func GCC would still remain silent where Clang would warn. This change makes Clang consistent with GCC's existing behavior. llvm-svn: 166154
* -Woverloaded-virtual shouldn't warn for static functions. Fixes ↵Argyrios Kyrtzidis2011-03-031-0/+12
| | | | | | rdar://9083431 & http://llvm.org/PR9396. llvm-svn: 126966
* For -Woverloaded-virtual take into account canonical methods. Fixes ↵Argyrios Kyrtzidis2011-02-101-0/+13
| | | | | | rdar://8979966 & http://llvm.org/PR9182. llvm-svn: 125296
* Implement -Woverloaded-virtual.Argyrios Kyrtzidis2011-02-031-0/+41
The difference with gcc is that it warns if you overload virtual methods only if the method doesn't also override any method. This is to cut down on the number of warnings and make it more useful like reported here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20423. If we want to warn that not all overloads are overriden we can have an additional warning like -Wpartial-override. -Woverloaded-virtual, unlike gcc, is added to -Wmost. Addresses rdar://8757630. llvm-svn: 124805
OpenPOWER on IntegriCloud