[PATCH] D37599: Add '\n' in ClangDataCollectorsEmitter

Konstantin Zhuravlyov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 7 15:42:01 PDT 2017


kzhuravl created this revision.
Herald added subscribers: ilya-biryukov, wdng.

Otherwise it breaks our internal windows builders:

  StmtDataCollectors.inc: error C2220: warning treated as error - no 'object' file generated
  StmtDataCollectors.inc: warning C4335: Mac file format detected: please convert the source file to either DOS or UNIX format


https://reviews.llvm.org/D37599

Files:
  utils/TableGen/ClangDataCollectorsEmitter.cpp


Index: utils/TableGen/ClangDataCollectorsEmitter.cpp
===================================================================
--- utils/TableGen/ClangDataCollectorsEmitter.cpp
+++ utils/TableGen/ClangDataCollectorsEmitter.cpp
@@ -8,7 +8,7 @@
   const auto &Defs = RK.getClasses();
   for (const auto &Entry : Defs) {
     Record &R = *Entry.second;
-    OS << "DEF_ADD_DATA(" << R.getName() << ", {";
+    OS << "DEF_ADD_DATA(" << R.getName() << ", {\n";
     auto Code = R.getValue("Code")->getValue();
     OS << Code->getAsUnquotedString() << "}\n)";
     OS << "\n";


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37599.114269.patch
Type: text/x-patch
Size: 566 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170907/0d5ad397/attachment-0001.bin>


More information about the cfe-commits mailing list