[llvm-bugs] [Bug 24495] New: Winconsistent-missing-override ignore destructors

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 18 17:38:08 PDT 2015


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: unassignedclangbugs at nondot.org
          Reporter: eugene.zelenko at gmail.com
                CC: llvm-bugs at lists.llvm.org
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150819/6265d020/attachment.html>


More information about the llvm-bugs mailing list