Tidy up lint issues. (#3429)

These are manual fixes; mostly from clang-tidy, some from clangd (which
notes unused includes).

In typed_insts, adding inlline due to misc-definitions-in-headers. Per
discussion, clang-tidy is wrong, but inline silences it.

For parameter name skew in definition versus declaration, I'm just using
the name from the definition.

---------

Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
Jon Ross-Perkins
2023-11-29 20:41:53 +00:00
committed by GitHub
co-authored by Richard Smith
parent eae630a3db
commit 0d618b1278
24 changed files with 55 additions and 63 deletions
+1
View File
@@ -24,6 +24,7 @@ enum class RelativeLocation : int8_t {
};
// Adapts RelativeLocation for use with formatv.
// TODO: Investigate for approaches that clangd is happier with.
static auto operator<<(llvm::raw_ostream& out, RelativeLocation loc)
-> llvm::raw_ostream& {
switch (loc) {