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

Functions that have trailing returns are disallowed, except for those using decltype specifiers and lambda with otherwise unutterable return types. More...

#include <TrailingReturnCheck.h>

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

Public Member Functions

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

Functions that have trailing returns are disallowed, except for those using decltype specifiers and lambda with otherwise unutterable return types.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/fuchsia/trailing-return.html

Definition at line 22 of file TrailingReturnCheck.h.

Constructor & Destructor Documentation

◆ TrailingReturnCheck()

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

Definition at line 24 of file TrailingReturnCheck.h.

Member Function Documentation

◆ check()

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

Definition at line 30 of file TrailingReturnCheck.cpp.

◆ isLanguageVersionSupported()

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

Definition at line 26 of file TrailingReturnCheck.h.

◆ registerMatchers()

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

Definition at line 17 of file TrailingReturnCheck.cpp.


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