summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite/HTMLRewrite.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add CSS for word wrapping of long message bubbles.Ted Kremenek2008-07-111-0/+1
| | | | llvm-svn: 53492
* In a report-XXXXX.html, make the title include the name of the file with the ↵Ted Kremenek2008-07-071-7/+13
| | | | | | | | bug. Patch by Jean-Daniel Dupas! http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-July/002166.html llvm-svn: 53184
* replace form feeds with an <hr> tag.Chris Lattner2008-04-191-1/+5
| | | | llvm-svn: 49975
* Provide a version of html::HighlightMacros that takes a Preprocessor&.Ted Kremenek2008-04-181-16/+17
| | | | llvm-svn: 49896
* Make tab insertion really right: the number of spaces insertedChris Lattner2008-04-181-7/+17
| | | | | | depends on the column number of the start of the tab. llvm-svn: 49891
* Use HTML5 doctype when generating HTML.Ted Kremenek2008-04-181-3/+2
| | | | llvm-svn: 49888
* Updated CSS colors. Patch by Cedric Venet!Ted Kremenek2008-04-181-5/+5
| | | | llvm-svn: 49886
* Fix a problem noticed by Nuno, where we wouldn't escape characters in Chris Lattner2008-04-171-2/+3
| | | | | | macro expansions. llvm-svn: 49877
* class Preprocessor: Now owns the "predefines" char*; it deletes [] it in its ↵Ted Kremenek2008-04-171-11/+18
| | | | | | | | | | | | | | | | | dstor. clang.cpp: InitializePreprocessor now makes a copy of the contents of PredefinesBuffer and passes it to the preprocessor object. clang.cpp: DriverPreprocessorFactory now calls "InitializePreprocessor" instead of this being done in main(). html::HighlightMacros() now takes a PreprocessorFactory, allowing it to conjure up a new Preprocessor to highlight macros. class HTMLDiagnostics now takes a PreprocessorFactory* that it can use for html::HighlightMacros(). Updated clients of HTMLDiagnostics to use this new interface. llvm-svn: 49875
* don't give macros a backgroundChris Lattner2008-04-171-2/+2
| | | | llvm-svn: 49871
* Make sure popup is on top over other spans. wrap long line.Chris Lattner2008-04-171-2/+3
| | | | llvm-svn: 49870
* Add support in HTML macro expansion for hovering over a macro and automaticallyTed Kremenek2008-04-171-3/+6
| | | | | | | | | | expanding its definition. This is a pure CSS solution. Tested on IE7, Firefox 3b4, and Safari 3.1. Patch by Cedric Venet! llvm-svn: 49865
* insert macro expansions into floating divs. For now, they are always displayed,Chris Lattner2008-04-171-4/+29
| | | | | | but we want some javascript or something toggle their display. llvm-svn: 49836
* correctly hilight multi-line macro definitions and otherChris Lattner2008-04-161-12/+20
| | | | | | preprocessor directives. llvm-svn: 49828
* Make HighlightRange correctly handle multi-line ranges. This causes us to Chris Lattner2008-04-161-0/+42
| | | | | | correctly handle multi-line comments. llvm-svn: 49827
* add a new HighlightRange API, it doesn't handle multiline rangesChris Lattner2008-04-161-12/+40
| | | | | | yet, but it will soon... llvm-svn: 49825
* reenable highlighting of (the first line of) commentsChris Lattner2008-04-161-1/+1
| | | | llvm-svn: 49816
* switch from relexing with the preprocessor to do syntax highlighting to relexingChris Lattner2008-04-161-20/+19
| | | | | | | | with the Lexer. This is cheaper and gives us some advantages. For now we start highlighting preprocessor directives (which need improvement), and disable comments. Comments to be restored later. llvm-svn: 49815
* Take a stab at highlighting #defines and #includes. This doesn't work yet.Chris Lattner2008-04-161-11/+30
| | | | llvm-svn: 49781
* Syntax highlight keywords. I assume someone else will pick less appaling ↵Chris Lattner2008-04-161-3/+10
| | | | | | colors. llvm-svn: 49780
* split syntax highlighting of macros from keywords and comments,Chris Lattner2008-04-161-3/+69
| | | | | | | | | allowing us to use a cheaper means to highlight keywords and making it so that comments won't foul up macro expansions. Start highlighting macro expansions. llvm-svn: 49779
* Add a mode of hackily syntax highlighting comments. This has a number ofChris Lattner2008-04-161-2/+43
| | | | | | | | problems, including the fact that it doesn't work well with multi-line comments due to Ted's crazy table. However, that could be fixed, and it does work with single-line ones :). llvm-svn: 49778
* Switch AddLineNumbers to hack on a rewritebuffer instead of on a Chris Lattner2008-04-161-33/+30
| | | | | | rewriter, getting sourcelocations out of the picture. llvm-svn: 49775
* In html::EscapeText, instead of going through the rewriter withChris Lattner2008-04-161-39/+29
| | | | | | | | a SourceLocation to get a RewriteBuffer, poke the RewriteBuffer with an offset directly. THis is no faster, but results in cleaner code. llvm-svn: 49774
* switch AddLineNumber to use a SmallString instead of sstream. ThisChris Lattner2008-04-161-10/+12
| | | | | | | speeds up -emit-html on ted's testcase by 29% (.138 -> 0.107s) in a release build. llvm-svn: 49767
* For HTML diagnostics, output more information about a bug report.Ted Kremenek2008-04-151-1/+10
| | | | llvm-svn: 49742
* Micro-optimization: Don't use ostringstream when using a C-string literalTed Kremenek2008-04-091-40/+28
| | | | | | will work just fine. llvm-svn: 49427
* Don't expand tabs in EscapeText, but rather expand them when writing outTed Kremenek2008-04-081-3/+14
| | | | | | | the HTML file. This should reduce the amount of memory pressure on the rewriter for files that have a lot of tabs. llvm-svn: 49406
* When substituting tabs during HTMLification, only add "&nbsp;" when we areTed Kremenek2008-04-081-1/+6
| | | | | | "escaping" spaces. llvm-svn: 49404
* Add ids for line numbers, allowing us to jump to arbitrary line numbers withinTed Kremenek2008-04-071-1/+2
| | | | | | an HTMLified source file. llvm-svn: 49359
* Tweak message bubble color (gold)Ted Kremenek2008-04-071-1/+1
| | | | llvm-svn: 49357
* fix css font name, patch by Cédric VenetChris Lattner2008-04-061-1/+1
| | | | llvm-svn: 49260
* Some cleanups in EscapeText and AddLineNumbers. Still investigating performanceTed Kremenek2008-04-031-37/+47
| | | | | | issues. llvm-svn: 49150
* CSS tweaking on blue boxes.Ted Kremenek2008-04-021-1/+2
| | | | llvm-svn: 49121
* Blue diagnostic boxes.Ted Kremenek2008-04-021-4/+2
| | | | llvm-svn: 49117
* Added path sequence numbers in HTML output of PathDiagnostics.Ted Kremenek2008-04-021-0/+1
| | | | llvm-svn: 49116
* Better handling for tabs with message bubbles.Ted Kremenek2008-03-311-2/+4
| | | | llvm-svn: 49001
* Minor CSS tweaking (smaller h1 tags).Ted Kremenek2008-03-271-1/+3
| | | | | | Bug fix in EscapeText (for std::string) where spaces were not properly emitted. llvm-svn: 48889
* Add html::EscapeText for std::string; use this function to escape text in ↵Ted Kremenek2008-03-271-0/+26
| | | | | | message bubbles. llvm-svn: 48884
* Added <h3> tag in HTML file output that contains the name of the source file.Ted Kremenek2008-03-271-0/+1
| | | | llvm-svn: 48869
* Minor CSS tweaking: use webkit style CSS properties for shadows/rounded edgesTed Kremenek2008-03-241-2/+4
| | | | | | for message bubbles. llvm-svn: 48754
* Added HTML highlighting for ranges.Ted Kremenek2008-03-191-0/+3
| | | | llvm-svn: 48572
* Change colors of HTML message bubble.Ted Kremenek2008-03-191-3/+6
| | | | llvm-svn: 48563
* More CSS enhancements to HTML code printing.Ted Kremenek2008-03-191-0/+1
| | | | llvm-svn: 48557
* Misc. cleanups to HTML printing: make code rendered using tables; addTed Kremenek2008-03-191-26/+23
| | | | | | better div positioning for messages. llvm-svn: 48555
* Initial experimentation with adding boxed "annotations" to HTMLized source.Ted Kremenek2008-03-191-2/+7
| | | | llvm-svn: 48540
* Moved generation of html header/footer with builtin CSS to the rewriter library.Ted Kremenek2008-03-191-0/+44
| | | | llvm-svn: 48537
* More cleanups to the HTML rewriter (with line formatting), with betterTed Kremenek2008-03-191-8/+26
| | | | | | pretty-printing of line numbers. llvm-svn: 48533
* Change "style" to "class" in HTML output.Ted Kremenek2008-03-191-2/+2
| | | | llvm-svn: 48525
* More cleanups to HTML rewriter API: remove the InsertTag method; was too ↵Ted Kremenek2008-03-191-76/+8
| | | | | | | | | complicated and clients can achieve a cleaner design just by inserting tags directly. Reserve the "html" namespace for meta-level operations (e.g., escaping text, etc.) llvm-svn: 48524
OpenPOWER on IntegriCloud