summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* switch TextDiagnosticPrinter to raw_ostream.Chris Lattner2008-11-191-6/+9
| | | | llvm-svn: 59597
* rewrite FormatDiagnostic to be less gross and a lot more efficient.Chris Lattner2008-11-192-10/+14
| | | | | | | This also makes it illegal to have bare '%'s in diagnostics. If you want a % in a diagnostic, use %%. llvm-svn: 59596
* This reworks some of the Diagnostic interfaces a bit to change how diagnosticsChris Lattner2008-11-182-30/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are formed. In particular, a diagnostic with all its strings and ranges is now packaged up and sent to DiagnosticClients as a DiagnosticInfo instead of as a ton of random stuff. This has the benefit of simplifying the interface, making it more extensible, and allowing us to do more checking for things like access past the end of the various arrays passed in. In addition to introducing DiagnosticInfo, this also substantially changes how Diagnostic::Report works. Instead of being passed in all of the info required to issue a diagnostic, Report now takes only the required info (a location and ID) and returns a fresh DiagnosticInfo *by value*. The caller is then free to stuff strings and ranges into the DiagnosticInfo with the << operator. When the dtor runs on the DiagnosticInfo object (which should happen at the end of the statement), the diagnostic is actually emitted with all of the accumulated information. This is a somewhat tricky dance, but it means that the accumulated DiagnosticInfo is allowed to keep pointers to other expression temporaries without those pointers getting invalidated. This is just the minimal change to get this stuff working, but this will allow us to eliminate the zillions of variant "Diag" methods scattered throughout (e.g.) sema. For example, instead of calling: Diag(BuiltinLoc, diag::err_overload_no_match, typeNames, SourceRange(BuiltinLoc, RParenLoc)); We will soon be able to just do: Diag(BuiltinLoc, diag::err_overload_no_match) << typeNames << SourceRange(BuiltinLoc, RParenLoc)); This scales better to support arbitrary types being passed in (not just strings) in a type-safe way. Go operator overloading?! llvm-svn: 59502
* Change the diagnostics interface to take an array of pointers to Chris Lattner2008-11-182-2/+2
| | | | | | | | strings instead of array of strings. This reduces string copying in some not-very-important cases, but paves the way for future improvements. llvm-svn: 59494
* [LLVM up] Update for raw_fd_ostream change. This fixes a FIXME thatDaniel Dunbar2008-11-131-1/+1
| | | | | | | | the Backend output should be done in binary mode. - I'd appreciate it if someone who has a Windows build could verify this. llvm-svn: 59221
* Update CMakeLists.txtCedric Venet2008-11-041-0/+1
| | | | llvm-svn: 58716
* Hook up the Plist diagnostic client to the driver.Ted Kremenek2008-11-031-5/+12
| | | | | | Fix Plist output. llvm-svn: 58652
* Add path diagnostics client for emitting path reports using Plists.Ted Kremenek2008-11-031-0/+230
| | | | llvm-svn: 58647
* Rename 'HTMLDiagnostics.h' to 'PathDiagnosticClients.h'Ted Kremenek2008-11-031-1/+1
| | | | llvm-svn: 58646
* Fixed a horrible bug in HTMLDiagnostics.cpp where bugs referencing source ↵Ted Kremenek2008-11-021-3/+3
| | | | | | ranges that occur within macros would not be emitted at all. llvm-svn: 58550
* Rename Characteristic_t to CharacteristicKindChris Lattner2008-10-271-1/+1
| | | | llvm-svn: 58224
* CMake: Builds and installs clang binary and libs (no docs yet). ItOscar Fuentes2008-10-261-0/+8
| | | | | | must be under the `tools' subdirectory of the LLVM *source* tree. llvm-svn: 58180
* Expand bubble size by 50%.Ted Kremenek2008-10-241-1/+1
| | | | llvm-svn: 58111
* First non-embarrassing cut at checking for ambiguous derived-to-base Douglas Gregor2008-10-241-1/+2
| | | | | | | | | | conversions. Added PerformImplicitConversion, which follows an implicit conversion sequence computed by TryCopyInitialization and actually performs the implicit conversions, including the extra check for ambiguity mentioned above. llvm-svn: 58071
* Bug fix, CPATH="" does not add '.' to search path.Daniel Dunbar2008-10-041-1/+1
| | | | llvm-svn: 57072
* clean up a bunch of fixme's I added, by moving Chris Lattner2008-09-261-10/+6
| | | | | | DirectoryLookup::DirType into SourceManager.h llvm-svn: 56692
* emulate a bit of GCC path lookup weirdness: if a system Chris Lattner2008-09-261-6/+37
| | | | | | | | | | | | | | | | | | | | | | | directory is shadowed by a user directory in the lookup path, ignore the user directory not the system one. Not doing this can affect file lookup and the "is a system header" bit on locations. For example: clang -v -I/usr/include inc.c -E | & grep /usr/inc now prints: # 1 "/usr/include/i386/_types.h" 1 3 4 # 37 "/usr/include/i386/_types.h" 3 4 # 70 "/usr/include/i386/_types.h" 3 4 instead of: # 1 "/usr/include/i386/_types.h" 1 # 37 "/usr/include/i386/_types.h" # 70 "/usr/include/i386/_types.h" This is part of rdar://6243860. llvm-svn: 56669
* Output "REPORTHEADER" and "REPORTSUMMARYEXTRA" tags for use with scan-view.Ted Kremenek2008-09-221-2/+4
| | | | llvm-svn: 56440
* Added experimental "intelligent-sizing" of HTML message bubbles based on the ↵Ted Kremenek2008-09-211-35/+77
| | | | | | contents of the message. llvm-svn: 56400
* Add "category" to BugTypes, allowing bugs to be grouped.Ted Kremenek2008-09-201-0/+9
| | | | | | Changed casing of many bug names. The convention will be to have bug names (mostly) lower cased, and categories use some capitalization. llvm-svn: 56385
* Patch by Csaba Hruska!Ted Kremenek2008-09-131-7/+13
| | | | | | | "Here is a patch what replaces std::ostream with llvm::raw_ostream. This patch covers the AST library, but ignores Analysis lib." llvm-svn: 56185
* Add support for expected-note to Clang's -verify optionDouglas Gregor2008-09-111-0/+5
| | | | llvm-svn: 56089
* Set different header search paths for the Windows platform.Argyrios Kyrtzidis2008-09-051-9/+17
| | | | llvm-svn: 55832
* Add header search paths for Mingw32 (GCC version 4).Argyrios Kyrtzidis2008-09-051-0/+9
| | | | llvm-svn: 55830
* Moved HTMLDiagnostics to lib/Driver.Zhongxing Xu2008-08-241-0/+444
| | | | llvm-svn: 55274
* Add header search paths for dragonfly, patch by Sascha Wildner!Chris Lattner2008-08-231-0/+6
| | | | llvm-svn: 55242
* Move most of HeaderSearch initialization to libDriver.Nico Weber2008-08-221-0/+312
| | | | | | | | | | | For example, adding the default system include paths in clients is now as simple as InitHeaderSearch init(headers); init.AddDefaultSystemIncludePaths(langopts); init.Realize(); llvm-svn: 55174
* More #include cleaningDaniel Dunbar2008-08-112-3/+0
| | | | | | | | | | | - Kill unnecessary #includes in .cpp files. This is an automatic sweep so some things removed are actually used, but happen to be included by a previous header. I tried to get rid of the obvious examples and this was the easiest way to trim the #includes in one fell swoop. - We now return to regularly scheduled development. llvm-svn: 54632
* * Remove isInSystemHeader() from DiagClient, move it to SourceManagerNico Weber2008-08-102-54/+0
| | | | | | | | | | | | | | | | * Move FormatError() from TextDiagnostic up to DiagClient, remove now empty class TextDiagnostic * Make DiagClient optional for Diagnostic This fixes the following problems: * -html-diags (and probably others) does now output the same set of warnings as console clang does * nothing crashes if one forgets to call setHeaderSearch() on TextDiagnostic * some code duplication is removed llvm-svn: 54620
* Expressive diagnostics-- worth their weight in gold?Gordon Henriksen2008-08-091-20/+20
| | | | | | (Fixing a spelling error.) llvm-svn: 54591
* add a libDriver, for now only move the text diangostics stuff from Driver to ↵Nico Weber2008-08-054-0/+319
there llvm-svn: 54383
OpenPOWER on IntegriCloud