From de195e2100fb53cc644b5e5600a9299893297123 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Sat, 20 Sep 2008 04:23:38 +0000 Subject: Add "category" to BugTypes, allowing bugs to be grouped. Changed casing of many bug names. The convention will be to have bug names (mostly) lower cased, and categories use some capitalization. llvm-svn: 56385 --- clang/lib/Driver/HTMLDiagnostics.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'clang/lib/Driver/HTMLDiagnostics.cpp') diff --git a/clang/lib/Driver/HTMLDiagnostics.cpp b/clang/lib/Driver/HTMLDiagnostics.cpp index 5025e87e596..22d3da9320e 100644 --- a/clang/lib/Driver/HTMLDiagnostics.cpp +++ b/clang/lib/Driver/HTMLDiagnostics.cpp @@ -259,6 +259,15 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D) { R.InsertStrBefore(SourceLocation::getFileLoc(FileID, 0), os.str()); } + const std::string& BugCategory = D.getCategory(); + + if (!BugCategory.empty()) { + std::string s; + llvm::raw_string_ostream os(s); + os << "\n\n"; + R.InsertStrBefore(SourceLocation::getFileLoc(FileID, 0), os.str()); + } + { std::string s; llvm::raw_string_ostream os(s); -- cgit v1.2.3