aboutsummaryrefslogtreecommitdiff
path: root/Driver/HTMLDiagnostics.cpp
AgeCommit message (Collapse)Author
2008-08-24Moved HTMLDiagnostics to lib/Driver.Zhongxing Xu
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55274 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-11More #include cleaningDaniel Dunbar
- Drop Expr.h,RecordLayout.h from ASTContext.h (for DeclBase.h and SourceLocation.h) - Move ASTContext constructor into implementation git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54627 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-29Fix regression in range highlighting in HTML output.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54181 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-23Modified HTMLDiagnostics to also perform syntax highlighting for errors in ↵Ted Kremenek
header files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53965 91177308-0d34-0410-b5e6-96231b3b80d8
2008-07-07In a report-XXXXX.html, make the title include the name of the file with the ↵Ted Kremenek
bug. Patch by Jean-Daniel Dupas! http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-July/002166.html git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53184 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-06Improve HTMLDiagnostics by understanding the "Below" hint.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50783 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-02Output better paths to display in bug reports and compute a commonTed Kremenek
prefix for all files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50592 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-30added preliminary diagnostics in scan-build results to denote whetherTed Kremenek
a CF memory leak occurred with GC enabled, etc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50507 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-24Better handling for directory names in HTML diagnostics. Work in progress.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50234 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-22PathDiagnosticClients now retain ownership of passed PathDiagnostics, requiringTed Kremenek
them to not be stack-allocated. HTMLDiagnostics now batches PathDiagnostics before emitting HTML in its dtor. This is a workaround for a problem when we trampled the Preprocessor state when highlighting macros (sometimes resulting in an assertion failure). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50102 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-20html::EscapeText (using the Rewriter) now replaces tabs by default.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49982 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-18Fixed range highlighting bug in HTML diagnostics.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49893 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-17class Preprocessor: Now owns the "predefines" char*; it deletes [] it in its ↵Ted Kremenek
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49875 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-17Temporarily disable macro expansion in the HTML output of HTMLDiagnostics toTed Kremenek
avoid corrupting Preprocessor state. Working on a fix. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49864 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-17HAve HTMLDiagnostics use html::HighlightRange to highlight message ranges.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49863 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-16Hook up HTMLDiagnostics to use Chris's new syntax highlighting. --html-diagsTed Kremenek
currently doesn't pass in the Preprocessor from the driver, so we don't get syntax highlighting when we create HTMLDiagnostics in that way. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49796 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-15For HTML diagnostics, output more information about a bug report.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49742 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-14HTMLDiagnostics now uses the new "getCanonicalID()", "isFromMainFileID()" ↵Ted Kremenek
methods from SourceManager when doing HTML pretty-printing. This resolves an insidious bug when presenting error reports that only occurred in large source files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49683 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-08Don't expand tabs in EscapeText, but rather expand them when writing outTed Kremenek
the HTML file. This should reduce the amount of memory pressure on the rewriter for files that have a lot of tabs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49406 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-08Improve range highlighting in HTMLDiagnostic to correctly highlight rangesTed Kremenek
that span multiple lines by inserting multiple "</span>" and "<span>" tags. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49403 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-03Use logical line number for BUGLINE.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49178 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-03Added guard for printing out PathDiagnostics whose last element ends withTed Kremenek
a piece with a SourceLocation that does not have a FileID. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49151 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02Added path sequence numbers in HTML output of PathDiagnostics.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49116 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02Embed BUGLINE, BUGFILE, BUGPATHLENGTH in the emitted HTML file.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49114 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02Put "BUGDESC" comment tag on its own line.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49103 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-02Embed "DESC" tag in HTML reports.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49084 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-31Embed linkable IDs in message bubbles.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49005 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-31Better handling for tabs with message bubbles.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49001 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-31When emitting HTML messages, take into account margin fusing due to tabs.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48998 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-27For HTMLDiagnostics, when emitting the name of the directory, substitute the ↵Ted Kremenek
current working directory for "." git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48888 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-27Add html::EscapeText for std::string; use this function to escape text in ↵Ted Kremenek
message bubbles. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48884 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-27Output directory as well as file name.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48870 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-27Added <h3> tag in HTML file output that contains the name of the source file.Ted Kremenek
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48869 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-27Added "HTMLDiagnostic", a generic DiagnosticClient (that also implements ↵Ted Kremenek
PathDiagnostic) so that all diagnostics can be piped to HTML files instead of as text diagnostics using --html-diags. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48865 91177308-0d34-0410-b5e6-96231b3b80d8