[clang] [SystemZ][z/OS] This change adds support for the PPA2 section in zOS (PR #68926)

Ulrich Weigand via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 16 10:57:56 PDT 2023


================
@@ -10,9 +10,49 @@
 #include "clang/Config/config.h"
 #include "llvm/ADT/StringSwitch.h"
 #include "llvm/Support/ErrorHandling.h"
+#include "llvm/Support/FormatVariadic.h"
 #include "llvm/TargetParser/Triple.h"
 using namespace clang;
 
+const char *clang::languageToString(Language L) {
+  // I would like to make this function and the definition of Language
+  // in the .h file simply expand the contents of a .def file.
+  // However, in the .h the members of the enum have doxygen annotations
+  // and/or comments which would be lost.
----------------
uweigand wrote:

I'm not sure I have a good solution for this, but I'd like to see comments on this from the wider clang community.  Maybe it would make sense to submit just this function as a separate PR.

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


More information about the cfe-commits mailing list