[llvm-bugs] [Bug 46385] New: Clang should have a warning when classes do not follow rule of three

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 18 11:10:33 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46385

            Bug ID: 46385
           Summary: Clang should have a warning when classes do not follow
                    rule of three
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: zequanwu at google.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Chrome folks suggest at here,
https://bugs.chromium.org/p/chromium/issues/detail?id=979077. 

It is good to have a warning that enforces the rule of three
https://en.cppreference.com/w/cpp/language/rule_of_three. Whenever a class has
only one or two of user-defined destructor, a user-defined copy constructor and
a user-defined copy assignment operator, Clang warns at this class.

-- 
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/20200618/cdc52482/attachment.html>


More information about the llvm-bugs mailing list