|
clang-tools 22.0.0git
|
Finds suspicious string constructor and check their parameters. More...
#include <StringConstructorCheck.h>
Public Member Functions | |
| StringConstructorCheck (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 |
Finds suspicious string constructor and check their parameters.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/string-constructor.html
Definition at line 20 of file StringConstructorCheck.h.
| clang::tidy::bugprone::StringConstructorCheck::StringConstructorCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 40 of file StringConstructorCheck.cpp.
References clang::tidy::bugprone::DefaultStringNames.
|
override |
Definition at line 167 of file StringConstructorCheck.cpp.
|
inlineoverride |
Definition at line 23 of file StringConstructorCheck.h.
|
override |
Definition at line 56 of file StringConstructorCheck.cpp.
References clang::tidy::bugprone::removeNamespaces().
|
override |
Definition at line 50 of file StringConstructorCheck.cpp.
References clang::tidy::bugprone::DefaultStringNames.