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>
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.
◆ UseDefaultNoneCheck()
clang::tidy::openmp::UseDefaultNoneCheck::UseDefaultNoneCheck |
( |
StringRef | Name, |
|
|
ClangTidyContext * | Context ) |
|
inline |
◆ check()
void clang::tidy::openmp::UseDefaultNoneCheck::check |
( |
const ast_matchers::MatchFinder::MatchResult & | Result | ) |
|
|
override |
◆ isLanguageVersionSupported()
bool clang::tidy::openmp::UseDefaultNoneCheck::isLanguageVersionSupported |
( |
const LangOptions & | LangOpts | ) |
const |
|
inlineoverride |
◆ registerMatchers()
void clang::tidy::openmp::UseDefaultNoneCheck::registerMatchers |
( |
ast_matchers::MatchFinder * | Finder | ) |
|
|
override |
The documentation for this class was generated from the following files: