| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
and fall through better.
llvm-svn: 59799
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 59794
|
| |
|
|
| |
llvm-svn: 59791
|
| |
|
|
| |
llvm-svn: 59789
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 59773
|
| |
|
|
| |
llvm-svn: 59772
|
| |
|
|
| |
llvm-svn: 59771
|
| |
|
|
| |
llvm-svn: 59770
|
| |
|
|
|
|
| |
- 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
|
| |
|
|
|
|
| |
code gen. method.
llvm-svn: 59767
|
| |
|
|
|
|
| |
caller.
llvm-svn: 59765
|
| |
|
|
|
|
| |
- Add check for returning an undefined value to a caller.
llvm-svn: 59764
|
| |
|
|
| |
llvm-svn: 59762
|
| |
|
|
|
|
| |
write-barriers.
llvm-svn: 59748
|
| |
|
|
|
|
|
| |
- Move PTHLexer::GetToken() to be inside PTHLexer.cpp.
- When lexing in raw mode, null out identifiers.
llvm-svn: 59744
|
| |
|
|
| |
llvm-svn: 59743
|
| |
|
|
| |
llvm-svn: 59740
|
| |
|
|
|
|
| |
to static function. Added comments.
llvm-svn: 59738
|
| |
|
|
|
|
| |
normal Lexer.
llvm-svn: 59736
|
| |
|
|
| |
llvm-svn: 59735
|
| |
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
| |
expression (smart_ptr->mem).
llvm-svn: 59732
|
| |
|
|
| |
llvm-svn: 59731
|
| |
|
|
|
|
| |
intermixing of 'ANALYZE' and the other diagnostics the clang driver emits to standard error.
llvm-svn: 59730
|
| |
|
|
| |
llvm-svn: 59729
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
| |
can do basic macro expansion using the PTHLexer.
llvm-svn: 59724
|
| |
|
|
|
|
|
|
|
|
| |
(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
|
| |
|
|
|
|
| |
removed in the future when we correctly handle #include processing.
llvm-svn: 59722
|
| |
|
|
|
|
| |
match against CurPPLexer instead of CurLexer.
llvm-svn: 59721
|
| |
|
|
| |
llvm-svn: 59716
|
| |
|
|
| |
llvm-svn: 59714
|
| |
|
|
| |
llvm-svn: 59713
|
| |
|
|
| |
llvm-svn: 59712
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
used in one cold place.
llvm-svn: 59709
|
| |
|
|
|
|
|
| |
just check for it when needed. It doesn't incur real cost
in any hot paths.
llvm-svn: 59708
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 59695
|
| |
|
|
|
|
|
| |
a Lexer*. This means it will either return the current (normal) file Lexer or a
PTHLexer.
llvm-svn: 59694
|
| |
|
|
|
|
|
| |
information. A diff of the -E output for Cocoa.h shows that there is no change
in output.
llvm-svn: 59693
|
| |
|
|
|
|
| |
of Lexer* (narrower interface).
llvm-svn: 59691
|
| |
|
|
|
|
|
|
| |
LexingRawMode in the ctor of PreprocessorLexer.
- PTHLexer: Use "LastToken" instead of "NumToken"
llvm-svn: 59690
|
| |
|
|
|
|
| |
PTHLexer::DiscardToEndOfLine().
llvm-svn: 59687
|
| |
|
|
| |
llvm-svn: 59684
|
| |
|
|
| |
llvm-svn: 59683
|