[all-commits] [llvm/llvm-project] eac90d: [clang][deps] During scanning don't emit warnings-...
Volodymyr Sapsai via All-commits
all-commits at lists.llvm.org
Mon Nov 28 13:48:50 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eac90d1236cfd2935fac5cbe5634f09e2cd0981a
https://github.com/llvm/llvm-project/commit/eac90d1236cfd2935fac5cbe5634f09e2cd0981a
Author: Volodymyr Sapsai <vsapsai at apple.com>
Date: 2022-11-28 (Mon, 28 Nov 2022)
Changed paths:
M clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
A clang/test/ClangScanDeps/diagnostic-pragmas.c
Log Message:
-----------
[clang][deps] During scanning don't emit warnings-as-errors that are ignored with diagnostic pragmas.
Before the fix the scanning would fail with
`-Werror,-Wnon-modular-include-in-module` despite the warning being
suppressed in the source code.
Existing approach with `-Wno-error` is not sufficient because it negates
only general `-Werror` but not specific `-Werror=...` and some warnings
can still emitted as errors. Make the approach stricter by using `-w`
flag and ignore all warnings, including those upgraded to errors. This
approach is still valid as it doesn't affect the dependencies.
rdar://101588531
Differential Revision: https://reviews.llvm.org/D138252
More information about the All-commits
mailing list