ClangTidyCheck Checks to flag for uses of 'std::endl' on streams and suggests using the newline character '"\n"' instead.
More...
#include <AvoidEndlCheck.h>
ClangTidyCheck Checks to flag for uses of 'std::endl' on streams and suggests using the newline character '"\n"' instead.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/performance/avoid-endl.html
Definition at line 21 of file AvoidEndlCheck.h.
◆ AvoidEndlCheck()
clang::tidy::performance::AvoidEndlCheck::AvoidEndlCheck |
( |
StringRef | Name, |
|
|
ClangTidyContext * | Context ) |
|
inline |
◆ check()
void clang::tidy::performance::AvoidEndlCheck::check |
( |
const ast_matchers::MatchFinder::MatchResult & | Result | ) |
|
|
override |
◆ getCheckTraversalKind()
std::optional< TraversalKind > clang::tidy::performance::AvoidEndlCheck::getCheckTraversalKind |
( |
| ) |
const |
|
inlineoverride |
◆ isLanguageVersionSupported()
bool clang::tidy::performance::AvoidEndlCheck::isLanguageVersionSupported |
( |
const LangOptions & | LangOpts | ) |
const |
|
inlineoverride |
◆ registerMatchers()
void clang::tidy::performance::AvoidEndlCheck::registerMatchers |
( |
ast_matchers::MatchFinder * | Finder | ) |
|
|
override |
The documentation for this class was generated from the following files: