https://llvm.org/bugs/show_bug.cgi?id=24495
Bug ID: 24495
Summary: Winconsistent-missing-override ignore destructors
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Looks like destructors are ignored in Winconsistent-missing-override, so
destructor declared in derived class as virtual or virtual override could
coexist with other methods declared as override.
Test example:
class Base {
public:
virtual ~Base() {}
virtual void Method1() {}
virtual void Method2() {}
};
class Derived : public Base {
public:
virtual ~Derived() {}
void Method1() override {}
virtual void Method2() {}
};
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs