Run clang-tidy over toolchain code. (#3105)

Amongst other changes, this removes the implicit StringRef cast in
formatter code due to google-explicit-constructor. Only one line of code
relied on the implicit cast, and style says "Do not define implicit
conversions."
(https://google.github.io/styleguide/cppguide.html#Implicit_Conversions).

---------

Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
Jon Ross-PerkinsandRichard Smith authored and GitHub committed 2023-08-16 15:21:58 +00:00
1 parent fa857e42be
commit 09242eeebd
6 files changed
+24 -23

No files matched your search

@@ -28,7 +28,6 @@ using ::testing::_;
using ::testing::ElementsAre;
using ::testing::Eq;
using ::testing::HasSubstr;
using ::testing::StrEq;
class LexerTest : public ::testing::Test {
protected: