Unlike Header, we really do have a preferred spelling for an include: the one
that we used to open the file.
The fact that Header is still FileEntry* makes it difficult to accidentally
use path equality when we want inode equality.
Paths
| Differential D155885
[include-cleaner] Switch Include from FileEntry* -> FileEntryRef ClosedPublic Authored by sammccall on Jul 20 2023, 2:12 PM.
Details Summary Unlike Header, we really do have a preferred spelling for an include: the one The fact that Header is still FileEntry* makes it difficult to accidentally
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 26 2023, 1:32 AM Closed by commit rGf6307b260b0c: [include-cleaner] Switch Include from FileEntry* -> FileEntryRef (authored by sammccall). · Explain WhyJul 26 2023, 4:42 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 542668 clang-tools-extra/clang-tidy/misc/IncludeCleanerCheck.cpp
clang-tools-extra/clangd/IncludeCleaner.cpp
clang-tools-extra/include-cleaner/include/clang-include-cleaner/Types.h
clang-tools-extra/include-cleaner/lib/Analysis.cpp
clang-tools-extra/include-cleaner/lib/Record.cpp
clang-tools-extra/include-cleaner/lib/Types.cpp
clang-tools-extra/include-cleaner/unittests/RecordTest.cpp
clang-tools-extra/include-cleaner/unittests/TypesTest.cpp
|