clang-tools 22.0.0git
|
Find functions with unnamed arguments. More...
#include <NamedParameterCheck.h>
Public Member Functions | |
NamedParameterCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Find functions with unnamed arguments.
The check implements the following rule originating in the Google C++ Style Guide:
https://google.github.io/styleguide/cppguide.html#Function_Declarations_and_Definitions
All parameters should be named, with identical names in the declaration and implementation.
Corresponding cpplint.py check name: 'readability/function'.
Definition at line 27 of file NamedParameterCheck.h.
clang::tidy::readability::NamedParameterCheck::NamedParameterCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 18 of file NamedParameterCheck.cpp.
|
override |
Definition at line 33 of file NamedParameterCheck.cpp.
|
inlineoverride |
Definition at line 33 of file NamedParameterCheck.h.
|
override |
Definition at line 29 of file NamedParameterCheck.cpp.
|
override |
Definition at line 24 of file NamedParameterCheck.cpp.