- Nov 18, 2008
-
-
Ted Kremenek authored
llvm-svn: 59499
-
Chris Lattner authored
Use mutable to make it so. llvm-svn: 59498
-
Chris Lattner authored
delete huge trailing whitespace to fit in 80 cols. llvm-svn: 59497
-
Chris Lattner authored
llvm-svn: 59495
-
Chris Lattner authored
strings instead of array of strings. This reduces string copying in some not-very-important cases, but paves the way for future improvements. llvm-svn: 59494
-
Chris Lattner authored
llvm-svn: 59493
-
Chris Lattner authored
llvm-svn: 59492
-
Chris Lattner authored
llvm-svn: 59491
-
Ted Kremenek authored
llvm-svn: 59490
-
Ted Kremenek authored
- Add static method to test if the current lexer is a non-macro/non-pragma lexer. - Refactor some code in PPLexerChange to use this static method. - No performance change. llvm-svn: 59486
-
Chris Lattner authored
llvm-svn: 59485
-
Chris Lattner authored
llvm-svn: 59484
-
Chris Lattner authored
llvm-svn: 59483
-
Ted Kremenek authored
llvm-svn: 59482
-
Ted Kremenek authored
Performance tests on Cocoa.h (using the regular Lexer) shows no performance difference. llvm-svn: 59479
-
Ted Kremenek authored
llvm-svn: 59478
-
Ted Kremenek authored
This is because the PTHLexer will not support this method. Performance testing on preprocessing Cocoa.h shows that this results in a negligible performance difference (less than 1%). I tried making Lexer::SetCommentRetentionState() an out-of-line function (a precursor to making it a virtual function in PreprocessorLexer) and noticed a 1% decrease in speed (it is called in a hot part of the Preprocessor). llvm-svn: 59477
-
Ted Kremenek authored
alias for the current PreprocessorLexer. No functionality change. Performance testing shows this results in no performance degradation when preprocessing Cocoa.h. llvm-svn: 59474
-
Ted Kremenek authored
PreprocessorLexer, which will either be a 'Lexer' or 'PTHLexer'. - Added stub field 'CurPTHLexer' to keep track of the current PTHLexer. - Modified IncludeStackInfo to track both the current PTHLexer and current PreprocessorLexer. llvm-svn: 59472
-
Sebastian Redl authored
llvm-svn: 59470
-
- Nov 17, 2008
-
-
Douglas Gregor authored
destructors, and conversion functions. The placeholders were used to work around the fact that the parser and some of Sema really wanted declarators to have simple identifiers; now, the code that deals with declarators will use DeclarationNames. llvm-svn: 59469
-
Ted Kremenek authored
where the control reaches the end of a non-void function and also allows the compiler to generate better code. When this assertion is false we can easily add more else cases. llvm-svn: 59468
-
rdar://problem/6333904Steve Naroff authored
Missing special lookup rule in Sema::ActOnInstanceMessage(). llvm-svn: 59467
-
Douglas Gregor authored
llvm-svn: 59463
-
Douglas Gregor authored
C++ constructors, destructors, and conversion functions now have a FETokenInfo field that IdentifierResolver can access, so that these special names are handled just like ordinary identifiers. A few other Sema routines now use DeclarationNames instead of IdentifierInfo*'s. To validate this design, this code also implements parsing and semantic analysis for id-expressions that name conversion functions, e.g., return operator bool(); The new parser action ActOnConversionFunctionExpr takes the result of parsing "operator type-id" and turning it into an expression, using the IdentifierResolver with the DeclarationName of the conversion function. ActOnDeclarator pushes those conversion function names into scope so that the IdentifierResolver can find them, of course. llvm-svn: 59462
-
rdar://6319320Chris Lattner authored
are trying to use the old GCC "casts as lvalue" extension. We don't and will hopefully never support this. llvm-svn: 59460
-
-
Ted Kremenek authored
llvm-svn: 59457
-
Fariborz Jahanian authored
llvm-svn: 59451
-
Douglas Gregor authored
llvm-svn: 59446
-
-
Douglas Gregor authored
llvm-svn: 59443
-
Douglas Gregor authored
llvm-svn: 59442
-
Douglas Gregor authored
representing the names of declarations in the C family of languages. DeclarationName is used in NamedDecl to store the name of the declaration (naturally), and ObjCMethodDecl is now a NamedDecl. llvm-svn: 59441
-
Chris Lattner authored
llvm-svn: 59438
-
Chris Lattner authored
llvm-svn: 59437
-
Chris Lattner authored
llvm-svn: 59436
-
Eli Friedman authored
moment. llvm-svn: 59435
-
Anders Carlsson authored
llvm-svn: 59433
-
- Nov 16, 2008
-
-
Anders Carlsson authored
llvm-svn: 59430
-