MLIR  20.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::raw_indented_ostream::DelimitedScope Struct Reference

Simple RAII struct to use to indentation around entering/exiting region. More...

#include "mlir/Support/IndentedOstream.h"

Public Member Functions

 DelimitedScope (raw_indented_ostream &os, StringRef open="", StringRef close="", bool indent=true)
 
 ~DelimitedScope ()
 

Public Attributes

raw_indented_ostreamos
 

Detailed Description

Simple RAII struct to use to indentation around entering/exiting region.

Definition at line 30 of file IndentedOstream.h.

Constructor & Destructor Documentation

◆ DelimitedScope()

mlir::raw_indented_ostream::DelimitedScope::DelimitedScope ( raw_indented_ostream os,
StringRef  open = "",
StringRef  close = "",
bool  indent = true 
)
inlineexplicit

Definition at line 31 of file IndentedOstream.h.

References mlir::raw_indented_ostream::indent(), and os.

◆ ~DelimitedScope()

mlir::raw_indented_ostream::DelimitedScope::~DelimitedScope ( )
inline

Definition at line 38 of file IndentedOstream.h.

References os, and mlir::raw_indented_ostream::unindent().

Member Data Documentation

◆ os

raw_indented_ostream& mlir::raw_indented_ostream::DelimitedScope::os

Definition at line 44 of file IndentedOstream.h.

Referenced by DelimitedScope(), and ~DelimitedScope().


The documentation for this struct was generated from the following file: