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

Finds function names that do not conform to the recommendations of the Google Objective-C Style Guide. More...

#include <FunctionNamingCheck.h>

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

Public Member Functions

 FunctionNamingCheck (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

Finds function names that do not conform to the recommendations of the Google Objective-C Style Guide.

Function names should be in upper camel case including capitalized acronyms and initialisms. Functions that are not of static storage class must also have an appropriate prefix. The function main is an exception. Note that this check does not apply to Objective-C method or property declarations.

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

Definition at line 26 of file FunctionNamingCheck.h.

Constructor & Destructor Documentation

◆ FunctionNamingCheck()

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

Definition at line 28 of file FunctionNamingCheck.h.

Member Function Documentation

◆ check()

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

Definition at line 105 of file FunctionNamingCheck.cpp.

◆ isLanguageVersionSupported()

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

Definition at line 30 of file FunctionNamingCheck.h.

◆ registerMatchers()

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

Definition at line 87 of file FunctionNamingCheck.cpp.


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