================
@@ -2270,7 +2270,18 @@ ContinuationIndenter::createBreakableToken(const
FormatToken &Current,
if (State.Stack.back().IsInsideObjCArrayLiteral)
return nullptr;
+ // The "DPI"/"DPI-C" in SystemVerilog direct programming interface imports
+ // cannot be split, e.g.
+ // `import "DPI" function foo();`
StringRef Text = Current.TokenText;
+ if (Style.isVerilog()) {
+ const FormatToken *Prev = Current.getPreviousNonComment();
+ if (Prev && Prev == State.Line->getFirstNonComment() &&
+ Prev->TokenText == "import") {
+ return nullptr;
+ }
+ }
+
----------------
eaeltsin wrote:
Can we please have any of the resolutions sooner?
This blocks quite a bit of testing.
For example, can we have this as a workaround, then let @sstwcw fix it cleanly?
https://github.com/llvm/llvm-project/pull/66951
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits