clang-tools 22.0.0git
clang::tidy::google::build::ExplicitMakePairCheck Class Reference

Check that make_pair's template arguments are deduced. More...

#include <ExplicitMakePairCheck.h>

Inheritance diagram for clang::tidy::google::build::ExplicitMakePairCheck:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ ExplicitMakePairCheck()

clang::tidy::google::build::ExplicitMakePairCheck::ExplicitMakePairCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 27 of file ExplicitMakePairCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::google::build::ExplicitMakePairCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 39 of file ExplicitMakePairCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::google::build::ExplicitMakePairCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 29 of file ExplicitMakePairCheck.h.

◆ registerMatchers()

void clang::tidy::google::build::ExplicitMakePairCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 25 of file ExplicitMakePairCheck.cpp.


The documentation for this class was generated from the following files: