llvm-project/clang/lib/Lex
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
..
CMakeLists.txt PTH-- Remove feature entirely- 2018-12-04 14:34:09 +00:00
HeaderMap.cpp [Lex] Make HeaderMaps a unique_ptr vector 2018-08-20 19:15:02 +00:00
HeaderSearch.cpp [Support] Remove error return value from one overload of fs::make_absolute 2019-01-16 09:55:32 +00:00
Lexer.cpp Misc typos fixes in ./lib folder 2018-12-10 12:37:46 +00:00
LiteralSupport.cpp Fix clang -Wimplicit-fallthrough warnings across llvm, NFC 2018-11-01 19:54:45 +00:00
MacroArgs.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
MacroInfo.cpp [Lex] Make MacroDirective::findDirectiveAtLoc take const SourceManager 2018-10-31 17:19:20 +00:00
ModuleMap.cpp Add vtable anchor to classes. 2018-12-29 02:02:30 +00:00
PPCaching.cpp [Lex] Fix crash on code completion in comment in included file. 2018-01-19 23:41:47 +00:00
PPCallbacks.cpp
PPConditionalDirectiveRecord.cpp
PPDirectives.cpp [MSVC Compat] Fix typo correction for inclusion directives. 2019-01-15 20:08:23 +00:00
PPExpressions.cpp Revert "Correct the source range returned from preprocessor callbacks." 2019-01-15 17:20:05 +00:00
PPLexerChange.cpp PTH-- Remove feature entirely- 2018-12-04 14:34:09 +00:00
PPMacroExpansion.cpp PTH-- Remove feature entirely- 2018-12-04 14:34:09 +00:00
Pragma.cpp PTH-- Remove feature entirely- 2018-12-04 14:34:09 +00:00
PreprocessingRecord.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
Preprocessor.cpp Misc typos fixes in ./lib folder 2018-12-10 12:37:46 +00:00
PreprocessorLexer.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
ScratchBuffer.cpp [Lex] Use WritableMemoryBuffer in ScratchBuffer.cpp 2018-01-11 10:43:45 +00:00
TokenConcatenation.cpp [Lex] TokenConcatenation now takes const Preprocessor 2018-09-27 12:40:16 +00:00
TokenLexer.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
UnicodeCharSets.h