clang-tools 22.0.0git
|
Check that make_pair's template arguments are deduced. More...
#include <ExplicitMakePairCheck.h>
Public Member Functions | |
ExplicitMakePairCheck (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 |
Check that make_pair's template arguments are deduced.
G++ 4.6 in C++11 mode fails badly if make_pair's template arguments are specified explicitly, and such use isn't intended in any case.
Corresponding cpplint.py check name: 'build/explicit_make_pair'.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/google/build-explicit-make-pair.html
Definition at line 25 of file ExplicitMakePairCheck.h.
|
inline |
Definition at line 27 of file ExplicitMakePairCheck.h.
|
override |
Definition at line 39 of file ExplicitMakePairCheck.cpp.
|
inlineoverride |
Definition at line 29 of file ExplicitMakePairCheck.h.
|
override |
Definition at line 25 of file ExplicitMakePairCheck.cpp.