- Nov 21, 2008
-
-
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
-
Douglas Gregor authored
llvm-svn: 59791
-
Douglas Gregor authored
llvm-svn: 59789
-
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
-
Ted Kremenek authored
- Add check for returning an undefined value to a caller. llvm-svn: 59764
-
- Nov 20, 2008
-
-
Fariborz Jahanian authored
write-barriers. llvm-svn: 59748
-
Ted Kremenek authored
- Move PTHLexer::GetToken() to be inside PTHLexer.cpp. - When lexing in raw mode, null out identifiers. llvm-svn: 59744
-
Fariborz Jahanian authored
llvm-svn: 59743
-
Fariborz Jahanian authored
llvm-svn: 59740
-
Fariborz Jahanian authored
to static function. Added comments. llvm-svn: 59738
-
Ted Kremenek authored
llvm-svn: 59736
-
Ted Kremenek authored
- Rename 'CurToken' and 'LastToken' to 'CurTokenIdx' and 'LastTokenIdx' respectively. - Add helper methods GetToken(), AdvanceToken(), AtLastToken() to abstract away details of the token stream. This also allows us to easily replace their implementation later. llvm-svn: 59733
-
Douglas Gregor authored
expression (smart_ptr->mem). llvm-svn: 59732
-
Ted Kremenek authored
llvm-svn: 59731
-
Douglas Gregor authored
llvm-svn: 59729
-
Ted Kremenek authored
Rewrote PTHLexer::Lex by digging through the sources of Lexer again. Now we can do basic macro expansion using the PTHLexer. llvm-svn: 59724
-
Ted Kremenek authored
(temporary hack) to test the PTHLexer is that whenever we would create a Lexer object we instead raw lex a memory buffer first and then use the PTHLexer. This logic exists only to driver the PTHLexer and will be removed/changed in the future. Note that the regular path using normal Lexer objects is what is used by default. llvm-svn: 59723
-
Chris Lattner authored
llvm-svn: 59716
-
Chris Lattner authored
llvm-svn: 59714
-
Chris Lattner authored
llvm-svn: 59713
-
Chris Lattner authored
llvm-svn: 59712
-
Chris Lattner authored
of doing the lookup_decl, the hash lookup is cheap. Also, typeid doesn't happen enough in real world code to worry about it. I'd like to eventually get rid of KnownFunctionIDs from Sema also, but today is not that day. llvm-svn: 59711
-
Chris Lattner authored
looking up the "std" identifier is trivial. Just do it, particularly since this is only done if the namespace hasn't already been looked up. llvm-svn: 59710
-
Chris Lattner authored
used in one cold place. llvm-svn: 59709
-
Chris Lattner authored
just check for it when needed. It doesn't incur real cost in any hot paths. llvm-svn: 59708
-
Chris Lattner authored
from Sebastian to enforce that a literal string is passed in, and use this to avoid having to call strlen on it. llvm-svn: 59706
-
Ted Kremenek authored
llvm-svn: 59695
-
Ted Kremenek authored
a Lexer*. This means it will either return the current (normal) file Lexer or a PTHLexer. llvm-svn: 59694
-
Ted Kremenek authored
information. A diff of the -E output for Cocoa.h shows that there is no change in output. llvm-svn: 59693
-
Ted Kremenek authored
Assign the result of getCurrentFileLexer() to a PreprocessorLexer* instead of Lexer* (narrower interface). llvm-svn: 59691
-
Ted Kremenek authored
LexingRawMode in the ctor of PreprocessorLexer. - PTHLexer: Use "LastToken" instead of "NumToken" llvm-svn: 59690
-