10 #include "../ClangTidy.h"
11 #include "../ClangTidyModule.h"
12 #include "../ClangTidyModuleRegistry.h"
18 using namespace clang::ast_matchers;
36 static ClangTidyModuleRegistry::Add<AndroidModule>
37 X(
"android-module",
"Adds Android platform checks.");
creat() is better to be replaced by open().
Finds code that opens file without using the O_CLOEXEC flag.
static clang::FrontendPluginRegistry::Add< clang::tidy::ClangTidyPluginAction > X("clang-tidy","clang-tidy")
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
volatile int AndroidModuleAnchorSource
A collection of ClangTidyCheckFactory instances.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
fopen() is suggested to include "e" in their mode string; like "re" would be better than "r"...
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module...
This module is for Android specific checks.
Finds code that uses socket() without using the SOCK_CLOEXEC flag.