diff options
author | Volodymyr Sapsai <vsapsai@apple.com> | 2022-07-19 14:27:02 -0700 |
---|---|---|
committer | Volodymyr Sapsai <vsapsai@apple.com> | 2022-07-21 17:42:04 -0700 |
commit | 381fcaa1365b4fd8f9682a6a1e09f5b3fd4bbfc2 (patch) | |
tree | 5e13e6c45ef3460bb881a15b356d1af19fb85788 /clang/lib/Lex/ModuleMap.cpp | |
parent | 98186def3f1f6f3862e6c91ca01dfd278ad1929e (diff) | |
download | llvm-381fcaa1365b4fd8f9682a6a1e09f5b3fd4bbfc2.zip llvm-381fcaa1365b4fd8f9682a6a1e09f5b3fd4bbfc2.tar.gz llvm-381fcaa1365b4fd8f9682a6a1e09f5b3fd4bbfc2.tar.bz2 |
[modules] Replace `-Wauto-import` with `-Rmodule-include-translation`.
Diagnostic for `-Wauto-import` shouldn't be a warning because it doesn't
represent a potential problem in code that should be fixed. And the
emitted fix-it is likely to trigger `-Watimport-in-framework-header`
which makes it challenging to have a warning-free codebase. But it is
still useful to see how include directives are translated into modular
imports and which module a header belongs to, that's why keep it as a remark.
Keep `-Wauto-import` for now to allow a gradual migration for codebases
using `-Wno-auto-import`, e.g., `-Weverything -Wno-auto-import`.
rdar://79594287
Differential Revision: https://reviews.llvm.org/D130138
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions