aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2020-07-08 21:49:38 +0200
committerSam McCall <sam.mccall@gmail.com>2020-09-14 10:43:42 +0200
commit30667c967d3f420d3f53fb1c9c2465550a1112df (patch)
treecdfd3b03ae9c00033fea50e7899c970bbf0d9847 /llvm/lib/CodeGen/MachineInstr.cpp
parent09b8871f8d81ce2777afe836604f392a2af9e620 (diff)
downloadllvm-30667c967d3f420d3f53fb1c9c2465550a1112df.zip
llvm-30667c967d3f420d3f53fb1c9c2465550a1112df.tar.gz
llvm-30667c967d3f420d3f53fb1c9c2465550a1112df.tar.bz2
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions