From c2d21429f22b170b5d923732bd338e65ea178573 Mon Sep 17 00:00:00 2001 From: Boaz Brickner Date: Wed, 15 Oct 2025 17:50:47 +0200 Subject: [PATCH] Avoid changing visiblity when inheriting in `CodeContextRenderer` (#6219) This fixes clang-tidy `override-with-different-visibility`. --- toolchain/check/cpp/import.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/check/cpp/import.cpp b/toolchain/check/cpp/import.cpp index 91220eacac1c..2084e5bf878c 100644 --- a/toolchain/check/cpp/import.cpp +++ b/toolchain/check/cpp/import.cpp @@ -297,7 +297,7 @@ class CarbonClangDiagnosticConsumer : public clang::DiagnosticConsumer { // A diagnostics renderer based on clang's TextDiagnostic that captures just // the code context (the snippet). class CodeContextRenderer : public clang::TextDiagnostic { - public: + protected: using TextDiagnostic::TextDiagnostic; void emitDiagnosticMessage(