llvm-project/clang/unittests/Basic
Duncan P. N. Exon Smith 2878e965af Basic: Add hashing support for FileEntryRef and DirectoryEntryRef
Allow hashing FileEntryRef and DirectoryEntryRef via `hash_value`, and
use that to implement `DenseMapInfo`. This hash should be equal whenever
the entry is the same (the name used to reference it is not relevant).

Also add `DirectoryEntryRef::isSameRef` to simplify the implementation
and facilitate testing.

Differential Revision: https://reviews.llvm.org/D92627
2020-12-08 18:10:53 -08:00
..
CMakeLists.txt Reapply "FileManager: Improve the FileEntryRef API and customize its OptionalStorage" 2020-10-30 15:06:01 -04:00
CharInfoTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DiagnosticTest.cpp [NFC] Refactor DiagnosticBuilder and PartialDiagnostic 2020-10-19 17:48:04 -04:00
FileEntryTest.cpp Basic: Add hashing support for FileEntryRef and DirectoryEntryRef 2020-12-08 18:10:53 -08:00
FileManagerTest.cpp Reapply "FileManager: Improve the FileEntryRef API and customize its OptionalStorage" 2020-10-30 15:06:01 -04:00
LineOffsetMappingTest.cpp [clang][unittest] Don't hardcode the string "Assertion" 2020-10-26 18:10:56 +01:00
SourceManagerTest.cpp SourceManager: Change SourceManager::isMainFile to take a FileEntry, NFC 2020-10-22 21:32:28 -04:00