summaryrefslogtreecommitdiffstats
path: root/clang/Driver/TextDiagnosticBuffer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add a libDriver, for now only move the text diangostics stuff from Driver to ↵Nico Weber2008-08-051-41/+0
| | | | | | there llvm-svn: 54383
* Don't attribute in file headers anymore. See llvmdev for theChris Lattner2007-12-291-2/+2
| | | | | | discussion of this change. llvm-svn: 45410
* TargetInfo no longer includes a reference to SourceManager.Ted Kremenek2007-12-121-6/+7
| | | | | | | | | | | | | | | Moved all clients of Diagnostics to use FullSourceLoc instead of SourceLocation. Added many utility methods to FullSourceLoc to provide shorthand for: FullLoc.getManager().someMethod(FullLoc.getLocation()); instead we have: FullLoc.someMethod(); Modified TextDiagnostics (and related classes) to use this short-hand. llvm-svn: 44957
* Modified the internals of Diagnostic and DiagnosticClient to useTed Kremenek2007-12-111-1/+1
| | | | | | | | | | | | | | | | SourceManager*'s instead of SourceManager&'s. This allows the client specify a NULL SourceManager when using a default constructed SourceLocation. Thus the SourceManager can be NULL when the SourceLocation's isValid() == false. The interface to most clients of Diagnostic remains the same. Diagnostic::Report() is overload to either accept a SourceLocation and a SourceManager&, or neither. Thus clients that do not have a SourceManager cannot specify a SourceLocation. Modified TextDiagnostics* to use this new interface. Modified the driver to not passed in SourceManager when warning about "-I-". llvm-svn: 44887
* Mega-patch: ripped SourceManager out of Diagnostic/DiagnosticClient. NowTed Kremenek2007-12-111-0/+1
| | | | | | | | | | | | | | | | | | SourceManager is passed by reference, allowing the SourceManager to be associated with a specific translation unit, and not the entire execution of the driver. Modified all users of Diagnostics to comply with this new interface. Integrated SourceManager as a member variable of TargetInfo. TargetInfo will eventually be associated with a single translation unit (just like SourceManager). Made the SourceManager reference in ASTContext private. Provided accessor getSourceManager() for clients to use instead. Modified clients to comply with new interface. llvm-svn: 44878
* start partitioning the diagnostics into two classes: thoseChris Lattner2007-11-301-5/+6
| | | | | | | | that are builtin and those that are aren't. This is a bunch of API refactoring that will make this possible, but there is no functionality change yet. llvm-svn: 44473
* Submitted by: Bill WendlingBill Wendling2007-06-271-0/+38
Reviewed by: Chris Lattner - Added a new diagnostic client, TextDiagnosticBuffer. It buffers all reported diagnostics. - Use the new diagnostic client to check that expected diagnostics are actually emitted. The way this is done is to put the expected diagnostic in a comment on the line you expect it to be emitted for. Like this: int X = A; // expected-warning {{blah}} - Use -parse-ast-check to use this feature. llvm-svn: 39678
OpenPOWER on IntegriCloud