9#include "../ClangTidy.h"
10#include "../ClangTidyModule.h"
11#include "../ClangTidyModuleRegistry.h"
22 "darwin-avoid-spinlock");
24 "darwin-dispatch-once-nonstatic");
31static ClangTidyModuleRegistry::Add<darwin::DarwinModule>
32 X(
"darwin-module",
"Adds Darwin-specific lint checks.");
A collection of ClangTidyCheckFactory instances.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Finds usages of OSSpinlock, which is deprecated due to potential livelock problems.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
Finds variables of type dispatch_once_t that do not have static or global storage duration,...
volatile int DarwinModuleAnchorSource