summaryrefslogtreecommitdiffstats
path: root/clang/Driver/HTMLPrint.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move <root>/Driver into <root>/tools/clang-cc.Daniel Dunbar2009-03-241-97/+0
| | | | | | Again, I tried to update cmake but it is untested. llvm-svn: 67605
* this massive patch introduces a simple new abstraction: it makesChris Lattner2009-01-171-8/+8
| | | | | | | | | | | | | | | "FileID" a concept that is now enforced by the compiler's type checker instead of yet-another-random-unsigned floating around. This is an important distinction from the "FileID" currently tracked by SourceLocation. *That* FileID may refer to the start of a file or to a chunk within it. The new FileID *only* refers to the file (and its #include stack and eventually #line data), it cannot refer to a chunk. FileID is a completely opaque datatype to all clients, only SourceManager is allowed to poke and prod it. llvm-svn: 62407
* More #include cleaningDaniel Dunbar2008-08-111-0/+1
| | | | | | | | - Drop Expr.h,RecordLayout.h from ASTContext.h (for DeclBase.h and SourceLocation.h) - Move ASTContext constructor into implementation llvm-svn: 54627
* In a report-XXXXX.html, make the title include the name of the file with the ↵Ted Kremenek2008-07-071-1/+4
| | | | | | | | bug. Patch by Jean-Daniel Dupas! http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-July/002166.html llvm-svn: 53184
* simplify ownership of the predefines buffer.Chris Lattner2008-04-191-1/+1
| | | | llvm-svn: 49973
* Restore macro expansion for HTMLPrint by using the original Preprocessor.Ted Kremenek2008-04-181-1/+1
| | | | | | | This is a workaround until we figure out why a freshly create Preprocessor doesn't expand macros from headers. llvm-svn: 49897
* class Preprocessor: Now owns the "predefines" char*; it deletes [] it in its ↵Ted Kremenek2008-04-171-9/+10
| | | | | | | | | | | | | | | | | 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
* Handle text escaping (e.g. & -> &amp;) last, to avoid interactions between ↵Chris Lattner2008-04-171-1/+1
| | | | | | 'replace' operations and insert operations. This fixes a problem with "&;&" on line 666 of the gcc.c example I sent out. llvm-svn: 49874
* Hook up HTMLDiagnostics to use Chris's new syntax highlighting. --html-diagsTed Kremenek2008-04-161-2/+4
| | | | | | | currently doesn't pass in the Preprocessor from the driver, so we don't get syntax highlighting when we create HTMLDiagnostics in that way. llvm-svn: 49796
* split syntax highlighting of macros from keywords and comments,Chris Lattner2008-04-161-1/+3
| | | | | | | | | 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-4/+11
| | | | | | | | 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
* Add -o support for -emit-html, make it not produce a file on an error.Chris Lattner2008-04-161-9/+31
| | | | llvm-svn: 49777
* Remove "--html-test" driver option and its corresponding code; all of thisTed Kremenek2008-04-161-181/+2
| | | | | | functionality has been migrated into "--emit-html" and "--html-diags". llvm-svn: 49776
* speed up -emit-html in a release build by 6.5% by avoiding std::string.Chris Lattner2008-04-161-2/+4
| | | | llvm-svn: 49764
* Fix comment.Steve Naroff2008-04-141-1/+1
| | | | llvm-svn: 49688
* Convert over to new SourceManager::isFromMainFile() instead of doing directTed Kremenek2008-04-141-8/+4
| | | | | | FileID comparison (fixes insidious corner case with chunks). llvm-svn: 49684
* For -emit-html, use the Rewriter to expand tabs.Ted Kremenek2008-04-081-1/+1
| | | | llvm-svn: 49409
* Added HTML highlighting for ranges.Ted Kremenek2008-03-191-2/+32
| | | | llvm-svn: 48572
* Misc. cleanups to HTML printing: make code rendered using tables; addTed Kremenek2008-03-191-14/+8
| | | | | | better div positioning for messages. llvm-svn: 48555
* Initial experimentation with adding boxed "annotations" to HTMLized source.Ted Kremenek2008-03-191-6/+161
| | | | llvm-svn: 48540
* Moved generation of html header/footer with builtin CSS to the rewriter library.Ted Kremenek2008-03-191-33/+1
| | | | llvm-svn: 48537
* More cleanups to the HTML rewriter (with line formatting), with betterTed Kremenek2008-03-191-7/+14
| | | | | | pretty-printing of line numbers. llvm-svn: 48533
* More cleanups to HTML rewriter API: remove the InsertTag method; was too ↵Ted Kremenek2008-03-191-11/+21
| | | | | | | | | 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
* More HTML rewriter cleanups. Preliminary CSS support in code pretty-printing.Ted Kremenek2008-03-181-4/+17
| | | | llvm-svn: 48518
* Some cleanups to the HTMLRewrite API. Added support for printing out lineTed Kremenek2008-03-181-3/+4
| | | | | | numbers (more work to be done on aesthetics). llvm-svn: 48512
* Added HTML pretty-printer.Ted Kremenek2008-03-181-0/+62
llvm-svn: 48507
OpenPOWER on IntegriCloud