summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/HTMLDiagnostics.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use the llvm coding convention for indentation for switch.Mike Stump2010-01-201-12/+12
| | | | llvm-svn: 93966
* Remove VISIBILITY_HIDDEN from anonymous namespaces in libFrontend.Benjamin Kramer2009-11-281-2/+1
| | | | llvm-svn: 90033
* Fix recently introduced use-after-free error reported in ↵Ted Kremenek2009-11-131-0/+2
| | | | | | <rdar://problem/7387478>. llvm-svn: 87072
* Convert CreateAnalysisConsumer and friends to just take a const ↵Daniel Dunbar2009-11-051-8/+10
| | | | | | Preprocessor&, and simplify. llvm-svn: 86112
* Remove unused SetPreprocessor method.Daniel Dunbar2009-11-051-2/+0
| | | | llvm-svn: 86111
* Acting on Daniel's nagging, remove PathDiagnosticClientFactory() andTed Kremenek2009-11-051-49/+21
| | | | | | | | migrate work in the destructors of PathDiagnosticClients from their destructors to FlushReports(). The destructors now currently call FlushReports(); this will be fixed in a subsequent patch. llvm-svn: 86108
* Kill PreprocessorFactory, which was both morally repugnant and totally unused.Daniel Dunbar2009-11-041-9/+1
| | | | llvm-svn: 86076
* Remove use of std::ofstream in HTMLDiagnostics.cpp.Ted Kremenek2009-10-081-20/+17
| | | | llvm-svn: 83560
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-118/+118
| | | | llvm-svn: 81346
* API changes to match llvm ToT.Chris Lattner2009-08-231-4/+4
| | | | llvm-svn: 79868
* Replace cerr with errs().Benjamin Kramer2009-08-231-6/+5
| | | | llvm-svn: 79854
* Remove now unnecessary helper methods.Daniel Dunbar2009-08-191-4/+4
| | | | llvm-svn: 79460
* Emit a special 'BUGMETAEND' comment to aid in the postprocessing of HTML bug ↵Ted Kremenek2009-08-031-39/+20
| | | | | | reports. llvm-svn: 78021
* (1) Enable PlistDiagnostics to take an option "PathDiagnosticClientFactory"Ted Kremenek2009-07-271-8/+48
| | | | | | | | | | | | | | | object that it can use to forward PathDiagnostics for further processing. Along with this feature, the PlistDiagnostics object logs which files are created by the forwarding of the PathDiagnostics. (2) Create a new PathDiagnosticClientFactory object for HTMLDiagnostics, allowing other PathDiagnosticClients to forward PathDiagnostics through an opaque interface. (3) Create a "plist-html" diagnostics option in AnalysisConsumer to allow the logging of HTML files created in a hybrid Plist+HTML diagnostic client. llvm-svn: 77264
* refactor htmldiags to be created up front like the other diag clients.Chris Lattner2009-04-171-15/+8
| | | | llvm-svn: 69379
* Change Lexer::MeasureTokenLength to take a LangOptions reference.Chris Lattner2009-04-141-4/+4
| | | | | | | | | | | | | | | | | | This allows it to accurately measure tokens, so that we get: t.cpp:8:13: error: unknown type name 'X' static foo::X P; ~~~~~^ instead of the woefully inferior: t.cpp:8:13: error: unknown type name 'X' static foo::X P; ~~~~ ^ Most of this is just plumbing to push the reference around. llvm-svn: 69099
* Also "flatten" PathLocations fed to the HTMLDiagnosticClient. We need a betterTed Kremenek2009-04-021-0/+1
| | | | | | long-term strategy, but this should work for now. llvm-svn: 68297
* - Changed PathDiagnosticPiece::getLocation() to return a PathDiagnosticLocationTed Kremenek2009-04-011-17/+18
| | | | | | | | | instead of a FullSourceLoc. This resulted in a bunch of small edits in various clients. - Updated BugReporter to include an alternate PathDiagnostic generation algorithm for PathDiagnosticClients desiring more control-flow pieces. llvm-svn: 68193
* BugReporter:Ted Kremenek2009-03-101-49/+135
| | | | | | | | | | | | - Group control flow and event PathDiagnosticPieces into PathDiagnosticMacroPieces. - Afterwards, eliminate any PathDiagnosticMacroPieces from a PathDiagnostic that contain no informative events. HTMLDiagnostics: - Use new information about PathDiagnosticMacroPieces to specially format message bubbles for macro expansions containing interesting events. llvm-svn: 66524
* Handle "Macro" PathDiagnosticPiece kind when getting string identifier.Ted Kremenek2009-03-101-4/+3
| | | | llvm-svn: 66518
* Resize message bubble back to original size.Ted Kremenek2009-03-021-1/+1
| | | | llvm-svn: 65892
* Adjust HTML message bubbles to utilize information from ↵Ted Kremenek2009-03-021-12/+26
| | | | | | PathDiagnosticPiece::Kind. llvm-svn: 65891
* Update HTML diagnostics to honor the different between 'event' and ↵Ted Kremenek2009-03-021-1/+7
| | | | | | 'control-flow' diagnostics. llvm-svn: 65877
* Rename lib/Driver (etc) to lib/Frontend in prep for the *actual*Daniel Dunbar2009-03-021-0/+502
driver taking lib/Driver. llvm-svn: 65811
OpenPOWER on IntegriCloud