summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/HTMLDiagnostics.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-09-20 04:23:38 +0000
committerTed Kremenek <kremenek@apple.com>2008-09-20 04:23:38 +0000
commitde195e2100fb53cc644b5e5600a9299893297123 (patch)
tree9d9df712a8ad325c4be57e3ed64bd5cfce52bd94 /clang/lib/Driver/HTMLDiagnostics.cpp
parent9af7b3daec41c994b6d78a5b029ab094f03229fe (diff)
downloadbcm5719-llvm-de195e2100fb53cc644b5e5600a9299893297123.tar.gz
bcm5719-llvm-de195e2100fb53cc644b5e5600a9299893297123.zip
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
Diffstat (limited to 'clang/lib/Driver/HTMLDiagnostics.cpp')
-rw-r--r--clang/lib/Driver/HTMLDiagnostics.cpp9
1 files changed, 9 insertions, 0 deletions
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<!-- BUGCATEGORY " << BugCategory << " -->\n";
+ R.InsertStrBefore(SourceLocation::getFileLoc(FileID, 0), os.str());
+ }
+
{
std::string s;
llvm::raw_string_ostream os(s);
OpenPOWER on IntegriCloud