llvm-project/clang/test/CXX
Eli Friedman af65120bd3 Improve error for "override" + non-virtual func.
Consider something like the following:

struct X {
  virtual void foo(float x);
};
struct Y : X {
  void foo(double x) override;
};

The error is almost certainly that Y::foo() has the wrong signature,
rather than incorrect usage of the override keyword.  This patch
adds an appropriate diagnostic for that case.

Fixes <rdar://problem/14785106>.

llvm-svn: 190109
2013-09-05 23:51:03 +00:00
..
basic Fix implementation of C11 6.2.7/4 and C++11 [dcl.array]p3: 2013-08-13 18:18:50 +00:00
class C++11: don't warn about the deprecated 'register' keyword if it's combined with 2013-06-17 01:34:01 +00:00
class.access Implement [class.friend]p11's special name lookup rules for friend declarations 2013-08-09 04:35:01 +00:00
class.derived Improve error for "override" + non-virtual func. 2013-09-05 23:51:03 +00:00
conv Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
dcl.dcl Mark that qualifiers can prefix the auto type. This seems to just have 2013-09-02 19:20:06 +00:00
dcl.decl Mark that qualifiers can prefix the auto type. This seems to just have 2013-09-02 19:20:06 +00:00
drs Sema: Diagnose explicitly bound unresolved member expressions decaying into pointers to function type 2013-08-01 06:13:59 +00:00
except C++1y constexpr extensions, round 1: Allow most forms of declaration and 2013-04-22 15:31:51 +00:00
expr Mark that qualifiers can prefix the auto type. This seems to just have 2013-09-02 19:20:06 +00:00
lex Integers which are too large should be an error. 2013-07-23 00:25:18 +00:00
over Don't produce duplicate notes if we have deduction failure notes when resolving 2013-08-14 00:00:44 +00:00
special Implement [class.friend]p11's special name lookup rules for friend declarations 2013-08-09 04:35:01 +00:00
stmt.stmt Add -Wdeprecated warnings and fixits for things deprecated in C++11: 2013-06-13 02:02:51 +00:00
temp Disable llvm optimizations, but keep -O1 to test available_externally. 2013-09-04 04:59:11 +00:00