[PATCH] D92191: [clang-scan-deps] Add support for clang-cl

Hans Wennborg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 27 02:23:57 PST 2020


hans added a comment.

Seems reasonable to me, but someone who actually knows clang-scan-deps should take a look too.



================
Comment at: clang/tools/clang-scan-deps/ClangScanDeps.cpp:471
+#ifdef _WIN32
+        const char *NullFile = "nul";
+#else
----------------
these string constants should be `const char NullFile[] = ....`

but since it seems you're only using NullFile for the /Fo or -o options below, I'd suggest just folding it into those options instead. Then you could also avoid having to do the `(Twine("/Fo") + NullFile).str()` dance and could just do `push_back ("/Fonul");`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92191/new/

https://reviews.llvm.org/D92191



More information about the cfe-commits mailing list