Skip to content

Commit

Permalink
Apply code format patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodozov committed Aug 1, 2019
1 parent 63724b0 commit 8c583d5
Showing 1 changed file with 45 additions and 26 deletions.
71 changes: 45 additions & 26 deletions Utilities/StaticAnalyzers/src/ClangCmsCheckerPluginRegister.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,46 +31,65 @@
extern "C" void clang_registerCheckers(clang::ento::CheckerRegistry &registry) {
registry.addChecker<clangcms::ConstCastAwayChecker>(
"threadsafety.ConstCastAway",
"Checks for casts which remove const qualifier and might result in thread-unsafe code","no docs");
"Checks for casts which remove const qualifier and might result in thread-unsafe code",
"no docs");
registry.addChecker<clangcms::ConstCastChecker>(
"threadsafety.ConstCast", "Checks for casts which remove const qualifier and might result in thread-unsafe code", "no docs");
"threadsafety.ConstCast",
"Checks for casts which remove const qualifier and might result in thread-unsafe code",
"no docs");
registry.addChecker<clangcms::TrunCastChecker>(
"optional.TruncatingCast",
"Checks for implicit casts where ToType is smaller than FromType which might result in truncation", "no docs");
"Checks for implicit casts where ToType is smaller than FromType which might result in truncation",
"no docs");
registry.addChecker<clangcms::StaticLocalChecker>(
"threadsafety.StaticLocal", "Checks for non-const method local statics which might not be thread-safe", "no docs");
"threadsafety.StaticLocal",
"Checks for non-const method local statics which might not be thread-safe",
"no docs");
registry.addChecker<clangcms::MutableMemberChecker>(
"threadsafety.MutableMember", "Checks for members with the mutable keyword which might not be thread-safe", "no docs");
"threadsafety.MutableMember",
"Checks for members with the mutable keyword which might not be thread-safe",
"no docs");
registry.addChecker<clangcms::GlobalStaticChecker>(
"threadsafety.GlobalStatic", "Checks for global non-const statics which might not be thread-safe", "no docs");
registry.addChecker<clangcms::ClassChecker>("optional.ClassChecker", "Checks data classes for thread safety issues", "no docs");
"threadsafety.GlobalStatic", "Checks for global non-const statics which might not be thread-safe", "no docs");
registry.addChecker<clangcms::ClassChecker>(
"optional.ClassChecker", "Checks data classes for thread safety issues", "no docs");
registry.addChecker<clangcms::ClassDumperCT>("optional.ClassDumperCT",
"dumps template edm::Wrapper,edm::RunCache,edm::LuminosityBlockCache, "
"and edm::GlobalCache types which define data classes ", "no docs");
registry.addChecker<clangcms::ClassDumperFT>("optional.ClassDumperFT",
"dumps macro TYPELOOKUP_DATA_REG types which define data classes", "no docs");
registry.addChecker<clangcms::ClassDumperInherit>("optional.ClassDumperInherit",
"Dumps classes inheriting from data classes", "no docs");
registry.addChecker<clangcms::ClassDumper>("optional.ClassDumper", "Dumps class memmbers and base classes ", "no docs");
"and edm::GlobalCache types which define data classes ",
"no docs");
registry.addChecker<clangcms::ClassDumperFT>(
"optional.ClassDumperFT", "dumps macro TYPELOOKUP_DATA_REG types which define data classes", "no docs");
registry.addChecker<clangcms::ClassDumperInherit>(
"optional.ClassDumperInherit", "Dumps classes inheriting from data classes", "no docs");
registry.addChecker<clangcms::ClassDumper>(
"optional.ClassDumper", "Dumps class memmbers and base classes ", "no docs");
registry.addChecker<clangcms::FiniteMathChecker>("cms.NonFiniteMath", "Reports usage of isnan and isinf.", "no docs");
registry.addChecker<clangcms::UsingNamespace>("cms.CodeRules.UsingNamespace",
"Checks for 'using namespace' or 'using std::' in header files", "no docs");
registry.addChecker<clangcms::CatchAll>("cms.CodeRules.CatchAll", "Checks for 'catch(...)' in source files", "no docs");
registry.addChecker<clangcms::UsingNamespace>(
"cms.CodeRules.UsingNamespace", "Checks for 'using namespace' or 'using std::' in header files", "no docs");
registry.addChecker<clangcms::CatchAll>(
"cms.CodeRules.CatchAll", "Checks for 'catch(...)' in source files", "no docs");
registry.addChecker<clangcms::edmChecker>(
"cms.edmChecker",
"Flags classes inheriting from edm::EDProducer,edm::EDFilter,edm::Analyzer or edm::OutputModule", "no docs");
"Flags classes inheriting from edm::EDProducer,edm::EDFilter,edm::Analyzer or edm::OutputModule",
"no docs");
registry.addChecker<clangcms::getByChecker>(
"optional.getByChecker",
"Checks for calls to edm::getByLabel or edm::getManyByType and reports edm::Handle type passed", "no docs");
registry.addChecker<clangcms::ArgSizeChecker>("optional.ArgSize", "Reports args passed by value with size>4k.", "no docs");
registry.addChecker<clangcms::FunctionChecker>("cms.FunctionChecker",
"Reports functions which access non-const statics", "no docs");
registry.addChecker<clangcms::FunctionDumper>("cms.FunctionDumper", "Reports function calls and overrides", "no docs");
registry.addChecker<clangcms::EDMPluginDumper>("optional.EDMPluginDumper", "Dumps macro DEFINE_EDM_PLUGIN types", "no docs");
registry.addChecker<clangcms::ThrUnsafeFCallChecker>("cms.ThrUnsafeFCallChecker",
"Reports calls of known thread unsafe functions", "no docs");
"Checks for calls to edm::getByLabel or edm::getManyByType and reports edm::Handle type passed",
"no docs");
registry.addChecker<clangcms::ArgSizeChecker>(
"optional.ArgSize", "Reports args passed by value with size>4k.", "no docs");
registry.addChecker<clangcms::FunctionChecker>(
"cms.FunctionChecker", "Reports functions which access non-const statics", "no docs");
registry.addChecker<clangcms::FunctionDumper>(
"cms.FunctionDumper", "Reports function calls and overrides", "no docs");
registry.addChecker<clangcms::EDMPluginDumper>(
"optional.EDMPluginDumper", "Dumps macro DEFINE_EDM_PLUGIN types", "no docs");
registry.addChecker<clangcms::ThrUnsafeFCallChecker>(
"cms.ThrUnsafeFCallChecker", "Reports calls of known thread unsafe functions", "no docs");
registry.addChecker<clangcms::getParamDumper>(
"optional.getParamDumper", "Dumps out calls to edm::ParamaterSet:: getParameter and getUntrackedParameter", "no docs");
"optional.getParamDumper",
"Dumps out calls to edm::ParamaterSet:: getParameter and getUntrackedParameter",
"no docs");
}

extern "C" const char clang_analyzerAPIVersionString[] = CLANG_ANALYZER_API_VERSION_STRING;

0 comments on commit 8c583d5

Please sign in to comment.