aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2023-11-02 16:40:20 +0800
committerGitHub <noreply@github.com>2023-11-02 16:40:20 +0800
commit0d2143611425081bb9db5bb6ee57aaddfd1eda53 (patch)
tree4da6eaed5106949b75fddb5634b1f0499d9568a6 /llvm/lib/IR/Module.cpp
parentaf50d6efc92dc9c9bf581aacb3086cb3c3a4f329 (diff)
downloadllvm-0d2143611425081bb9db5bb6ee57aaddfd1eda53.zip
llvm-0d2143611425081bb9db5bb6ee57aaddfd1eda53.tar.gz
llvm-0d2143611425081bb9db5bb6ee57aaddfd1eda53.tar.bz2
[C++20] [Modules] Warn if we found #include <filename> in module purview (#69555)
Close https://github.com/llvm/llvm-project/issues/68615. It is generally wrong to include <filename> in the module purview. Although there are cases to include files in the module purview, generally these use cases should include files by quotes instead of by angles. Here we think the files got included by angles are the system headers. This is consistency with MSVC too: https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warnings-by-compiler-version?view=msvc-170#warnings-introduced-in-visual-studio-2022-version-170-compiler-version-1930
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions