[all-commits] [llvm/llvm-project] 8bed59: [Lex] Fix suggested spelling of /usr/bin/../includ...
Sam McCall via All-commits
all-commits at lists.llvm.org
Fri Nov 25 02:01:45 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8bed59c7e7da2fea41a9167e15c15a8f58a5ede7
https://github.com/llvm/llvm-project/commit/8bed59c7e7da2fea41a9167e15c15a8f58a5ede7
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2022-11-25 (Fri, 25 Nov 2022)
Changed paths:
M clang/lib/Lex/HeaderSearch.cpp
M clang/unittests/Lex/HeaderSearchTest.cpp
Log Message:
-----------
[Lex] Fix suggested spelling of /usr/bin/../include/foo
Since D60873 we remove dotdots from the search path entries, but not the
filenames we're matching against, so do the latter too.
Since this also removes (single) dots, drop the logic to skip over them.
(Some of this was already dead, some is newly dead).
See D138676 for motivation.
Differential Revision: https://reviews.llvm.org/D138677
More information about the All-commits
mailing list