clang-tools 22.0.0git
clang::tidy::openmp::UseDefaultNoneCheck Class Reference

Finds OpenMP directives that are allowed to contain a default clause, / but either don't specify it or the clause is specified but with the kind / other than none, and suggests to use the default(none) clause. More...

#include <UseDefaultNoneCheck.h>

Inheritance diagram for clang::tidy::openmp::UseDefaultNoneCheck:
[legend]

Public Member Functions

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

Finds OpenMP directives that are allowed to contain a default clause, / but either don't specify it or the clause is specified but with the kind / other than none, and suggests to use the default(none) clause.

For the user-facing documentation see:
https://clang.llvm.org/extra/clang-tidy/checks/openmp/use-default-none.html 

Definition at line 22 of file UseDefaultNoneCheck.h.

Constructor & Destructor Documentation

◆ UseDefaultNoneCheck()

clang::tidy::openmp::UseDefaultNoneCheck::UseDefaultNoneCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 24 of file UseDefaultNoneCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::openmp::UseDefaultNoneCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 30 of file UseDefaultNoneCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::openmp::UseDefaultNoneCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 26 of file UseDefaultNoneCheck.h.

◆ registerMatchers()

void clang::tidy::openmp::UseDefaultNoneCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 19 of file UseDefaultNoneCheck.cpp.


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