[PATCH] D48736: [frontend] Don't include the C++ stdlib for -x assembler-with-cpp

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 28 15:55:29 PDT 2018


arphaman added inline comments.


================
Comment at: lib/Frontend/InitHeaderSearch.cpp:474
+  if (Lang.CPlusPlus && !Lang.AsmPreprocessor &&
+      HSOpts.UseStandardCXXIncludes && HSOpts.UseStandardSystemIncludes) {
     if (HSOpts.UseLibcxx) {
----------------
bruno wrote:
> Since you added `HSOpts.UseStandardCXXIncludes` to the condition, would it be worth adding a test case for triggering this option when `!Lang.AsmPreprocessor` evals to true?
This option was already there. I only added '&& !Lang.AsmPreprocessor'. Or do you mean something else?


Repository:
  rC Clang

https://reviews.llvm.org/D48736





More information about the cfe-commits mailing list