[clang] [clang-format] Add Options to break inside the TableGen DAGArg. (PR #83149)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 14 12:41:30 PDT 2024


================
@@ -1842,6 +1846,19 @@ void ContinuationIndenter::moveStatePastScopeOpener(LineState &State,
         Style.ContinuationIndentWidth +
         std::max(CurrentState.LastSpace, CurrentState.StartOfFunctionCall);
 
+    if (Style.isTableGen()) {
+      if (Current.is(TT_TableGenDAGArgOpenerToBreak) &&
+          Style.TableGenBreakInsideDAGArg == FormatStyle::DAS_BreakElements) {
----------------
HazardyKnusperkeks wrote:

```suggestion
    if (Style.isTableGen() && Current.is(TT_TableGenDAGArgOpenerToBreak) &&
          Style.TableGenBreakInsideDAGArg == FormatStyle::DAS_BreakElements) {
```

https://github.com/llvm/llvm-project/pull/83149


More information about the cfe-commits mailing list