[cfe-commits] r49359 - /cfe/trunk/lib/Rewrite/HTMLRewrite.cpp
Ted Kremenek
kremenek at apple.com
Mon Apr 7 16:53:30 PDT 2008
Author: kremenek
Date: Mon Apr 7 18:53:30 2008
New Revision: 49359
URL: http://llvm.org/viewvc/llvm-project?rev=49359&view=rev
Log:
Add ids for line numbers, allowing us to jump to arbitrary line numbers within
an HTMLified source file.
Modified:
cfe/trunk/lib/Rewrite/HTMLRewrite.cpp
Modified: cfe/trunk/lib/Rewrite/HTMLRewrite.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/HTMLRewrite.cpp?rev=49359&r1=49358&r2=49359&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/HTMLRewrite.cpp (original)
+++ cfe/trunk/lib/Rewrite/HTMLRewrite.cpp Mon Apr 7 18:53:30 2008
@@ -99,7 +99,8 @@
SourceLocation B, SourceLocation E) {
std::ostringstream os;
- os << "<tr><td class=\"num\">" << LineNo << "</td><td class=\"line\">";
+ os << "<tr><td class=\"num\" id=\"LN" << LineNo << "\">"
+ << LineNo << "</td><td class=\"line\">";
if (B == E) { // Handle empty lines.
os << " </td></tr>";
More information about the cfe-commits
mailing list