llvm-project/clang/unittests/Basic
Duncan P. N. Exon Smith 9902362701 Support: Use sys::path::is_style_{posix,windows}() in a few places
Use the new sys::path::is_style_posix() and is_style_windows() in a few
places that need to detect the system's native path style.

In llvm/lib/Support/Path.cpp, this patch removes most uses of the
private `real_style()`, where is_style_posix() and is_style_windows()
are just a little tidier.

Elsewhere, this removes `_WIN32` macro checks. Added a FIXME to a
FileManagerTest that seemed fishy, but maintained the existing
behaviour.

Differential Revision: https://reviews.llvm.org/D112289
2021-10-29 12:09:41 -07:00
..
CMakeLists.txt Basic: Stop using expectedToOptional() in FileManagerTest, NFC 2021-10-25 13:44:45 -07:00
CharInfoTest.cpp Cleanup identifier parsing; NFC 2021-09-14 09:12:22 -04:00
DarwinSDKInfoTest.cpp [clang] Fix the capitalization of the DarwinSDKInfoTest unittest filename to avoid case-sensitive FS build errors 2021-07-20 14:53:08 -07:00
DiagnosticTest.cpp [NFC] Refactor DiagnosticBuilder and PartialDiagnostic 2020-10-19 17:48:04 -04:00
FileEntryTest.cpp Silence warning: comparison of integers of different signs: 'const unsigned int' and 'const long' [-Wsign-compare] 2021-01-07 13:01:06 -05:00
FileManagerTest.cpp Support: Use sys::path::is_style_{posix,windows}() in a few places 2021-10-29 12:09:41 -07:00
LineOffsetMappingTest.cpp [clang][unittest] Don't hardcode the string "Assertion" 2020-10-26 18:10:56 +01:00
SanitizersTest.cpp [clang][cli] Generate and round-trip language options 2021-02-09 10:18:55 +01:00
SourceManagerTest.cpp SourceManager: Change SourceManager::isMainFile to take a FileEntry, NFC 2020-10-22 21:32:28 -04:00