History log of /external/clang/test/SemaCXX/warn-overloaded-virtual.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f608aff66c5412ab583258f989417b4974ba507a 06-Apr-2013 Richard Trieu <rtrieu@google.com> When -Woverloaded-virtual is triggered, call HandleFunctionTypeMismatch to add
more information to the notes. This information is already present on other
diagnostic messages that involves overloads.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178923 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/warn-overloaded-virtual.cpp
5f750680d421328225e597d6429a298027dc6360 19-Oct-2012 David Blaikie <dblaikie@gmail.com> Handle diamond inheritance in -Woverloaded-virtual.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166254 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/warn-overloaded-virtual.cpp
76398e5ad39ae719dcc650c7cddeb25379c02c34 18-Oct-2012 David Blaikie <dblaikie@gmail.com> Fix -Woverloaded-virtual when the using statement refers to a base 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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166154 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/warn-overloaded-virtual.cpp
0266aa37802a486e65f9259014bb60848fc4be23 03-Mar-2011 Argyrios Kyrtzidis <akyrtzi@gmail.com> -Woverloaded-virtual shouldn't warn for static functions. Fixes rdar://9083431 & http://llvm.org/PR9396.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126966 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/warn-overloaded-virtual.cpp
74b47f9173ccd2c22686b8fbf9d69852d6f46ac6 10-Feb-2011 Argyrios Kyrtzidis <akyrtzi@gmail.com> For -Woverloaded-virtual take into account canonical methods. Fixes rdar://8979966 & http://llvm.org/PR9182.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125296 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/warn-overloaded-virtual.cpp
799ef666685d6c97d64d1970a6f68bf7923360c2 03-Feb-2011 Argyrios Kyrtzidis <akyrtzi@gmail.com> Implement -Woverloaded-virtual.

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124805 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/warn-overloaded-virtual.cpp