clang-tools 22.0.0git
|
This check is to warn about the performance overhead arising from concatenating strings, using the operator+, instead of operator+=. More...
#include <InefficientStringConcatenationCheck.h>
Public Member Functions | |
InefficientStringConcatenationCheck (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 |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
This check is to warn about the performance overhead arising from concatenating strings, using the operator+, instead of operator+=.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/performance/inefficient-string-concatenation.html
Definition at line 21 of file InefficientStringConcatenationCheck.h.
clang::tidy::performance::InefficientStringConcatenationCheck::InefficientStringConcatenationCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 21 of file InefficientStringConcatenationCheck.cpp.
|
override |
Definition at line 64 of file InefficientStringConcatenationCheck.cpp.
|
inlineoverride |
Definition at line 25 of file InefficientStringConcatenationCheck.h.
|
override |
Definition at line 26 of file InefficientStringConcatenationCheck.cpp.
|
override |
Definition at line 16 of file InefficientStringConcatenationCheck.cpp.