|
clang-tools 23.0.0git
|
For any function whose return type is const-qualified, suggests removal of the const qualifier from that return type. More...
#include <ConstReturnTypeCheck.h>
Public Member Functions | |
| ConstReturnTypeCheck (StringRef Name, ClangTidyContext *Context) | |
| void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
For any function whose return type is const-qualified, suggests removal of the const qualifier from that return type.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/const-return-type.html
Definition at line 21 of file ConstReturnTypeCheck.h.
|
inline |
Definition at line 23 of file ConstReturnTypeCheck.h.
|
override |
Definition at line 114 of file ConstReturnTypeCheck.cpp.
References clang::tidy::readability::checkDef().
|
override |
Definition at line 102 of file ConstReturnTypeCheck.cpp.
|
override |
Definition at line 98 of file ConstReturnTypeCheck.cpp.