summaryrefslogtreecommitdiffstats
path: root/clang/Driver/TextDiagnostics.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add a libDriver, for now only move the text diangostics stuff from Driver to ↵Nico Weber2008-08-051-53/+0
| | | | | | there llvm-svn: 54383
* Fix PR1966 by ignoring non-error diagnostics from system headers even if ↵Chris Lattner2008-02-031-13/+8
| | | | | | | | they are *mapped* onto errors. llvm-svn: 46686
* 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-3/+2
| | | | | | | | | | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | 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-1/+2
| | | | | | | | | | | | | | | | | | 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-4/+4
| | | | | | | | 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
* Reimplement SourceLocation. Instead of having a Chris Lattner2007-07-201-3/+1
| | | | | | | | | | | | | | | | | fileid/offset pair, it now contains a bit discriminating between mapped locations and file locations. This separates the tables for macros and files in SourceManager, and allows better separation of concepts in the rest of the compiler. This allows us to have *many* macro instantiations before running out of 'addressing space'. This is also more efficient, because testing whether something is a macro expansion is now a bit test instead of a table lookup (which also used to require having a srcmgr around, now it doesn't). This is fully functional, but there are several refinements and optimizations left. llvm-svn: 40103
* Finally bite the bullet and make the major change: split the clang namespaceChris Lattner2007-06-151-1/+0
| | | | | | | | | | | | | out of the llvm namespace. This makes the clang namespace be a sibling of llvm instead of being a child. The good thing about this is that it makes many things unambiguous. The bad things is that many things in the llvm namespace (notably data structures like smallvector) now require an llvm:: qualifier. IMO, libsystem and libsupport should be split out of llvm into their own namespace in the future, which will fix this issue. llvm-svn: 39659
* Submitted by: Bill WendlingBill Wendling2007-06-131-0/+61
Reviewed by: Chris Lattner - Created a base class (TextDiagnostics) for all text diagnostic classes. Moved the "IgnoreDiagnostic" method up there, and created a method that will format the diagnostic string, replacing %# with the appropriate string. This is in preparation for adding a text diagnostic checker. llvm-svn: 39650
OpenPOWER on IntegriCloud