- Dec 24, 2008
-
-
Ted Kremenek authored
llvm-svn: 61409
-
Douglas Gregor authored
semantics and improve our handling of default arguments. Specifically, we follow this order: - As soon as the see the '}' in the class definition, the class is complete and we add any implicit declarations (default constructor, copy constructor, etc.) to the class. - If there are any default function arguments, parse them - If there were any inline member function definitions, parse them As part of this change, we now keep track of the the fact that we've seen unparsed default function arguments within the AST. See the new ParmVarDecl::hasUnparsedDefaultArg member. This allows us to properly cope with calls inside default function arguments to other functions where we're making use of the default arguments. Made some C++ error messages regarding failed initializations more specific. llvm-svn: 61406
-
- Dec 23, 2008
-
-
Anton Korobeynikov authored
Patch by Ilya Okonsky! llvm-svn: 61394
-
Douglas Gregor authored
llvm-svn: 61393
-
Douglas Gregor authored
sure to look at all of the results returned by name lookup. Fixes <rdar://problem/6465262> llvm-svn: 61388
-
Fariborz Jahanian authored
We now pass all gcc's encoding compatibility tests. llvm-svn: 61387
-
Douglas Gregor authored
attached to an identifier. Instead, all overloaded functions will be pushed into scope, and we'll synthesize an OverloadedFunctionDecl on the fly when we need it. llvm-svn: 61386
-
-
Fariborz Jahanian authored
gcc compatibilty in all aspects of encoding now. llvm-svn: 61383
-
Ted Kremenek authored
llvm-svn: 61382
-
Ted Kremenek authored
PTH: Remove some methods and simplify some conditions in PTHLexer::Lex(). No big functionality change. llvm-svn: 61381
-
Ted Kremenek authored
- This reduces the PTH size for Cocoa.h by 7%. - The increases PTH -Eonly speed for Cocoa.h by 0.8%. llvm-svn: 61377
-
Ted Kremenek authored
llvm-svn: 61375
-
Sebastian Redl authored
llvm-svn: 61370
-
Chris Lattner authored
llvm-svn: 61367
-
Ted Kremenek authored
- Encode the token length with 2 bytes instead of 4. - This reduces the size of the .pth file for Cocoa.h by 12%. - This speeds up PTH time (-Eonly) on Cocoa.h by 1.6%. llvm-svn: 61364
-
Ted Kremenek authored
- In PTHLexer::Lex read all of the token data from PTH file before constructing the token. The idea is to enhance locality. - Do not use Read8/Read32 in PTHLexer::Lex. Inline these operations manually. - Change PTHManager::ReadIdentifierInfo() to PTHManager::GetIdentifierInfo(). They are functionally the same except that PTHLexer::Lex() reads the persistent id. These changes result in a 3.3% speedup for PTH on Cocoa.h (-Eonly). llvm-svn: 61363
-
Ted Kremenek authored
- Embed 'eom' tokens in PTH file. - Use embedded 'eom' tokens to not lazily generate them in the PTHLexer. This means that PTHLexer can always advance to the next token after reading a token (instead of buffering tokens using a copy). - Moved logic of 'ReadToken' into Lex. GetToken & ReadToken no longer exist. - These changes result in a 3.3% speedup (-Eonly) on Cocoa.h. - The code is a little gross. Many cleanups are possible and should be done. llvm-svn: 61360
-
Douglas Gregor authored
llvm-svn: 61359
-
Douglas Gregor authored
DeclContext. Instead, just keep the list of currently-active declarations and only build the OverloadedFunctionDecl when we absolutely need it. This is a half-step toward eliminating the need to explicitly build OverloadedFunctionDecls that store sets of overloaded functions. This was suggested by Argiris a while back, and it's a good thing for several reasons: first, it eliminates the messy logic that currently tries to keep the OverloadedFunctionDecl in sync with the declarations that are being added. Second, it will (eventually) eliminate the need to allocate memory for overload sets, which could help performance. Finally, it helps set us up for when name lookup can return multiple (possibly ambiguous) results, as can happen with lookup of class members in C++. Next steps: make the IdentifierResolver store overloads as separate entries in its list rather than replacing them with an OverloadedFunctionDecl now, then see how far we can go toward eliminating OverloadedFunctionDecl entirely. llvm-svn: 61357
-
Fariborz Jahanian authored
outer-most const of pointer types. llvm-svn: 61355
-
- Dec 22, 2008
-
-
-
Sebastian Redl authored
llvm-svn: 61348
-
Sebastian Redl authored
llvm-svn: 61346
-
Douglas Gregor authored
Support conversion from a null pointer constant o any Objective-C object pointer type. Fixes rdar://problem/6463298 llvm-svn: 61340
-
Fariborz Jahanian authored
instance methods by building print-class-info.m, whose output is now identical to what gcc puts out. llvm-svn: 61339
-
Sebastian Redl authored
llvm-svn: 61337
-
Fariborz Jahanian authored
property in a category and to issue diagnostics for mismatch method in some other cases. llvm-svn: 61336
-
Sebastian Redl authored
llvm-svn: 61335
-
Anders Carlsson authored
llvm-svn: 61334
-
Zhongxing Xu authored
llvm-svn: 61333
-
Anders Carlsson authored
llvm-svn: 61332
-
Anders Carlsson authored
llvm-svn: 61331
-
Anders Carlsson authored
llvm-svn: 61330
-
Douglas Gregor authored
- Overloading has to cope with having both static and non-static member functions in the overload set. - The call may or may not have an implicit object argument, depending on the syntax (x.f() vs. f()) and the context (static vs. non-static member function). - We now generate MemberExprs for implicit member access expression. - We now cope with mutable whenever we're building MemberExprs. llvm-svn: 61329
-
Anders Carlsson authored
llvm-svn: 61328
-
Anders Carlsson authored
llvm-svn: 61327
-
Anders Carlsson authored
llvm-svn: 61326
-
Anders Carlsson authored
llvm-svn: 61325
-
Anders Carlsson authored
llvm-svn: 61324
-