10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_THROW_BY_VALUE_CATCH_BY_REFERENCE_H 11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_THROW_BY_VALUE_CATCH_BY_REFERENCE_H 13 #include "../ClangTidy.h" 35 void check(
const ast_matchers::MatchFinder::MatchResult &
Result)
override;
38 void diagnoseThrowLocations(
const CXXThrowExpr *throwExpr);
39 void diagnoseCatchLocations(
const CXXCatchStmt *catchStmt,
41 bool isFunctionParameter(
const DeclRefExpr *declRefExpr);
42 bool isCatchVariable(
const DeclRefExpr *declRefExpr);
43 bool isFunctionOrCatchVar(
const DeclRefExpr *declRefExpr);
44 const bool CheckAnonymousTemporaries;
51 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_THROW_BY_VALUE_CATCH_BY_REFERENCE_H checks for locations that do not throw by value
Base class for all clang-tidy checks.
ThrowByValueCatchByReferenceCheck(StringRef Name, ClangTidyContext *Context)
static constexpr llvm::StringLiteral Name
std::map< std::string, std::string > OptionMap
llvm::Optional< llvm::Expected< tooling::AtomicChanges > > Result
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
void storeOptions(ClangTidyOptions::OptionMap &Opts) override
Should store all options supported by this check with their current values or default values for opti...
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register AST matchers with Finder.
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.