[clang] [llvm] [Clang] Match MSVC handling of duplicate header search paths in Microsoft compatibility modes. (PR #105738)
    Aaron Ballman via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Nov  7 04:09:55 PST 2024
    
    
  
AaronBallman wrote:
> Thanks, @AaronBallman,
> 
> > > Ideally, I think we would do the following at some point to improve compatibility with MSVC.
> > 
> > 
> > I'm not opposed, but I am concerned about the potential to subtly break user code that's relying on our current search path behavior. We may need to find some clever diagnostics for cases where lookup would have previously succeeded or found a different file.
> 
> The changes I was suggesting in that comment would not change what files are found; it would only affect whether the file was to be treated as a user or system header. 
Doesn't that impact whether a header is found via `""` or `<>` syntax? e.g., if something went from a user header to a system header, I thought that meant the search order would then change depending on which include syntax you used?
https://github.com/llvm/llvm-project/pull/105738
    
    
More information about the llvm-commits
mailing list