[PATCH] D97042: [clang][cli] Stop creating '-Wno-stdlibcxx-not-found' in cc1
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 19 02:46:04 PST 2021
jansvoboda11 created this revision.
jansvoboda11 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This patch stops creating the '-Wno-stdlibcxx-not-found' argument in `CompilerInvocation::CreateFromArgs`.
The code was added in 2e7ab55e657f (a follow-up to D48297 <https://reviews.llvm.org/D48297>). However, D61963 <https://reviews.llvm.org/D61963> removes relevant tests and starts explicitly passing '-Wno-stdlibcxx-not-found' to the driver. I think it's fair to assume this is a dead code.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97042
Files:
clang/lib/Frontend/CompilerInvocation.cpp
Index: clang/lib/Frontend/CompilerInvocation.cpp
===================================================================
--- clang/lib/Frontend/CompilerInvocation.cpp
+++ clang/lib/Frontend/CompilerInvocation.cpp
@@ -4588,12 +4588,6 @@
Res.getPreprocessorOpts().Includes, Diags);
if (Res.getFrontendOpts().ProgramAction == frontend::RewriteObjC)
LangOpts.ObjCExceptions = 1;
- if (T.isOSDarwin() && DashX.isPreprocessed()) {
- // Supress the darwin-specific 'stdlibcxx-not-found' diagnostic for
- // preprocessed input as we don't expect it to be used with -std=libc++
- // anyway.
- Res.getDiagnosticOpts().Warnings.push_back("no-stdlibcxx-not-found");
- }
}
if (LangOpts.CUDA) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97042.324931.patch
Type: text/x-patch
Size: 753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210219/198e3740/attachment.bin>
More information about the cfe-commits
mailing list