MLIR  19.0.0git
Functions
Class.cpp File Reference
#include "mlir/TableGen/Class.h"
#include "mlir/TableGen/Format.h"
#include "llvm/ADT/Sequence.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/Debug.h"

Go to the source code of this file.

Functions

static StringRef getSpaceAfterType (StringRef type)
 Returns space to be emitted after the given C++ type. More...
 

Function Documentation

◆ getSpaceAfterType()

static StringRef getSpaceAfterType ( StringRef  type)
static

Returns space to be emitted after the given C++ type.

return "" if the ends with '&' or '*', or is empty, else returns " ".

Definition at line 20 of file Class.cpp.

Referenced by mlir::tblgen::MethodParameter::writeDeclTo(), mlir::tblgen::MethodSignature::writeDeclTo(), mlir::tblgen::MethodParameter::writeDefTo(), and mlir::tblgen::MethodSignature::writeDefTo().