Avoid changing visiblity when inheriting in CodeContextRenderer (#6219)

This fixes clang-tidy `override-with-different-visibility`.
This commit is contained in:
Boaz Brickner
2025-10-15 15:50:47 +00:00
committed by GitHub
parent ffefa7711c
commit c2d21429f2
+1 -1
View File
@@ -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(