- Nov 22, 2008
-
-
Anders Carlsson authored
llvm-svn: 59857
-
Chris Lattner authored
force the caller to check instead. This eliminates the need (and the risk!) of weird null DiagnosticBuilder's floating around. llvm-svn: 59856
-
-
Chris Lattner authored
llvm-svn: 59851
-
Ted Kremenek authored
llvm-svn: 59850
-
Chris Lattner authored
one for building up the diagnostic that is in flight (DiagnosticBuilder) and one for pulling structured information out of the diagnostic when formatting and presenting it. There is no functionality change with this patch. llvm-svn: 59849
-
Ted Kremenek authored
llvm-svn: 59848
-
Ted Kremenek authored
In PTHLexer::DiscardToEndOfLine() use Lex() instead of AdvanceToken(). This handles transitions in the preprocessor state. llvm-svn: 59845
-
- Nov 21, 2008
-
-
Ted Kremenek authored
llvm-svn: 59843
-
Ted Kremenek authored
When creating the raw tokens for PTHLexer, make sure the token representing the file to include is checked for being an identifier. llvm-svn: 59842
-
Ted Kremenek authored
llvm-svn: 59840
-
Fariborz Jahanian authored
llvm-svn: 59838
-
Sebastian Redl authored
This version uses VLAs to represent arrays. I'll try an alternative way next, but I want this safe first. llvm-svn: 59835
-
Chris Lattner authored
llvm-svn: 59832
-
Chris Lattner authored
llvm-svn: 59831
-
Chris Lattner authored
llvm-svn: 59829
-
Fariborz Jahanian authored
themselves for gc API generation purposes. llvm-svn: 59828
-
Douglas Gregor authored
llvm-svn: 59827
-
Chris Lattner authored
llvm-svn: 59824
-
Douglas Gregor authored
llvm-svn: 59822
-
Chris Lattner authored
llvm-svn: 59821
-
Douglas Gregor authored
llvm-svn: 59820
-
Douglas Gregor authored
llvm-svn: 59819
-
Douglas Gregor authored
Enable some more operator overloading tests, and don't look into an identifier for functions that might not have one llvm-svn: 59818
-
Sanjiv Gupta authored
llvm-svn: 59806
-
Chris Lattner authored
llvm-svn: 59805
-
Chris Lattner authored
strings. This allows us to have considerable flexibility in how these things are displayed and provides extra information that allows us to merge away diagnostics that are very similar. Diagnostic modifiers are a string of characters with the regex [-a-z]+ that occur between the % and digit. They may optionally have an argument that can parameterize them. For now, I've added two example modifiers. One is a very useful tool that allows you to factor commonality across diagnostics that need single words or phrases combined. Basically you can use %select{a|b|c}4 with with an integer argument that selects either a/b/c based on an integer value in the range [0..3). The second modifier is also an integer modifier, aimed to help English diagnostics handle plurality. "%s3" prints to 's' if integer argument #3 is not 1, otherwise it prints to nothing. I'm fully aware that 's' is an English concept and doesn't apply to all situations (mouse vs mice). However, this is very useful and we can add other crazy modifiers once we add support for polish! ;-) I converted a couple C++ diagnostics over to use this as an example, I'd appreciate it if others could merge the other likely candiates. If you have other modifiers that you want, lets talk on cfe-dev. llvm-svn: 59803
-
Chris Lattner authored
and fall through better. llvm-svn: 59799
-
Chris Lattner authored
the Diagnostic class. Since we can already only have one diagnostic in flight at a time, this shrinks DiagnosticInfo. This reduces DiagnosticInfo to being basically a rather crazy smart pointer to a DiagnosticInfo :) llvm-svn: 59798
-
Chris Lattner authored
in the DiagnosticInfo class. This requires marking them as taking a const DiagnosticInfo, which is bogus (they logically mutate DI), but works with the C++ type system. llvm-svn: 59797
-
Chris Lattner authored
llvm-svn: 59794
-
Douglas Gregor authored
llvm-svn: 59791
-
Douglas Gregor authored
llvm-svn: 59789
-
Chris Lattner authored
with a raw lexer instead of a PP lexer. This means that -verify doesn't scan #include'd headers for expected-error/warning strings, and it also means that it doesn't ignore them in #if 0. llvm-svn: 59774
-
Ted Kremenek authored
llvm-svn: 59773
-
Chris Lattner authored
llvm-svn: 59772
-
Chris Lattner authored
llvm-svn: 59771
-
Chris Lattner authored
llvm-svn: 59770
-
Ted Kremenek authored
- Move out logic for handling the end-of-file to LexEndOfFile (to match the Lexer) class. The logic now mirrors the Lexer class more, which allows us to pass most of the Preprocessor test cases. llvm-svn: 59768
-
Fariborz Jahanian authored
code gen. method. llvm-svn: 59767
-