Skip to content
Snippets Groups Projects
  • Manuel Klimek's avatar
    0e5c52d4
    Correctly implement -include search logic. · 0e5c52d4
    Manuel Klimek authored
    According to the gcc docs, -include uses the current working directory
    for the lookup instead of the main source file.
    
    This patch gets rid of NormalizeIncludePath (which relied on an
    implementation detail of FileManager / FileEntry for the include path
    logic to work), and instead hands the correct lookup information down to
    LookupFile.
    
    This will allow us to change the FileEntry's behavior regarding its Name
    caching.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215433 91177308-0d34-0410-b5e6-96231b3b80d8
    0e5c52d4
    History
    Correctly implement -include search logic.
    Manuel Klimek authored
    According to the gcc docs, -include uses the current working directory
    for the lookup instead of the main source file.
    
    This patch gets rid of NormalizeIncludePath (which relied on an
    implementation detail of FileManager / FileEntry for the include path
    logic to work), and instead hands the correct lookup information down to
    LookupFile.
    
    This will allow us to change the FileEntry's behavior regarding its Name
    caching.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215433 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
HeaderSearch.cpp 47.74 KiB