llvm-project/clang/test/CXX/class.derived
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
..
class.abstract If a defaulted special member is implicitly deleted, check whether it's 2013-04-02 19:38:47 +00:00
class.member.lookup Tests and status for core issues 1-50. 2013-05-19 07:22:38 +00:00
class.virtual Improve error for "override" + non-virtual func. 2013-09-05 23:51:03 +00:00
p1.cpp Handle redundant 'typename' on base class specifications. 2011-10-25 18:46:41 +00:00
p2.cpp 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