Issue 177057
Summary [clang-format] Indentation with top-level let with multiple defs
Labels tablegen
Assignees
Reporter lenary
    There are two forms of top-level `let` in tablegen. The indentation of the form with one def is covered in #160414. This issue is intended to cover the 

(multi-def let)
```tablegen
let Field = Value in {
// multiple record definitions, all of which get their `Field` set to `Value`
def NAME1 : Class<...>;
def : Class<...>; // anonymous
}
```

At the moment, everything inside the `let` gets indented, but we would prefer this was not the case, usually.

We do want indentation in `foreach` blocks though.

I'm not sure if this is configurable or not. It may be that we want this to be configurable based on the name of the fields involved in the `let`. 


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to