| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | make the -rewrite-test a bit more interesting: it now | Chris Lattner | 2008-10-12 | 1 | -3/+50 | |
| | | | | | | | | wraps comments in <i> tags. Extend rewrite tokens to support this minimal functionality. llvm-svn: 57409 | |||||
| * | start implementing a token rewriter. At this point, it just reads in a file | Chris Lattner | 2008-10-12 | 1 | -0/+53 | |
| | | | | | | | and lets a client iterate over it. llvm-svn: 57407 | |||||
| * | Change how raw lexers are handled: instead of creating them and then | Chris Lattner | 2008-10-12 | 1 | -4/+4 | |
| | | | | | | | | | | | | using LexRawToken, create one and use LexFromRawLexer. This avoids twiddling the RawLexer flag around and simplifies some code (even speeding raw lexing up a tiny bit). This change also improves the token paster to use a Lexer on the stack instead of new/deleting it. llvm-svn: 57393 | |||||
| * | Add #include (introduced by dependence on DeclGroup) | Ted Kremenek | 2008-10-07 | 1 | -0/+1 | |
| | | | | | llvm-svn: 57274 | |||||
| * | add a new Rewriter::getRewritenText method that returns the text for a range | Chris Lattner | 2008-10-03 | 1 | -0/+49 | |
| | | | | | | | that includes any edits in the range. llvm-svn: 57037 | |||||
| * | Fixed an offset calculation error. | Zhongxing Xu | 2008-09-16 | 1 | -1/+1 | |
| | | | | | llvm-svn: 56242 | |||||
| * | Patch by Csaba Hruska! | Ted Kremenek | 2008-09-13 | 2 | -5/+8 | |
| | | | | | | | | "Here is a patch what replaces std::ostream with llvm::raw_ostream. This patch covers the AST library, but ignores Analysis lib." llvm-svn: 56185 | |||||
| * | Patch by Kovarththanan Rajaratnam! | Ted Kremenek | 2008-08-31 | 1 | -0/+10 | |
| | | | | | | | "This minor patch adds markup of string literals with a red colour." llvm-svn: 55589 | |||||
| * | honor EscapeSpaces in 2nd overload of EscapeText() | Nico Weber | 2008-08-16 | 1 | -3/+8 | |
| | | | | | llvm-svn: 54854 | |||||
| * | Add CSS for word wrapping of long message bubbles. | Ted Kremenek | 2008-07-11 | 1 | -0/+1 | |
| | | | | | llvm-svn: 53492 | |||||
| * | In a report-XXXXX.html, make the title include the name of the file with the ↵ | Ted Kremenek | 2008-07-07 | 1 | -7/+13 | |
| | | | | | | | | | bug. Patch by Jean-Daniel Dupas! http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-July/002166.html llvm-svn: 53184 | |||||
| * | Fix rewrite rope to keep the leaf list up-to-date as it erases leaves | Chris Lattner | 2008-05-28 | 1 | -5/+27 | |
| | | | | | | | from the rope. rdar://5952468 llvm-svn: 51651 | |||||
| * | add an assertion | Chris Lattner | 2008-05-28 | 1 | -0/+1 | |
| | | | | | llvm-svn: 51645 | |||||
| * | fix a nasty off-by-one error. | Chris Lattner | 2008-05-23 | 1 | -1/+1 | |
| | | | | | llvm-svn: 51519 | |||||
| * | fix an inconsistency computing offsets that caused a crash on rewrite-nest.m | Chris Lattner | 2008-05-23 | 1 | -1/+1 | |
| | | | | | llvm-svn: 51514 | |||||
| * | Fix rdar://5919567: assertion failure: split didn't occur before erase! | Chris Lattner | 2008-05-08 | 1 | -1/+3 | |
| | | | | | llvm-svn: 50839 | |||||
| * | fix a rewriter crash on zero length files. | Chris Lattner | 2008-04-23 | 1 | -0/+1 | |
| | | | | | llvm-svn: 50126 | |||||
| * | replace form feeds with an <hr> tag. | Chris Lattner | 2008-04-19 | 1 | -1/+5 | |
| | | | | | llvm-svn: 49975 | |||||
| * | Provide a version of html::HighlightMacros that takes a Preprocessor&. | Ted Kremenek | 2008-04-18 | 1 | -16/+17 | |
| | | | | | llvm-svn: 49896 | |||||
| * | Make tab insertion really right: the number of spaces inserted | Chris Lattner | 2008-04-18 | 1 | -7/+17 | |
| | | | | | | | depends on the column number of the start of the tab. llvm-svn: 49891 | |||||
| * | Use HTML5 doctype when generating HTML. | Ted Kremenek | 2008-04-18 | 1 | -3/+2 | |
| | | | | | llvm-svn: 49888 | |||||
| * | Updated CSS colors. Patch by Cedric Venet! | Ted Kremenek | 2008-04-18 | 1 | -5/+5 | |
| | | | | | llvm-svn: 49886 | |||||
| * | Fix a problem noticed by Nuno, where we wouldn't escape characters in | Chris Lattner | 2008-04-17 | 1 | -2/+3 | |
| | | | | | | | macro expansions. llvm-svn: 49877 | |||||
| * | class Preprocessor: Now owns the "predefines" char*; it deletes [] it in its ↵ | Ted Kremenek | 2008-04-17 | 1 | -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 background | Chris Lattner | 2008-04-17 | 1 | -2/+2 | |
| | | | | | llvm-svn: 49871 | |||||
| * | Make sure popup is on top over other spans. wrap long line. | Chris Lattner | 2008-04-17 | 1 | -2/+3 | |
| | | | | | llvm-svn: 49870 | |||||
| * | Add support in HTML macro expansion for hovering over a macro and automatically | Ted Kremenek | 2008-04-17 | 1 | -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 Lattner | 2008-04-17 | 1 | -4/+29 | |
| | | | | | | | but we want some javascript or something toggle their display. llvm-svn: 49836 | |||||
| * | 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 | |||||

