struct CodeGenOptions::OptRemark

Declaration

struct CodeGenOptions::OptRemark { /* full declaration omitted */ };

Description

Optimization remark with an optional regular expression pattern.

Declared at: clang/include/clang/Basic/CodeGenOptions.h:308

Member Variables

public clang::CodeGenOptions::RemarkKind Kind
public std::string Pattern
public std::shared_ptr<llvm::Regex> Regex

Method Overview

Methods

OptRemark()

Description

By default, optimization remark is missing.

Declared at: clang/include/clang/Basic/CodeGenOptions.h:314

bool hasValidPattern() const

Description

Returns true iff the optimization remark holds a valid regular expression.

Declared at: clang/include/clang/Basic/CodeGenOptions.h:318

bool patternMatches(llvm::StringRef String) const

Description

Matches the given string against the regex, if there is some.

Declared at: clang/include/clang/Basic/CodeGenOptions.h:321

Parameters

llvm::StringRef String