Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | correctly hilight multi-line macro definitions and other | Chris Lattner | 2008-04-16 | 1 | -12/+20 | |
| | | | | | | preprocessor directives. llvm-svn: 49828 | |||||
* | Make HighlightRange correctly handle multi-line ranges. This causes us to | Chris Lattner | 2008-04-16 | 1 | -0/+42 | |
| | | | | | | correctly handle multi-line comments. llvm-svn: 49827 | |||||
* | add a new HighlightRange API, it doesn't handle multiline ranges | Chris Lattner | 2008-04-16 | 1 | -12/+40 | |
| | | | | | | yet, but it will soon... llvm-svn: 49825 | |||||
* | reenable highlighting of (the first line of) comments | Chris Lattner | 2008-04-16 | 1 | -1/+1 | |
| | | | | llvm-svn: 49816 | |||||
* | switch from relexing with the preprocessor to do syntax highlighting to relexing | Chris Lattner | 2008-04-16 | 1 | -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 Lattner | 2008-04-16 | 1 | -11/+30 | |
| | | | | llvm-svn: 49781 | |||||
* | Syntax highlight keywords. I assume someone else will pick less appaling ↵ | Chris Lattner | 2008-04-16 | 1 | -3/+10 | |
| | | | | | | colors. llvm-svn: 49780 | |||||
* | split syntax highlighting of macros from keywords and comments, | Chris Lattner | 2008-04-16 | 1 | -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 of | Chris Lattner | 2008-04-16 | 1 | -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 Lattner | 2008-04-16 | 1 | -33/+30 | |
| | | | | | | rewriter, getting sourcelocations out of the picture. llvm-svn: 49775 | |||||
* | In html::EscapeText, instead of going through the rewriter with | Chris Lattner | 2008-04-16 | 1 | -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. This | Chris Lattner | 2008-04-16 | 1 | -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 Kremenek | 2008-04-15 | 1 | -1/+10 | |
| | | | | llvm-svn: 49742 | |||||
* | finish commenting RewriteRope | Chris Lattner | 2008-04-15 | 1 | -2/+65 | |
| | | | | llvm-svn: 49712 | |||||
* | Fix a corner case that ted hit in -emit-html, rdar://5863212 | Chris Lattner | 2008-04-15 | 1 | -1/+1 | |
| | | | | llvm-svn: 49703 | |||||
* | simplify the implementation of the insert/split operation to return | Chris Lattner | 2008-04-14 | 1 | -98/+98 | |
| | | | | | | | the new RHS directly instead of indirecting through the 'InsertResult' struct. This eliminates InsertResult. llvm-svn: 49694 | |||||
* | Add a bunch of comments, move RewriteRope::MakeRopeString out of line. | Chris Lattner | 2008-04-14 | 1 | -0/+47 | |
| | | | | llvm-svn: 49689 | |||||
* | fix more uninit ivars, who wrote this junk? :) | Chris Lattner | 2008-04-14 | 1 | -2/+2 | |
| | | | | llvm-svn: 49679 | |||||
* | Fix an assertion ted was hitting, due to an uninitialized variable. | Chris Lattner | 2008-04-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 49678 | |||||
* | move a ton of code out of line, from RewriteRope.h -> RewriteRope.cpp | Chris Lattner | 2008-04-14 | 1 | -0/+672 | |
| | | | | llvm-svn: 49664 | |||||
* | remove ifdefs | Chris Lattner | 2008-04-14 | 1 | -35/+0 | |
| | | | | llvm-svn: 49651 | |||||
* | Change the RewriteRope::Chunks data structure from an std::list into | Chris Lattner | 2008-04-14 | 2 | -9/+26 | |
| | | | | | | | | | | | | a nice shiny B+ Tree variant. This fixes the last of the known algorithmic issues with the rewriter, allowing a significant speedup. For example, -emit-html on Ted's 500K .i file speeds up from 26.8s -> 0.64s in a debug build (41x!) and 5.475s -> 0.132s (41x!) in an optimized build. This code is functional but needs to be cleaned up, ifdefs removed, better commented, and moved to a .cpp file. I plan to do this tomorrow. llvm-svn: 49635 | |||||
* | Change the btree algorithm to split nodes bottom-up instead of top-down. | Chris Lattner | 2008-04-13 | 1 | -77/+115 | |
| | | | | | | | | This results in an (IMO) simpler algorithm, results in fewer splits, and is more amenable to delta handling (there is no reason to mutate the tree at all when adding a delta to a position that already exists in the tree). llvm-svn: 49609 | |||||
* | split node splitting from interior node restructuring. | Chris Lattner | 2008-04-13 | 1 | -37/+61 | |
| | | | | llvm-svn: 49608 | |||||
* | final cleanup, the code is now in a reviewable state. | Chris Lattner | 2008-04-12 | 1 | -1/+6 | |
| | | | | llvm-svn: 49592 | |||||
* | move the DeltaTree implementation out of line, remove debugging printfs etc. | Chris Lattner | 2008-04-12 | 1 | -0/+416 | |
| | | | | llvm-svn: 49591 | |||||
* | remove ifdefs | Chris Lattner | 2008-04-12 | 1 | -77/+0 | |
| | | | | llvm-svn: 49587 | |||||
* | Do an initial hack at replacing one of the incredibly inefficient | Chris Lattner | 2008-04-12 | 1 | -2/+13 | |
| | | | | | | | | | | | | | | | (but simple!) datastructures in the rewriter with a more complex but more efficient one. This replaces the Deltas vector with a specialized BTree that makes delta lookups much more efficient. This speeds up -emit-html on a 500K .i file from 157.154 to 27.127 seconds on my machine (5.8x). While this code is functional, it isn't very pretty, I have much refactoring planned for it, and will remove the USE_VECTOR ifdef. Stay tuned. llvm-svn: 49586 | |||||
* | Micro-optimization: Don't use ostringstream when using a C-string literal | Ted Kremenek | 2008-04-09 | 1 | -40/+28 | |
| | | | | | | will work just fine. llvm-svn: 49427 | |||||
* | Don't expand tabs in EscapeText, but rather expand them when writing out | Ted Kremenek | 2008-04-08 | 1 | -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 " " when we are | Ted Kremenek | 2008-04-08 | 1 | -1/+6 | |
| | | | | | | "escaping" spaces. llvm-svn: 49404 | |||||
* | Add ids for line numbers, allowing us to jump to arbitrary line numbers within | Ted Kremenek | 2008-04-07 | 1 | -1/+2 | |
| | | | | | | an HTMLified source file. llvm-svn: 49359 | |||||
* | Tweak message bubble color (gold) | Ted Kremenek | 2008-04-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 49357 | |||||
* | fix css font name, patch by Cédric Venet | Chris Lattner | 2008-04-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 49260 | |||||
* | Some cleanups in EscapeText and AddLineNumbers. Still investigating performance | Ted Kremenek | 2008-04-03 | 1 | -37/+47 | |
| | | | | | | issues. llvm-svn: 49150 | |||||
* | CSS tweaking on blue boxes. | Ted Kremenek | 2008-04-02 | 1 | -1/+2 | |
| | | | | llvm-svn: 49121 | |||||
* | Blue diagnostic boxes. | Ted Kremenek | 2008-04-02 | 1 | -4/+2 | |
| | | | | llvm-svn: 49117 | |||||
* | Added path sequence numbers in HTML output of PathDiagnostics. | Ted Kremenek | 2008-04-02 | 1 | -0/+1 | |
| | | | | llvm-svn: 49116 | |||||
* | Better handling for tabs with message bubbles. | Ted Kremenek | 2008-03-31 | 1 | -2/+4 | |
| | | | | llvm-svn: 49001 | |||||
* | Minor CSS tweaking (smaller h1 tags). | Ted Kremenek | 2008-03-27 | 1 | -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 Kremenek | 2008-03-27 | 1 | -0/+26 | |
| | | | | | | message bubbles. llvm-svn: 48884 | |||||
* | Added <h3> tag in HTML file output that contains the name of the source file. | Ted Kremenek | 2008-03-27 | 1 | -0/+1 | |
| | | | | llvm-svn: 48869 | |||||
* | Minor CSS tweaking: use webkit style CSS properties for shadows/rounded edges | Ted Kremenek | 2008-03-24 | 1 | -2/+4 | |
| | | | | | | for message bubbles. llvm-svn: 48754 | |||||
* | Added HTML highlighting for ranges. | Ted Kremenek | 2008-03-19 | 1 | -0/+3 | |
| | | | | llvm-svn: 48572 | |||||
* | Change colors of HTML message bubble. | Ted Kremenek | 2008-03-19 | 1 | -3/+6 | |
| | | | | llvm-svn: 48563 | |||||
* | More CSS enhancements to HTML code printing. | Ted Kremenek | 2008-03-19 | 1 | -0/+1 | |
| | | | | llvm-svn: 48557 | |||||
* | Misc. cleanups to HTML printing: make code rendered using tables; add | Ted Kremenek | 2008-03-19 | 1 | -26/+23 | |
| | | | | | | better div positioning for messages. llvm-svn: 48555 | |||||
* | Initial experimentation with adding boxed "annotations" to HTMLized source. | Ted Kremenek | 2008-03-19 | 1 | -2/+7 | |
| | | | | llvm-svn: 48540 | |||||
* | Moved generation of html header/footer with builtin CSS to the rewriter library. | Ted Kremenek | 2008-03-19 | 1 | -0/+44 | |
| | | | | llvm-svn: 48537 | |||||
* | More cleanups to the HTML rewriter (with line formatting), with better | Ted Kremenek | 2008-03-19 | 1 | -8/+26 | |
| | | | | | | pretty-printing of line numbers. llvm-svn: 48533 |