- Jun 28, 2011
-
-
Douglas Gregor authored
vector<int> to std::vector<int> Patch by Kaelyn Uhrain, with minor tweaks + PCH support from me. Fixes PR5776/<rdar://problem/8652971>. Thanks Kaelyn! llvm-svn: 134007
-
Argyrios Kyrtzidis authored
from Sema::GetTypeForDeclarator. No functionality change. llvm-svn: 133987
-
Argyrios Kyrtzidis authored
Sema::GetTypeForDeclarator and remove its 'OwnedDecl' out parameter. No functionality change. llvm-svn: 133986
-
Argyrios Kyrtzidis authored
Centralize the check for a tag definition in a Declarator::PrototypeContext inside GetTypeForDeclarator. No functionality change. llvm-svn: 133985
-
Argyrios Kyrtzidis authored
No functionality change. llvm-svn: 133984
-
Fariborz Jahanian authored
// rdar://7811841 llvm-svn: 133970
-
John McCall authored
only to pointers to locals. But it should work inside blocks, too. llvm-svn: 133969
-
- Jun 27, 2011
-
-
John McCall authored
llvm-svn: 133943
-
Fariborz Jahanian authored
functions with arguments of transparent unions type. // rdar://9584012 llvm-svn: 133941
-
Douglas Gregor authored
for the '(' and ')' around the initializer unless we actually have an initializer. Fixes PR10197, an issue where we were value-initializing rather than default-initializing. llvm-svn: 133913
-
Chandler Carruth authored
a pointer to void. llvm-svn: 133912
-
Chandler Carruth authored
of a single if block. This is really annoying to track down and test. Silly changes to the test case caused it to stop showing up. I wish there were a more concrete way of asserting that a note attaches to the intended diagnostic. This fixes PR10195. llvm-svn: 133907
-
Chandler Carruth authored
arithmetic into a couple of common routines. Use these to make the messages more consistent in the various contexts, especially in terms of consistently diagnosing binary operators with invalid types on both the left- and right-hand side. Also, improve the grammar and wording of the messages some, handling both two pointers and two (different) types. The wording of function pointer arithmetic diagnostics still strikes me as poorly phrased, and I worry this makes them slightly more awkward if more consistent. I'm hoping to fix that with a follow-on patch and test case that will also make them more helpful when a typedef or template type parameter makes the type completely opaque. Suggestions on better wording are very welcome, thanks to Richard Smith for some initial help on that front. llvm-svn: 133906
-
Richard Smith authored
Fix PR10187: when diagnosing a two-phase-lookup-related failure, don't assert that any names we find are valid candidates for the call. llvm-svn: 133898
-
- Jun 25, 2011
-
-
Richard Smith authored
When performing semantic analysis on a member declaration, fix the check for whether we are declaring a function to check for parenthesized declarators, declaration via decltype, etc. Also fix the semantic check to not treat FuncType* as a function type. llvm-svn: 133862
-
Douglas Gregor authored
declaration, determine whether the declaration will end up declaring a function using semantic criteria (e.g., it will have function type) rather than purely syntactic criteria (e.g., it has the form of a function declarator). Fixes <rdar://problem/9670557>. llvm-svn: 133854
-
Fariborz Jahanian authored
to turn off warning on those properties which follow Cocoa naming convention for retaining objects and yet they were not meant for such purposes. Also, perform consistancy checking for declared getters of such methods. // rdar://9636091 llvm-svn: 133849
-
- Jun 24, 2011
-
-
Fariborz Jahanian authored
is not implemented. // rdar://9651605 llvm-svn: 133819
-
Argyrios Kyrtzidis authored
Fixes crash in http://llvm.org/PR10109 & rdar://9584039. llvm-svn: 133816
-
Fariborz Jahanian authored
objects. // rdar://9495837 llvm-svn: 133806
-
Jay Foad authored
llvm-svn: 133790
-
Alexis Hunt authored
conventions. I then discovered a typo in the using declaration bit in LookupSpecialMember. This led to discovering [namespace.udecl]p15, which clang implements incorrectly. Thus I've added a comment and implemented the code consistently with the rest of clang - that is incorrectly. And because I don't want to include tests of something incorrect, I've ripped the test out. llvm-svn: 133784
-
Argyrios Kyrtzidis authored
Rename objc_lifetime -> objc_ownership, and modify diagnostics to talk about 'ownership', not 'lifetime'. rdar://9477613. llvm-svn: 133779
-
Fariborz Jahanian authored
diagnose it properly and don't throw clang into an infinit loop. // rdar://9653341 llvm-svn: 133773
-
- Jun 23, 2011
-
-
Fariborz Jahanian authored
in fragile abi mode and some other cleanups. // rdar://8940528 llvm-svn: 133747
-
Eli Friedman authored
Fix Sema::CheckVectorOperands so that it doesn't try to insert a cast expression into the LHS of a compound assignment. Fixes compound assignment of various "compatible" vector types, including NEON-vector and gcc-vector types. <rdar://problem/9640356> llvm-svn: 133737
-
Fariborz Jahanian authored
same declaration. Templatize dropAttr for general use. llvm-svn: 133724
-
Fariborz Jahanian authored
// rdar://9538608 llvm-svn: 133721
-
Douglas Gregor authored
and into a new file, SemaExprMember.cpp, bringing SemaExpr.cpp just under 10,000 lines of code (ugh). No functionality change, although I intend to do some refactoring of this code to address PR8368 at some point in the "near" future. llvm-svn: 133674
-
-
Alexis Hunt authored
llvm-svn: 133671
-
Douglas Gregor authored
Sema::CreateUnaryExprOrTypeTraitExpr() rather than recursing in some cases. Fixes <rdar://problem/9659191>. llvm-svn: 133663
-
Alexis Hunt authored
implicit move tests. llvm-svn: 133655
-
Fariborz Jahanian authored
declared variable and ignore it. // rdar://9538608 llvm-svn: 133654
-
- Jun 22, 2011
-
-
Fariborz Jahanian authored
in Darwin's fragile abi mode. // rdar://8940528 llvm-svn: 133639
-
Manuel Klimek authored
Removes dead code found in the process. Adds a test to verify that ParenListExprs do not have NULL types. llvm-svn: 133637
-
Douglas Gregor authored
issues between a bitwise operator and a comparison operator. Fixes <rdar://problem/9637759>. llvm-svn: 133630
-
Douglas Gregor authored
via a typedef of a function, make sure to synthesize parameter declarations. Fixes PR9654 / <rdar://problem/9257497>. llvm-svn: 133628
-
Fariborz Jahanian authored
integral as it is not transferring ownership.. // rdar://9619861 llvm-svn: 133622
-
Douglas Gregor authored
retain/release the temporary object appropriately. Previously, we would only perform the retain/release operations when the reference would extend the lifetime of the temporary, but this does the wrong thing across calls. llvm-svn: 133620
-