The new C++ stdlib warning added in https://reviews.llvm.org/D48297 gets triggered when compiling an assembly file with -x assembler-with-cpp.
This commit ensures that the C++ stdlib is not included when compiling assembly. In general, it's not really useful to include the C++ stdlib search path when compiling assembly source.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
lib/Frontend/InitHeaderSearch.cpp | ||
---|---|---|
474 | 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? |
lib/Frontend/InitHeaderSearch.cpp | ||
---|---|---|
474 | This option was already there. I only added '&& !Lang.AsmPreprocessor'. Or do you mean something else? |
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?