mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-15 04:00:56 +00:00
Embed "DESC" tag in HTML reports.
llvm-svn: 49084
This commit is contained in:
parent
a7fa4d446a
commit
e6eed29125
@ -131,6 +131,16 @@ void HTMLDiagnostics::HandlePathDiagnostic(const PathDiagnostic& D) {
|
||||
|
||||
os << "/" << html::EscapeText(Entry->getName()) << "</h1>\n";
|
||||
|
||||
R.InsertStrBefore(SourceLocation::getFileLoc(FileID, 0), os.str());
|
||||
}
|
||||
|
||||
// Add the bug description.
|
||||
|
||||
const std::string& BugDesc = D.getDescription();
|
||||
|
||||
if (!BugDesc.empty()) {
|
||||
std::ostringstream os;
|
||||
os << "<!-- BUGDESC " << BugDesc << " -->\n";
|
||||
R.InsertStrBefore(SourceLocation::getFileLoc(FileID, 0), os.str());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user