- Dec 15, 2010
-
-
Argyrios Kyrtzidis authored
Diagnostic pragmas are broken because we don't keep track of the diagnostic state changes and we only check the current/latest state. Problems manifest if a diagnostic is emitted for a source line that has different diagnostic state than the current state; this can affect a lot of places, like C++ inline methods, template instantiations, the lexer, etc. Fix the issue by having the Diagnostic object keep track of the source location of the pragmas so that it is able to know what is the diagnostic state at any given source location. Fixes rdar://8365684. llvm-svn: 121873
-
- Nov 12, 2010
-
-
Douglas Gregor authored
SourceManager::getPresumedLoc(), so that we don't try to make use of an invalid presumed location. Doing so can cause crashes. llvm-svn: 118885
-
- Mar 16, 2010
-
-
Douglas Gregor authored
Invalid bit through; there are no safety-critical callers of these functions. llvm-svn: 98674
-
Douglas Gregor authored
them to recover more gracefully on failure. llvm-svn: 98672
-
Douglas Gregor authored
SourceManager versions), updating those callers that need to recover gracefully from failure. llvm-svn: 98665
-
Benjamin Kramer authored
llvm-svn: 98631
-
- Sep 09, 2009
-
-
Mike Stump authored
llvm-svn: 81346
-
- Apr 22, 2009
-
-
Douglas Gregor authored
headers. Future approaches to (de-)serializing ASTs will be based on the PCH infrastructure. llvm-svn: 69828
-
- Mar 10, 2009
-
-
Daniel Dunbar authored
llvm-svn: 66555
-
Ted Kremenek authored
llvm-svn: 66522
-
- Mar 05, 2009
-
-
Chris Lattner authored
parser. For example, we now print out: 0. t.c:5:10: in compound statement {} 1. t.c:3:12: in compound statement {} 2. clang t.c -fsyntax-only llvm-svn: 66108
-
- Mar 02, 2009
-
-
Chris Lattner authored
llvm-svn: 65884
-
- Feb 04, 2009
-
-
Chris Lattner authored
getColumnNumber. This fixes a FIXME in SourceManager::getPresumedLoc because we now just decompose the sloc once. llvm-svn: 63701
-
Chris Lattner authored
makes it clear to clients that they have to pick an instantiation or spelling location before calling it and allows optimization based on that. llvm-svn: 63698
-
- Jan 28, 2009
-
-
Ted Kremenek authored
llvm-svn: 63229
-
- Jan 27, 2009
-
-
Chris Lattner authored
as reported to the user and as manipulated by #line. This is what __FILE__, __INCLUDE_LEVEL__, diagnostics and other things should follow (but not dependency generation!). This patch also includes several cleanups along the way: - SourceLocation now has a dump method, and several other places that did similar things now use it. - I cleaned up some code in AnalysisConsumer, but it should probably be simplified further now that NamedDecl is better. - TextDiagnosticPrinter is now simplified and cleaned up a bit. This patch is a prerequisite for #line, but does not actually provide any #line functionality. llvm-svn: 63098
-
- Jan 19, 2009
-
-
Chris Lattner authored
no longer such thing as a non-canonical FileID. llvm-svn: 62499
-
Chris Lattner authored
llvm-svn: 62496
-
Chris Lattner authored
SourceManager::getBuffer(SourceLocation) method. llvm-svn: 62494
-
- Jan 17, 2009
-
-
Chris Lattner authored
the chunk ID not the file ID. This exposes problems in TextDiagnosticPrinter where it should have been using the canonical file ID but wasn't. Fix these along the way. llvm-svn: 62427
-
Chris Lattner authored
"FileID" a concept that is now enforced by the compiler's type checker instead of yet-another-random-unsigned floating around. This is an important distinction from the "FileID" currently tracked by SourceLocation. *That* FileID may refer to the start of a file or to a chunk within it. The new FileID *only* refers to the file (and its #include stack and eventually #line data), it cannot refer to a chunk. FileID is a completely opaque datatype to all clients, only SourceManager is allowed to poke and prod it. llvm-svn: 62407
-
Chris Lattner authored
containing one. Containment is generally better than derivation, but in this case FullSourceLoc really 'isa' SourceLocation. llvm-svn: 62375
-
- Jan 16, 2009
-
-
Chris Lattner authored
llvm-svn: 62374
-
Chris Lattner authored
llvm-svn: 62371
-
Chris Lattner authored
"logical" location, refer to the "instantiation" location. llvm-svn: 62316
-
Chris Lattner authored
the "physical" location of tokens, refer to the "spelling" location. This is more concrete and useful, tokens aren't really physical objects! llvm-svn: 62309
-
- Sep 29, 2008
-
-
Chris Lattner authored
and add a dump method to FullSourceLoc! Patch by Nico Weber! llvm-svn: 56806
-
- Aug 10, 2008
-
-
Nico Weber authored
* 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
-
- Apr 14, 2008
-
-
Ted Kremenek authored
the files of different SourceLocations. These methods correctly handle the case where a file may have multiple FileIDs due to it being large enough to be spread across several chunks. llvm-svn: 49682
-
- Apr 03, 2008
-
-
Ted Kremenek authored
llvm-svn: 49177
-
- Mar 16, 2008
-
-
Chris Lattner authored
lib dir and move all the libraries into it. This follows the main llvm tree, and allows the libraries to be built in parallel. The top level now enforces that all the libs are built before Driver, but we don't care what order the libs are built in. This speeds up parallel builds, particularly incremental ones. llvm-svn: 48402
-
- Dec 29, 2007
-
-
Chris Lattner authored
discussion of this change. llvm-svn: 45410
-
- Dec 12, 2007
-
-
Ted Kremenek authored
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
-
- Nov 01, 2007
-
-
Ted Kremenek authored
updated it to the recently updated Serialization API. Changed clients of SourceLocation serialization to call the appropriate new methods. Updated Decl serialization code to put new skeleton serialization code in place that is much better than the older trait-specialization approach. llvm-svn: 43625
-
- Oct 25, 2007
-
-
Ted Kremenek authored
llvm-svn: 43343
-