[clang-tidy] Adding Fuchsia checker for overloaded operators
Adds a check to the Fuchsia module to warn if an operator is overloaded, except move and copy operators. See https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md for reference. Differential Revision: https://reviews.llvm.org/D41363 llvm-svn: 321363
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "../ClangTidyModule.h"
|
||||
#include "../ClangTidyModuleRegistry.h"
|
||||
#include "DefaultArgumentsCheck.h"
|
||||
#include "OverloadedOperatorCheck.h"
|
||||
#include "VirtualInheritanceCheck.h"
|
||||
|
||||
using namespace clang::ast_matchers;
|
||||
@@ -25,6 +26,8 @@ public:
|
||||
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override {
|
||||
CheckFactories.registerCheck<DefaultArgumentsCheck>(
|
||||
"fuchsia-default-arguments");
|
||||
CheckFactories.registerCheck<OverloadedOperatorCheck>(
|
||||
"fuchsia-overloaded-operator");
|
||||
CheckFactories.registerCheck<VirtualInheritanceCheck>(
|
||||
"fuchsia-virtual-inheritance");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user