We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cde15fa commit 375efdfCopy full SHA for 375efdf
clang/lib/Lex/HeaderSearch.cpp
@@ -887,8 +887,8 @@ void HeaderSearch::DiagnoseHeaderShadowing(
887
ArrayRef<std::pair<OptionalFileEntryRef, DirectoryEntryRef>> Includers,
888
bool isAngled, int IncluderLoopIndex, ConstSearchDirIterator MainLoopIt) {
889
890
- if (Diags.isIgnored(diag::warn_header_shadowing, IncludeLoc) || isAngled ||
891
- DiagnosedShadowing)
+ if (Diags.isIgnored(diag::warn_header_shadowing, IncludeLoc) ||
+ DiagnosedShadowing || (getFileInfo(*FE).DirInfo != SrcMgr::C_User))
892
return;
893
894
DiagnosedShadowing = true;
0 commit comments