29 return LangOpts.CPlusPlus && LangOpts.CXXExceptions;
33 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
42 StringRef RawFunctionsThatShouldNotThrow;
43 StringRef RawIgnoredExceptions;
44 StringRef RawCheckedSwapFunctions;
46 const bool CheckDestructors;
47 const bool CheckMoveMemberFunctions;
49 const bool CheckNothrowFunctions;
52 TreatFunctionsWithoutSpecificationAsThrowing;
54 llvm::StringSet<> FunctionsThatShouldNotThrow;
55 llvm::StringSet<> CheckedSwapFunctions;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.