clang-tools 22.0.0git
clang::tidy::performance::NoexceptSwapCheck Class Reference

The check flags swap functions not marked with noexcept or marked with noexcept(expr) where expr evaluates to false (but is not a false literal itself). More...

#include <NoexceptSwapCheck.h>

Inheritance diagram for clang::tidy::performance::NoexceptSwapCheck:
[legend]

Public Member Functions

void registerMatchers (ast_matchers::MatchFinder *Finder) override
 NoexceptFunctionBaseCheck (StringRef Name, ClangTidyContext *Context)
Public Member Functions inherited from clang::tidy::performance::NoexceptFunctionBaseCheck
 NoexceptFunctionBaseCheck (StringRef Name, ClangTidyContext *Context)
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override
void check (const ast_matchers::MatchFinder::MatchResult &Result) final override
std::optional< TraversalKind > getCheckTraversalKind () const override

Additional Inherited Members

Static Protected Attributes inherited from clang::tidy::performance::NoexceptFunctionBaseCheck
static constexpr StringRef BindFuncDeclName = "FuncDecl"

Detailed Description

The check flags swap functions not marked with noexcept or marked with noexcept(expr) where expr evaluates to false (but is not a false literal itself).

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/performance/noexcept-swap.html

Definition at line 23 of file NoexceptSwapCheck.h.

Member Function Documentation

◆ NoexceptFunctionBaseCheck()

clang::tidy::performance::NoexceptFunctionBaseCheck::NoexceptFunctionBaseCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 24 of file NoexceptFunctionBaseCheck.h.

◆ registerMatchers()

void clang::tidy::performance::NoexceptSwapCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

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