clang 20.0.0git
|
Optimization remark with an optional regular expression pattern. More...
#include "clang/Basic/CodeGenOptions.h"
Public Member Functions | |
OptRemark ()=default | |
By default, optimization remark is missing. | |
bool | hasValidPattern () const |
Returns true iff the optimization remark holds a valid regular expression. | |
bool | patternMatches (StringRef String) const |
Matches the given string against the regex, if there is some. | |
Public Attributes | |
RemarkKind | Kind = RK_Missing |
std::string | Pattern |
std::shared_ptr< llvm::Regex > | Regex |
Optimization remark with an optional regular expression pattern.
Definition at line 339 of file CodeGenOptions.h.
|
default |
By default, optimization remark is missing.
|
inline |
Returns true iff the optimization remark holds a valid regular expression.
Definition at line 349 of file CodeGenOptions.h.
References Regex.
Referenced by clang::ClangDiagnosticHandler::isAnyRemarkEnabled(), and patternMatches().
|
inline |
Matches the given string against the regex, if there is some.
Definition at line 352 of file CodeGenOptions.h.
References hasValidPattern(), and Regex.
Referenced by clang::ClangDiagnosticHandler::isAnalysisRemarkEnabled(), clang::ClangDiagnosticHandler::isMissedOptRemarkEnabled(), clang::ClangDiagnosticHandler::isPassedOptRemarkEnabled(), and clang::BackendConsumer::OptimizationRemarkHandler().
RemarkKind clang::CodeGenOptions::OptRemark::Kind = RK_Missing |
Definition at line 340 of file CodeGenOptions.h.
std::string clang::CodeGenOptions::OptRemark::Pattern |
Definition at line 341 of file CodeGenOptions.h.
std::shared_ptr<llvm::Regex> clang::CodeGenOptions::OptRemark::Regex |
Definition at line 342 of file CodeGenOptions.h.
Referenced by hasValidPattern(), and patternMatches().