clang
19.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. More... | |
bool | hasValidPattern () const |
Returns true iff the optimization remark holds a valid regular expression. More... | |
bool | patternMatches (StringRef String) const |
Matches the given string against the regex, if there is some. More... | |
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 348 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 358 of file CodeGenOptions.h.
References Regex.
Referenced by patternMatches().
|
inline |
Matches the given string against the regex, if there is some.
Definition at line 361 of file CodeGenOptions.h.
References hasValidPattern(), and Regex.
Referenced by clang::BackendConsumer::OptimizationRemarkHandler().
RemarkKind clang::CodeGenOptions::OptRemark::Kind = RK_Missing |
Definition at line 349 of file CodeGenOptions.h.
std::string clang::CodeGenOptions::OptRemark::Pattern |
Definition at line 350 of file CodeGenOptions.h.
std::shared_ptr<llvm::Regex> clang::CodeGenOptions::OptRemark::Regex |
Definition at line 351 of file CodeGenOptions.h.
Referenced by hasValidPattern(), and patternMatches().