mirror of https://github.com/llvm/circt.git
[InferWidths] clang-format fix
This commit is contained in:
parent
1b029f0ae2
commit
b736007cfb
|
@ -189,7 +189,7 @@ protected:
|
|||
template <class DerivedT, Expr::Kind DerivedKind>
|
||||
struct UnaryExprBase : public UnaryExpr {
|
||||
template <typename... Args>
|
||||
UnaryExprBase(Args &&... args)
|
||||
UnaryExprBase(Args &&...args)
|
||||
: UnaryExpr(DerivedKind, std::forward<Args>(args)...) {}
|
||||
static bool classof(const Expr *e) { return e->kind == DerivedKind; }
|
||||
};
|
||||
|
@ -228,7 +228,7 @@ protected:
|
|||
template <class DerivedT, Expr::Kind DerivedKind>
|
||||
struct BinaryExprBase : public BinaryExpr {
|
||||
template <typename... Args>
|
||||
BinaryExprBase(Args &&... args)
|
||||
BinaryExprBase(Args &&...args)
|
||||
: BinaryExpr(DerivedKind, std::forward<Args>(args)...) {}
|
||||
static bool classof(const Expr *e) { return e->kind == DerivedKind; }
|
||||
};
|
||||
|
@ -323,7 +323,7 @@ public:
|
|||
/// existing one. `R` is the type of the object to be allocated. `R` must be
|
||||
/// derived from or be the type `T`.
|
||||
template <typename R = T, typename... Args>
|
||||
std::pair<R *, bool> alloc(Args &&... args) {
|
||||
std::pair<R *, bool> alloc(Args &&...args) {
|
||||
auto stack_value = R(std::forward<Args>(args)...);
|
||||
auto stack_slot = Slot(&stack_value);
|
||||
auto it = interned.find(stack_slot);
|
||||
|
@ -347,7 +347,7 @@ public:
|
|||
/// Allocate a new object. `R` is the type of the object to be allocated. `R`
|
||||
/// must be derived from or be the type `T`.
|
||||
template <typename R = T, typename... Args>
|
||||
R *alloc(Args &&... args) {
|
||||
R *alloc(Args &&...args) {
|
||||
return new (allocator) R(std::forward<Args>(args)...);
|
||||
}
|
||||
};
|
||||
|
@ -632,7 +632,7 @@ private:
|
|||
|
||||
/// Add an allocated expression to the list above.
|
||||
template <typename R, typename T, typename... Args>
|
||||
R *alloc(InternedAllocator<T> &allocator, Args &&... args) {
|
||||
R *alloc(InternedAllocator<T> &allocator, Args &&...args) {
|
||||
auto it = allocator.template alloc<R>(std::forward<Args>(args)...);
|
||||
if (it.second)
|
||||
exprs.push_back(it.first);
|
||||
|
|
Loading…
Reference in New Issue