- Nov 21, 2008
-
-
Ted Kremenek authored
- Add check for returning an undefined value to a caller. llvm-svn: 59764
-
Ted Kremenek authored
llvm-svn: 59762
-
- 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
-
Douglas Gregor authored
llvm-svn: 59735
-
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
-
Ted Kremenek authored
Output 'ANALYZE' messages to standard error. This should address the intermixing of 'ANALYZE' and the other diagnostics the clang driver emits to standard error. llvm-svn: 59730
-
Douglas Gregor authored
llvm-svn: 59729
-
Daniel Dunbar authored
- This is fairly gross but although the code is conceptually the same, introducting the union causes gcc 4.2 on x86 (darwin, if that matters) to pessimize LexTokenInternal which is critical to our preprocessor performance. This speeds up -Eonly lexing of Cocoa.h by ~4.7% in my timings and reduces the code size of LexTokenInternal by 8.6%. llvm-svn: 59725
-
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
-
Ted Kremenek authored
Added virtual method 'IndirectLex' to PTHLexer. This will likely get removed in the future when we correctly handle #include processing. llvm-svn: 59722
-
Ted Kremenek authored
Preprocessor::isCurrentLexer() now takes a PreprocessorLexer* argument to match against CurPPLexer instead of CurLexer. llvm-svn: 59721
-
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
-
Ted Kremenek authored
Add (untested) implementation of PTHLexer::isNextPPTokenLParen() and PTHLexer::DiscardToEndOfLine(). llvm-svn: 59687
-
Ted Kremenek authored
llvm-svn: 59684
-
Zhongxing Xu authored
llvm-svn: 59683
-
Fariborz Jahanian authored
diagnostics on use of __weak attribute on fields, Early support for read/write barriers for objc fields. llvm-svn: 59682
-
- Nov 19, 2008
-
-
Douglas Gregor authored
llvm-svn: 59675
-
Douglas Gregor authored
being called to be converted to a reference-to-function, pointer-to-function, or reference-to-pointer-to-function. This is done through "surrogate" candidate functions that model the conversions from the object to the function (reference/pointer) and the conversions in the arguments. llvm-svn: 59674
-
Ted Kremenek authored
llvm-svn: 59673
-