|
clang-tools 24.0.0git
|
Use if consteval instead of std::is_constant_evaluated in if statements. More...
#include <UseIfConstevalCheck.h>
Public Member Functions | |
| UseIfConstevalCheck (StringRef Name, ClangTidyContext *Context) | |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
| bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
| std::optional< TraversalKind > | getCheckTraversalKind () const override |
Use if consteval instead of std::is_constant_evaluated in if statements.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-if-consteval.html
Definition at line 20 of file UseIfConstevalCheck.h.
|
inline |
Definition at line 22 of file UseIfConstevalCheck.h.
|
override |
Definition at line 90 of file UseIfConstevalCheck.cpp.
References clang::tidy::modernize::getBraceFix(), clang::tidy::modernize::getHeaderRange(), and clang::tidy::modernize::needsLeadingSpaceBeforeConsteval().
|
inlineoverride |
Definition at line 29 of file UseIfConstevalCheck.h.
|
inlineoverride |
Definition at line 26 of file UseIfConstevalCheck.h.
|
override |
Definition at line 69 of file UseIfConstevalCheck.cpp.