Differential D103511 Diff 349211 clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-special-member-functions.cpp
Changeset View
Changeset View
Standalone View
Standalone View
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-special-member-functions.cpp
// RUN: %check_clang_tidy %s cppcoreguidelines-special-member-functions %t | // RUN: %check_clang_tidy %s cppcoreguidelines-special-member-functions %t -- -config="{CheckOptions: [{key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor, value: false}]}" -- | ||||
class DefinesDestructor { | class DefinesDestructor { | ||||
~DefinesDestructor(); | ~DefinesDestructor(); | ||||
}; | }; | ||||
// CHECK-MESSAGES: [[@LINE-3]]:7: warning: class 'DefinesDestructor' defines a non-default destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator [cppcoreguidelines-special-member-functions] | // CHECK-MESSAGES: [[@LINE-3]]:7: warning: class 'DefinesDestructor' defines a non-default destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator [cppcoreguidelines-special-member-functions] | ||||
class DefinesDefaultedDestructor { | class DefinesDefaultedDestructor { | ||||
~DefinesDefaultedDestructor() = default; | ~DefinesDefaultedDestructor() = default; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |