clang-tools 22.0.0git
|
Checks that all single-argument constructors are explicit. More...
#include <ExplicitConstructorCheck.h>
Public Member Functions | |
ExplicitConstructorCheck (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 |
Checks that all single-argument constructors are explicit.
See https://google.github.io/styleguide/cppguide.html#Explicit_Constructors
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/google/explicit-constructor.html
Definition at line 22 of file ExplicitConstructorCheck.h.
|
inline |
Definition at line 24 of file ExplicitConstructorCheck.h.
|
override |
Definition at line 81 of file ExplicitConstructorCheck.cpp.
References clang::tidy::google::findToken(), and clang::tidy::google::isStdInitializerList().
|
inlineoverride |
Definition at line 26 of file ExplicitConstructorCheck.h.
|
override |
Definition at line 19 of file ExplicitConstructorCheck.cpp.