[llvm] [mlir] [utils][TableGen] Implement clause aliases as alternative spellings (PR #141765)

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 07:29:54 PDT 2025


================
@@ -1305,7 +1336,9 @@ void emitDirectivesBasicImpl(const DirectiveLanguage &DirLang,
   StringRef DPrefix = DirLang.getDirectivePrefix();
   StringRef CPrefix = DirLang.getClausePrefix();
 
-  OS << "\n#include \"llvm/Support/ErrorHandling.h\"\n";
+  OS << "\n";
----------------
kparzysz wrote:

End-of-line characters in a raw strings are literally line ends, so this would look like
```
  OS << R"x(
)x";
```

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


More information about the llvm-commits mailing list