[PATCH] D31814: Add option to add command-line options and version info to output file

Roger Ferrer Ibanez via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 24 07:54:41 PDT 2017


rogfer01 added inline comments.


================
Comment at: lib/CodeGen/CodeGenModule.cpp:4222
+  std::string line;
+  while (std::getline(iss, s, ';')) {
+    if ((s.length() + line.length()) < 80) {
----------------
I wonder if this also works if the original compiler invokation included a ";" ? Something like (in a Unix like shell)

```
clang -DFOO="\";\"" -c file.c
```


https://reviews.llvm.org/D31814





More information about the cfe-commits mailing list