- Jun 10, 2011
-
-
Eli Friedman authored
PR10120: Make CodeGenModule::getVTableLinkage use NamedDecl::getLinkage to determine whether the vtable should be externally visible, instead of a rough approximation of it which messes up with templates. While I'm here, zap the other user of isInAnonymousNamespace outside of Decl.cpp. llvm-svn: 132861
-
Nick Lewycky authored
llvm-svn: 132855
-
Alexis Hunt authored
to study it. llvm-svn: 132843
-
Alexis Hunt authored
I believe, upon, careful review, that this code causes us to incorrectly handle exception specifications of copy assignment operators in C++03 mode. However, we currently do not seem to properly implement the subtle distinction between copying of members and bases made by implicit copy constructors and assignment operators in C++03 - namely that they are limited in their overload selection - in all cases. As such, I feel that committing this code is correct pending a careful review of our implementation of these semantics. llvm-svn: 132841
-
Jordy Rose authored
[analyzer] PR8962 again. Ban ParenExprs (and friends) from block-level expressions (by calling IgnoreParens before adding expressions to blocks). Undo 132769 (LiveVariables' local IgnoreParens), since it's no longer necessary. Also, have Environment stop looking through NoOp casts; it didn't match the behavior of LiveVariables. And once that's gone, the whole cast block of that switch is unnecessary. llvm-svn: 132840
-
Alexis Hunt authored
llvm-svn: 132835
-
Alexis Hunt authored
isn't yet used for the less controlled environments of initialization. Also a few random text fixups. llvm-svn: 132833
-
Richard Trieu authored
- Removed fix-it hints from template instaniations since changes to the templates are rarely helpful. - Changed the caret in template instaniations from the class/struct name to the class/struct keyword, matching the other warnings. - Do not offer fix-it hints when multiple declarations disagree. Warnings are still given. - Once a definition is found, offer a fix-it hint to all previous declarations with wrong tag. - Declarations that disagree with a previous definition will get a fix-it hint to change the declaration. llvm-svn: 132831
-
- Jun 09, 2011
-
-
Fariborz Jahanian authored
// rdar://9566314 llvm-svn: 132791
-
Hans Wennborg authored
This is a follow-up to r132565, and should address the rest of PR9969: Warn about cases such as int foo(A a, bool b) { return a + b ? 1 : 2; // user probably meant a + (b ? 1 : 2); } also when + is an overloaded operator call. llvm-svn: 132784
-
Jordy Rose authored
[analyzer] Ignore parentheses around block-level expressions when computing liveness. Fixes the other half of PR8962. llvm-svn: 132769
-
Jordy Rose authored
llvm-svn: 132762
-
- Jun 08, 2011
-
-
Fariborz Jahanian authored
It is not a sanctioned keyword and is assumed as default. // rdar://8790791 llvm-svn: 132753
-
Stuart Hastings authored
comments. rdar://problem/9037836 llvm-svn: 132752
-
Peter Collingbourne authored
This fixes a memory error on FreeBSD (and is the right thing to do in any case). llvm-svn: 132750
-
Chandler Carruth authored
were intended for was suppressed. llvm-svn: 132746
-
Chandler Carruth authored
Very sorry for the accidental commit of WIP code. llvm-svn: 132745
-
Chandler Carruth authored
namespace set algorithm (re-)introduced. We may not have seen the 'std' namespace, but we should still suggested associated namespaces. Easy fix, but a bit annoying to test. llvm-svn: 132744
-
Chandler Carruth authored
llvm-svn: 132743
-
Stuart Hastings authored
rdar://problem/9037836 llvm-svn: 132737
-
Joerg Sonnenberger authored
may pick it up. This would create bad text relocations. llvm-svn: 132736
-
- Jun 07, 2011
-
-
Fariborz Jahanian authored
declared __weak objc-gc mode. // rdar://9666091. llvm-svn: 132731
-
Nick Lewycky authored
-undef flag is passed in. Also __ASSEMBLER__ with -x assembler-with-cpp. (Don't ask.) llvm-svn: 132708
-
Alexis Hunt authored
llvm-svn: 132700
-
- Jun 06, 2011
-
-
Jonathan D. Turner authored
llvm-svn: 132679
-
Douglas Gregor authored
specializing a member of an unspecialized template, and recover from such errors without crashing. Fixes PR10024 / <rdar://problem/9509761>. llvm-svn: 132677
-
Chandler Carruth authored
this. My suggestion assumed a viable erase method for iterators on SmallPtrSet. This patch restores his original pattern. llvm-svn: 132673
-
Richard Smith authored
Fix PR10053: Improve diagnostics and error recovery for code which some compilers incorrectly accept due to a lack of proper support for two-phase name lookup. llvm-svn: 132672
-
- Jun 05, 2011
-
-
Benjamin Kramer authored
llvm-svn: 132669
-
Sebastian Redl authored
Drop most of InitializationSequence::SequenceKind's values. They didn't really contain any information that the step array didn't contain too. This makes debugging dumps a bit less informative, but probably not significantly so. The advantage is that the redundancy is gone, so the code is easier to understand. ReferenceBinding is still there, because it is used in some unclear code. llvm-svn: 132667
-
Sebastian Redl authored
llvm-svn: 132666
-
Sebastian Redl authored
Remove all references to InitializationSequence::FailedSequence from outside SemaInit.cpp. Replace them with the boolean conversion or the new Failed() function. This is a first step towards removing InitializationSequence::SequenceKind. No functionality change. llvm-svn: 132664
-
Sebastian Redl authored
llvm-svn: 132662
-
Douglas Gregor authored
compared even when one is a reference binding and the other is not (<rdar://problem/9173984>), but the definition of an identity sequence does not involve lvalue-to-rvalue adjustments (PR9507). Fix both inter-related issues. llvm-svn: 132660
-
-
Douglas Gregor authored
return <expression> ; in blocks with a 'void' result type, so long as <expression> has type 'void'. This follows the rules for C++ functions. llvm-svn: 132658
-
Douglas Gregor authored
with a type-dependent expression, infer the placeholder type 'Context.DependentTy' to indicate that this is just a placeholder. Fixes PR9982 / <rdar://problem/9486685>. llvm-svn: 132657
-
Rafael Espindola authored
llvm-svn: 132653
-
- Jun 04, 2011
-
-
Richard Smith authored
llvm-svn: 132651
-
Roman Divacky authored
llvm-svn: 132635
-