clang-tools 22.0.0git
clang::tidy::misc::ThrowByValueCatchByReferenceCheck Class Reference

Checks for locations that do not throw by value. More...

#include <ThrowByValueCatchByReferenceCheck.h>

Inheritance diagram for clang::tidy::misc::ThrowByValueCatchByReferenceCheck:
[legend]

Public Member Functions

 ThrowByValueCatchByReferenceCheck (StringRef Name, ClangTidyContext *Context)
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override
void storeOptions (ClangTidyOptions::OptionMap &Opts) override
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

Checks for locations that do not throw by value.

Definition at line 27 of file ThrowByValueCatchByReferenceCheck.h.

Constructor & Destructor Documentation

◆ ThrowByValueCatchByReferenceCheck()

clang::tidy::misc::ThrowByValueCatchByReferenceCheck::ThrowByValueCatchByReferenceCheck ( StringRef Name,
ClangTidyContext * Context )

Definition at line 17 of file ThrowByValueCatchByReferenceCheck.cpp.

Member Function Documentation

◆ check()

void clang::tidy::misc::ThrowByValueCatchByReferenceCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 39 of file ThrowByValueCatchByReferenceCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::misc::ThrowByValueCatchByReferenceCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 30 of file ThrowByValueCatchByReferenceCheck.h.

◆ registerMatchers()

void clang::tidy::misc::ThrowByValueCatchByReferenceCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 27 of file ThrowByValueCatchByReferenceCheck.cpp.

◆ storeOptions()

void clang::tidy::misc::ThrowByValueCatchByReferenceCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

Definition at line 32 of file ThrowByValueCatchByReferenceCheck.cpp.


The documentation for this class was generated from the following files: