aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/HTMLDiagnostics.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-11-28Remove VISIBILITY_HIDDEN from anonymous namespaces in libFrontend.Benjamin Kramer1-2/+1
llvm-svn: 90033
2009-11-13Fix recently introduced use-after-free error reported in ↵Ted Kremenek1-0/+2
<rdar://problem/7387478>. llvm-svn: 87072
2009-11-05Convert CreateAnalysisConsumer and friends to just take a const ↵Daniel Dunbar1-8/+10
Preprocessor&, and simplify. llvm-svn: 86112
2009-11-05Remove unused SetPreprocessor method.Daniel Dunbar1-2/+0
llvm-svn: 86111
2009-11-05Acting on Daniel's nagging, remove PathDiagnosticClientFactory() andTed Kremenek1-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
2009-11-04Kill PreprocessorFactory, which was both morally repugnant and totally unused.Daniel Dunbar1-9/+1
llvm-svn: 86076
2009-10-08Remove use of std::ofstream in HTMLDiagnostics.cpp.Ted Kremenek1-20/+17
llvm-svn: 83560
2009-09-09Remove tabs, and whitespace cleanups.Mike Stump1-118/+118
llvm-svn: 81346
2009-08-23API changes to match llvm ToT.Chris Lattner1-4/+4
llvm-svn: 79868
2009-08-23Replace cerr with errs().Benjamin Kramer1-6/+5
llvm-svn: 79854
2009-08-19Remove now unnecessary helper methods.Daniel Dunbar1-4/+4
llvm-svn: 79460
2009-08-03Emit a special 'BUGMETAEND' comment to aid in the postprocessing of HTML bug ↵Ted Kremenek1-39/+20
reports. llvm-svn: 78021
2009-07-27(1) Enable PlistDiagnostics to take an option "PathDiagnosticClientFactory"Ted Kremenek1-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
2009-04-17refactor htmldiags to be created up front like the other diag clients.Chris Lattner1-15/+8
llvm-svn: 69379
2009-04-14Change Lexer::MeasureTokenLength to take a LangOptions reference.Chris Lattner1-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
2009-04-02Also "flatten" PathLocations fed to the HTMLDiagnosticClient. We need a betterTed Kremenek1-0/+1
long-term strategy, but this should work for now. llvm-svn: 68297
2009-04-01- Changed PathDiagnosticPiece::getLocation() to return a PathDiagnosticLocationTed Kremenek1-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
2009-03-10BugReporter:Ted Kremenek1-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
2009-03-10Handle "Macro" PathDiagnosticPiece kind when getting string identifier.Ted Kremenek1-4/+3
llvm-svn: 66518
2009-03-02Resize message bubble back to original size.Ted Kremenek1-1/+1
llvm-svn: 65892
2009-03-02Adjust HTML message bubbles to utilize information from ↵Ted Kremenek1-12/+26
PathDiagnosticPiece::Kind. llvm-svn: 65891
2009-03-02Update HTML diagnostics to honor the different between 'event' and ↵Ted Kremenek1-1/+7
'control-flow' diagnostics. llvm-svn: 65877
2009-03-02Rename lib/Driver (etc) to lib/Frontend in prep for the *actual*Daniel Dunbar1-0/+502
driver taking lib/Driver. llvm-svn: 65811