This class contains the body of a C++ method.
More...
#include "mlir/TableGen/Class.h"
This class contains the body of a C++ method.
Definition at line 201 of file Class.h.
◆ MethodBody() [1/2]
| MethodBody::MethodBody |
( |
bool | declOnly | ) |
|
◆ MethodBody() [2/2]
| mlir::tblgen::MethodBody::MethodBody |
( |
MethodBody && | other | ) |
|
|
inline |
Define a move constructor to correctly initialize the streams.
Definition at line 208 of file Class.h.
References MethodBody().
◆ getStream()
Get the underlying indented output stream.
Definition at line 251 of file Class.h.
◆ indent()
◆ operator<<()
template<typename ValueT>
| MethodBody & mlir::tblgen::MethodBody::operator<< |
( |
ValueT && | value | ) |
|
|
inline |
◆ operator=()
Define a move assignment operator.
raw_ostream has deleted assignment operators, so reinitialize the whole object.
Definition at line 213 of file Class.h.
References MethodBody().
◆ scope()
Create a delimited scope: immediately print open, indent if indent is true, and print close on object destruction.
Definition at line 246 of file Class.h.
References indent().
◆ unindent()
| MethodBody & mlir::tblgen::MethodBody::unindent |
( |
| ) |
|
|
inline |
◆ writeTo()
Write the method body to the output stream.
The body can be written as part of the declaration of an inline method or just in the definition.
Definition at line 113 of file Class.cpp.
The documentation for this class was generated from the following files: