clang-tools 22.0.0git
clang::tidy::fuchsia::DefaultArgumentsDeclarationsCheck Class Reference

Default parameters are not allowed in declared functions. More...

#include <DefaultArgumentsDeclarationsCheck.h>

Inheritance diagram for clang::tidy::fuchsia::DefaultArgumentsDeclarationsCheck:
[legend]

Public Member Functions

 DefaultArgumentsDeclarationsCheck (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

Default parameters are not allowed in declared functions.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/fuchsia/default-arguments-declarations.html

Definition at line 20 of file DefaultArgumentsDeclarationsCheck.h.

Constructor & Destructor Documentation

◆ DefaultArgumentsDeclarationsCheck()

clang::tidy::fuchsia::DefaultArgumentsDeclarationsCheck::DefaultArgumentsDeclarationsCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 22 of file DefaultArgumentsDeclarationsCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::fuchsia::DefaultArgumentsDeclarationsCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 21 of file DefaultArgumentsDeclarationsCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::fuchsia::DefaultArgumentsDeclarationsCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 24 of file DefaultArgumentsDeclarationsCheck.h.

◆ registerMatchers()

void clang::tidy::fuchsia::DefaultArgumentsDeclarationsCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 16 of file DefaultArgumentsDeclarationsCheck.cpp.


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