Use a braced init list for return statements rather than unnecessary repeating the return type name.
More...
#include <ReturnBracedInitListCheck.h>
Use a braced init list for return statements rather than unnecessary repeating the return type name.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/modernize/return-braced-init-list.html
Definition at line 21 of file ReturnBracedInitListCheck.h.
◆ ReturnBracedInitListCheck()
| clang::tidy::modernize::ReturnBracedInitListCheck::ReturnBracedInitListCheck |
( |
StringRef | Name, |
|
|
ClangTidyContext * | Context ) |
|
inline |
◆ check()
| void clang::tidy::modernize::ReturnBracedInitListCheck::check |
( |
const ast_matchers::MatchFinder::MatchResult & | Result | ) |
|
|
override |
◆ getCheckTraversalKind()
| std::optional< TraversalKind > clang::tidy::modernize::ReturnBracedInitListCheck::getCheckTraversalKind |
( |
| ) |
const |
|
inlineoverride |
◆ isLanguageVersionSupported()
| bool clang::tidy::modernize::ReturnBracedInitListCheck::isLanguageVersionSupported |
( |
const LangOptions & | LangOpts | ) |
const |
|
inlineoverride |
◆ registerMatchers()
| void clang::tidy::modernize::ReturnBracedInitListCheck::registerMatchers |
( |
ast_matchers::MatchFinder * | Finder | ) |
|
|
override |
The documentation for this class was generated from the following files: