Skip to content

Commit c2d2142

Browse files
authored
Avoid changing visiblity when inheriting in CodeContextRenderer (#6219)
This fixes clang-tidy `override-with-different-visibility`.
1 parent ffefa77 commit c2d2142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolchain/check/cpp/import.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class CarbonClangDiagnosticConsumer : public clang::DiagnosticConsumer {
297297
// A diagnostics renderer based on clang's TextDiagnostic that captures just
298298
// the code context (the snippet).
299299
class CodeContextRenderer : public clang::TextDiagnostic {
300-
public:
300+
protected:
301301
using TextDiagnostic::TextDiagnostic;
302302

303303
void emitDiagnosticMessage(

0 commit comments

Comments
 (0)