clang-tools 22.0.0git
clang::tidy::google::objc::AvoidThrowingObjCExceptionCheck Class Reference

The check is to find usage of. More...

#include <AvoidThrowingObjCExceptionCheck.h>

Inheritance diagram for clang::tidy::google::objc::AvoidThrowingObjCExceptionCheck:
[legend]

Public Member Functions

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

Detailed Description

The check is to find usage of.

Exceptions
invocationin Objective-C code. We should avoid using
forObjective-C exceptions according to the Google Objective-C Style Guide.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/google/objc-avoid-throwing-exception.html

Definition at line 22 of file AvoidThrowingObjCExceptionCheck.h.

Constructor & Destructor Documentation

◆ AvoidThrowingObjCExceptionCheck()

clang::tidy::google::objc::AvoidThrowingObjCExceptionCheck::AvoidThrowingObjCExceptionCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 24 of file AvoidThrowingObjCExceptionCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::google::objc::AvoidThrowingObjCExceptionCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 27 of file AvoidThrowingObjCExceptionCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::google::objc::AvoidThrowingObjCExceptionCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 26 of file AvoidThrowingObjCExceptionCheck.h.

◆ registerMatchers()

void clang::tidy::google::objc::AvoidThrowingObjCExceptionCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 16 of file AvoidThrowingObjCExceptionCheck.cpp.


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