================
@@ -33,35 +35,36 @@ namespace clang {
 /// DiagnosticClient is implemented through this class as is diagnostic
 /// printing coming out of libclang.
 class TextDiagnostic : public DiagnosticRenderer {
-  raw_ostream &OS;
+  formatted_raw_ostream &OS;
   const Preprocessor *PP;
 
 public:
-  TextDiagnostic(raw_ostream &OS, const LangOptions &LangOpts,
+  TextDiagnostic(formatted_raw_ostream &OS, const LangOptions &LangOpts,
                  DiagnosticOptions &DiagOpts, const Preprocessor *PP = 
nullptr);
 
   ~TextDiagnostic() override;
 
   struct StyleRange {
     unsigned Start;
     unsigned End;
-    enum llvm::raw_ostream::Colors Color;
-    StyleRange(unsigned S, unsigned E, enum llvm::raw_ostream::Colors C)
-        : Start(S), End(E), Color(C){};
+    enum llvm::formatted_raw_ostream::Colors Color;
+    StyleRange(unsigned S, unsigned E,
+               enum llvm::formatted_raw_ostream::Colors C)
+        : Start(S), End(E), Color(C) {};
----------------
Sirraide wrote:

```suggestion
    enum formatted_raw_ostream::Colors Color;
    StyleRange(unsigned S, unsigned E,
               enum formatted_raw_ostream::Colors C)
        : Start(S), End(E), Color(C) {};
```

https://github.com/llvm/llvm-project/pull/164935
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to