diff options
Diffstat (limited to 'src/checks/level1/README-rule-of-two-soft.md')
-rw-r--r-- | src/checks/level1/README-rule-of-two-soft.md | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/checks/level1/README-rule-of-two-soft.md b/src/checks/level1/README-rule-of-two-soft.md deleted file mode 100644 index b7aca962..00000000 --- a/src/checks/level1/README-rule-of-two-soft.md +++ /dev/null @@ -1,9 +0,0 @@ -# rule-of-two-soft - -Finds places where: -1. You're calling a trivial copy-ctor of a class which has a non-trivial copy-assignment operator -2. You're calling a trivial copy-assignment operator of a class which has a non-trivial copy-ctor - -It won't warn on classes that violate the rule of two unless you actually use the copy-ctor or the copy-assignment operator, otherwise it will generate lots of warnings. If you're really interested in all warnings, see the *rule-of-three* check instead of *rule-of-two-soft*. - -Beware that removing copy-ctors or copy-assignment operators might make the class trivially copiable, which is not ABI compatible. |