llvm-project/llvm/unittests/Support
Pavel Labath 1ad53ca2b0 [Support] Remove error return value from one overload of fs::make_absolute
Summary:
The version of make_absolute which accepted a specific directory to use
as the "base" for the computation could never fail, even though it
returned a std::error_code. The reason for that seems to be historical
-- the CWD flavour (which can fail due to failure to retrieve CWD) was
there first, and the new version was implemented by extending that.

This removes the error return value from the non-CWD overload and
reimplements the CWD version on top of that. This enables us to remove
some dead code where people were pessimistically trying to handle the
errors returned from this function.

Reviewers: zturner, sammccall

Subscribers: hiraditya, kristina, llvm-commits

Differential Revision: https://reviews.llvm.org/D56599

llvm-svn: 351317
2019-01-16 09:55:32 +00:00
..
DynamicLibrary Fix DynamicLibraryTests build on Windows when LLVM_EXPORT_SYMBOLS_FOR_PLUGINS is ON 2018-11-28 15:19:55 +00:00
ARMAttributeParser.cpp Remove redundant includes from unittests. 2017-12-13 21:31:05 +00:00
AlignOfTest.cpp
AllocatorTest.cpp Report fatal error in the case of out of memory 2018-02-20 05:41:26 +00:00
ArrayRecyclerTest.cpp
BinaryStreamTest.cpp Remove redundant includes from unittests. 2017-12-13 21:31:05 +00:00
BlockFrequencyTest.cpp
BranchProbabilityTest.cpp
CMakeLists.txt Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
CachePruningTest.cpp Unbreak the build. Combining chrono with Optional is annoying. 2017-12-22 21:18:50 +00:00
Casting.cpp
CheckedArithmeticTest.cpp Add checkMulAdd helper function to CheckedArithmetic 2018-06-13 18:32:02 +00:00
Chrono.cpp Support formatv of TimePoint with strftime-style formats. 2017-10-24 08:30:19 +00:00
CommandLineTest.cpp Add support for prefix-only CLI options 2019-01-14 09:28:53 +00:00
CompressionTest.cpp Use the same constants as zlib to represent compression level. 2018-08-04 00:13:13 +00:00
ConvertUTFTest.cpp Remove redundant includes from unittests. 2017-12-13 21:31:05 +00:00
CrashRecoveryTest.cpp s/LLVM_ON_WIN32/_WIN32/, llvm 2018-04-29 00:45:03 +00:00
DJBTest.cpp Resubmit r325107 (case folding DJB hash) 2018-02-21 22:36:31 +00:00
DataExtractorTest.cpp
DebugCounterTest.cpp [DebugCounters] Fix DebugCounterTest when running all SupportTests 2018-08-29 16:11:48 +00:00
DebugTest.cpp
EndianStreamTest.cpp Support: Simplify endian stream interface. NFCI. 2018-05-18 19:46:24 +00:00
EndianTest.cpp
ErrnoTest.cpp [Support] Clear errno before calling the function in RetryAfterSignal. 2018-07-07 02:46:12 +00:00
ErrorOrTest.cpp Fix incorrect usage of std::is_assignable. 2018-02-02 22:29:54 +00:00
ErrorTest.cpp [Support] Make error banner optional in logAllUnhandledErrors 2018-11-11 01:46:03 +00:00
FileOutputBufferTest.cpp [SupportTests] Silence -Wsign-compare warnings 2018-06-28 21:03:24 +00:00
FormatVariadicTest.cpp [Support] Require llvm::Error passed to formatv() to be wrapped in fmt_consume() 2018-07-12 07:11:28 +00:00
GlobPatternTest.cpp
Host.cpp [AArch64] Support HiSilicon's TSV110 processor 2018-11-09 19:32:08 +00:00
ItaniumManglingCanonicalizerTest.cpp Fix a couple of mangling canonicalizer corner case bugs. 2018-09-13 20:00:21 +00:00
JSONTest.cpp [Support] json::Value construction from std::vector<T> and std::map<string,T>. 2018-10-18 08:47:24 +00:00
LEB128Test.cpp
LineIteratorTest.cpp
LockFileManagerTest.cpp [FileSystem] Split up the OpenFlags enumeration. 2018-06-07 19:58:58 +00:00
MD5Test.cpp Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
ManagedStatic.cpp Report fatal error in the case of out of memory 2018-02-20 05:41:26 +00:00
MathExtrasTest.cpp
MemoryBufferTest.cpp [Support] Pacify -Wsign-compare in unit test. 2018-03-08 21:54:30 +00:00
MemoryTest.cpp [unittest] Skip W+X MappedMemoryTests when MPROTECT is enabled 2018-11-20 18:38:11 +00:00
NativeFormatTests.cpp
ParallelTest.cpp Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
Path.cpp [Support] Remove error return value from one overload of fs::make_absolute 2019-01-16 09:55:32 +00:00
ProcessTest.cpp Test commit - delete a trailing space. 2018-11-19 12:10:07 +00:00
ProgramTest.cpp Refactor ExecuteAndWait to take StringRefs. 2018-06-12 17:43:52 +00:00
RegexTest.cpp Fix llvm-special-case-list-fuzzer regexp exception 2017-10-27 19:15:13 +00:00
ReplaceFileTest.cpp [FileSystem] Split up the OpenFlags enumeration. 2018-06-07 19:58:58 +00:00
ReverseIterationTest.cpp
ScaledNumberTest.cpp
SourceMgrTest.cpp [Support] Make line-number cache robust against access patterns. 2018-04-07 00:44:02 +00:00
SpecialCaseListTest.cpp Extend SpecialCaseList to allow users to blame matches on entries in the file. 2017-11-07 21:16:46 +00:00
StringPool.cpp
SwapByteOrderTest.cpp
SymbolRemappingReaderTest.cpp Common infrastructure for reading a profile remapping file and building 2018-09-13 18:51:44 +00:00
TarWriterTest.cpp Fix build bot after r319750 "[Support/TarWriter] - Don't allow TarWriter to add the same file more than once." 2017-12-05 10:35:11 +00:00
TargetParserTest.cpp [AArch64] Create feature set for Exynos M4 2019-01-11 18:54:25 +00:00
TaskQueueTest.cpp Build TaskQueueTest in threads=on builds, fixes regression from r335608. 2018-06-27 11:52:30 +00:00
ThreadLocalTest.cpp
ThreadPool.cpp Revert "Enable ThreadPool to queue tasks that return values." 2018-06-13 21:24:19 +00:00
Threading.cpp
TimerTest.cpp s/LLVM_ON_WIN32/_WIN32/, llvm 2018-04-29 00:45:03 +00:00
TrailingObjectsTest.cpp
TrigramIndexTest.cpp
TypeNameTest.cpp
TypeTraitsTest.cpp Remove extra semicolon (fixes -Wpedantic warning). NFCI. 2018-08-13 10:05:34 +00:00
UnicodeTest.cpp
VersionTupleTest.cpp Move VersionTuple from clang/Basic to llvm/Support 2018-06-11 10:28:04 +00:00
VirtualFileSystemTest.cpp Revert "[VFS] Allow multiple RealFileSystem instances with independent CWDs." 2019-01-14 18:32:09 +00:00
YAMLIOTest.cpp [Support] Teach YAMLIO about polymorphic types 2018-11-14 19:39:59 +00:00
YAMLParserTest.cpp [YAMLParser] Don't crash on null keys in KeyValueNodes. 2017-11-23 20:57:20 +00:00
formatted_raw_ostream_test.cpp
raw_ostream_test.cpp
raw_pwrite_stream_test.cpp [FileSystem] Split up the OpenFlags enumeration. 2018-06-07 19:58:58 +00:00
raw_sha1_ostream_test.cpp
xxhashTest.cpp