Revert "Revert "[clang-tidy] new cppcoreguidelines-slicing""
Second try for r276408 llvm-svn: 276415
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "ProTypeStaticCastDowncastCheck.h"
|
||||
#include "ProTypeUnionAccessCheck.h"
|
||||
#include "ProTypeVarargCheck.h"
|
||||
#include "SlicingCheck.h"
|
||||
|
||||
namespace clang {
|
||||
namespace tidy {
|
||||
@@ -53,6 +54,8 @@ public:
|
||||
"cppcoreguidelines-pro-type-union-access");
|
||||
CheckFactories.registerCheck<ProTypeVarargCheck>(
|
||||
"cppcoreguidelines-pro-type-vararg");
|
||||
CheckFactories.registerCheck<SlicingCheck>(
|
||||
"cppcoreguidelines-slicing");
|
||||
CheckFactories.registerCheck<misc::UnconventionalAssignOperatorCheck>(
|
||||
"cppcoreguidelines-c-copy-assignment-signature");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user