|
clang-tools 24.0.0git
|
Use a braced init list for return statements rather than unnecessary repeating the return type name. More...
#include <ReturnBracedInitListCheck.h>
Public Member Functions | |
| ReturnBracedInitListCheck (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 |
| std::optional< TraversalKind > | getCheckTraversalKind () const override |
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.
|
inline |
Definition at line 23 of file ReturnBracedInitListCheck.h.
|
override |
Definition at line 80 of file ReturnBracedInitListCheck.cpp.
References clang::tidy::modernize::hasInitListConstructor().
|
inlineoverride |
Definition at line 30 of file ReturnBracedInitListCheck.h.
|
inlineoverride |
Definition at line 25 of file ReturnBracedInitListCheck.h.
|
override |
Definition at line 48 of file ReturnBracedInitListCheck.cpp.