diff options
| author | Alp Toker <alp@nuanti.com> | 2014-06-21 23:31:52 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2014-06-21 23:31:52 +0000 |
| commit | 339f28387aa3c334a3290561c89fba6bbe458494 (patch) | |
| tree | bbe6b36423bc816a8ebe4b3121c17319b6f2e9d2 /include | |
| parent | 3475d0cd3aef473c9b8f6b0cc3662944c4cdd4aa (diff) | |
| download | clang-339f28387aa3c334a3290561c89fba6bbe458494.tar.gz clang-339f28387aa3c334a3290561c89fba6bbe458494.tar.bz2 clang-339f28387aa3c334a3290561c89fba6bbe458494.tar.xz | |
TextDiagnostic: print remark level diagnostics in bold too
The purpose of bolding these is to make them visually distinct from
continuations (supplemental note diagnostics). Therefore, the bolding applies
to all severities _including_ remarks -- it's not in any way an indicator of
priority. Also simplify and comment.
No tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -rw-r--r-- | include/clang/Frontend/TextDiagnostic.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/clang/Frontend/TextDiagnostic.h b/include/clang/Frontend/TextDiagnostic.h index 2aa95760fd..a76c2bb984 100644 --- a/include/clang/Frontend/TextDiagnostic.h +++ b/include/clang/Frontend/TextDiagnostic.h @@ -63,18 +63,16 @@ public: /// formatting of their diagnostic messages. /// /// \param OS Where the message is printed - /// \param Level Used to colorizing the message + /// \param IsSupplemental true if this is a continuation note diagnostic /// \param Message The text actually printed /// \param CurrentColumn The starting column of the first line, accounting /// for any prefix. /// \param Columns The number of columns to use in line-wrapping, 0 disables /// all line-wrapping. /// \param ShowColors Enable colorizing of the message. - static void printDiagnosticMessage(raw_ostream &OS, - DiagnosticsEngine::Level Level, - StringRef Message, - unsigned CurrentColumn, unsigned Columns, - bool ShowColors); + static void printDiagnosticMessage(raw_ostream &OS, bool IsSupplemental, + StringRef Message, unsigned CurrentColumn, + unsigned Columns, bool ShowColors); protected: void emitDiagnosticMessage(SourceLocation Loc,PresumedLoc PLoc, |
