llvm-project/clang-tools-extra/clangd/support
Sam McCall 30667c967d [clangd] Add error() function for creating formatv-style llvm::Errors. NFC
Summary:
This is considerably terser than the makeStringError and friends, and
avoids verbosity cliffs that discourage adding log information.

It follows the syntax used in log/elog/vlog/dlog that have been successful.

The main caveats are:
 - it's strictly out-of-place in logger.h, though kind of fits thematically and
   in implementation
 - it claims the "error" identifier, which seems a bit too opinionated
   to put higher up in llvm

I've updated some users of StringError mostly at random - there are lots
more mechanical changes but I'd like to get this reviewed before making
them all.

Reviewers: kbobyrev, hokein

Subscribers: mgorny, ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D83419
2020-09-14 10:43:42 +02:00
..
CMakeLists.txt [clangd][NFC] Rename FSProvider and getFileSystem 2020-06-19 12:12:03 +02:00
Cancellation.cpp
Cancellation.h
Context.cpp
Context.h
Function.h
Logger.cpp [clangd] Add error() function for creating formatv-style llvm::Errors. NFC 2020-09-14 10:43:42 +02:00
Logger.h [clangd] Add error() function for creating formatv-style llvm::Errors. NFC 2020-09-14 10:43:42 +02:00
Markup.cpp [ADT] Add locale-independent isSpace() to StringExtras. NFC 2020-05-02 15:20:05 +02:00
Markup.h
Path.h
Shutdown.cpp
Shutdown.h
Threading.cpp
Threading.h Reland [clangd] Resolve driver symlinks, and look up unknown relative drivers in PATH. 2020-06-09 23:07:28 +02:00
ThreadsafeFS.cpp [clangd] Suppress GCC -Woverloaded-virtual by renaming ThreadsafeFS extension point 2020-06-30 15:06:15 +02:00
ThreadsafeFS.h [clangd] Suppress GCC -Woverloaded-virtual by renaming ThreadsafeFS extension point 2020-06-30 15:06:15 +02:00
Trace.cpp Fix "not all control paths return a value" warning on MSVC builds. 2020-05-19 13:16:24 +01:00
Trace.h [clangd] Add CSV export for trace metrics 2020-05-19 13:35:31 +02:00