- Feb 03, 2012
-
-
Chad Rosier authored
a cast to the same type is allowed so long as it does not cast away constness. Fix for PR11747. Patch by Aaron Ballman. Reviewed by Eli. llvm-svn: 149664
-
Eli Friedman authored
Refactor capture in blocks to use new-style capture hooks. Start adding a bit of the code for lambdas. The only visible changes are that we use the C++11 odr-used rules to figure out when a variable is captured, and type-checking in lambdas is slightly more accurate. llvm-svn: 149663
-
Eli Friedman authored
Note whether a lambda is mutable in the LambdaScopeInfo; this information will be necessary to handle references to captured variables. llvm-svn: 149660
-
Anna Zaks authored
a builtin. llvm-svn: 149657
-
Fariborz Jahanian authored
it is treated as of 'id' type resulting in multiple method lookup. // rdar://10686120 llvm-svn: 149653
-
Eli Friedman authored
llvm-svn: 149641
-
- Feb 02, 2012
-
-
Fariborz Jahanian authored
llvm-svn: 149639
-
Benjamin Kramer authored
Initialize the user defined conversion function to null if this is an aggregate initialization from an initializer list. Found by valgrind. llvm-svn: 149627
-
Fariborz Jahanian authored
type in continuation class. llvm-svn: 149625
-
Fariborz Jahanian authored
property to 'readwrite', also allow redeclaration of property type to a narrowring object type. // rdar://10790488 llvm-svn: 149614
-
Matt Beaumont-Gay authored
llvm-svn: 149610
-
Eli Friedman authored
Split Sema::MarkDeclarationReferenced into multiple functions; the additional entry points are needed to implement C++11 odr-use marking correctly. No functional change in this patch; I'll actually make the change which fixes the odr-use marking in a followup patch. llvm-svn: 149586
-
Fariborz Jahanian authored
is declaring ivars. // rdar://10752081 llvm-svn: 149573
-
Eli Friedman authored
Change the check for constant-conversion with width-1 bitfields so it doesn't suppress quite as many cases. Based off a testcase in the gcc testsuite. llvm-svn: 149572
-
Rafael Espindola authored
llvm-svn: 149559
-
- Feb 01, 2012
-
-
Fariborz Jahanian authored
changing the diagnostic. Also use correct spelling for both. llvm-svn: 149554
-
Anna Zaks authored
argument in strncat. The warning is ignored by default since it needs more qualification. TODO: The warning message and the note are messy when strncat is a builtin due to the macro expansion. llvm-svn: 149524
-
Douglas Gregor authored
llvm-svn: 149517
-
Douglas Gregor authored
cleans up and improves a few things: - We get rid of the ugly dance of computing all of the captures in data structures that clone those of CapturingScopeInfo, centralizing the logic for accessing/updating these data structures - We re-use the existing capture logic for 'this', which actually works now. Cleaned up some diagnostic wording in minor ways as well. llvm-svn: 149516
-
Douglas Gregor authored
type, be sure to add the qualifier for the enumeration type. llvm-svn: 149471
-
Richard Smith authored
a literal type. Disallow it as the return type of a constexpr function declaration. llvm-svn: 149469
-
Douglas Gregor authored
- Actually building the var -> capture mapping properly (there was an off-by-one error) - Keeping track of the source location of each capture - Minor QoI improvements, e.g, highlighing the prior capture if there are multiple captures, pointing at the variable declaration we found if we reject it. As part of this, add standard citations for the various semantic checks we perform, and note where we're not performing those checks as we should. llvm-svn: 149462
-
Nico Weber authored
Fixes PR11847. Patch from Jason Haslam! llvm-svn: 149460
-
Douglas Gregor authored
llvm-svn: 149458
-
Kaelyn Uhrain authored
llvm-svn: 149451
-
Fariborz Jahanian authored
CFBridgingRetain/CFBridgingRelease calls instead of __bridge_retained/__bridge_transfer casts as preferred way of moving cf objects to arc land. // rdar://10207950 llvm-svn: 149449
-
- Jan 31, 2012
-
-
Eli Friedman authored
llvm-svn: 149441
-
Eli Friedman authored
llvm-svn: 149440
-
Ted Kremenek authored
Revert r149359. This was a hack to a problem with an easy workaround, and it doesn't feel like general solution. llvm-svn: 149404
-
Jean-Daniel Dupas authored
llvm-svn: 149394
-
Ted Kremenek authored
Don't warn about -Wshorten-64-to-32 in unreachable code. Fixes <rdar://problem/10759934>. Apparently this is a common idiom in Linux (among other places). llvm-svn: 149359
-
Ted Kremenek authored
llvm-svn: 149358
-
Nico Weber authored
As discussed at http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120130/052200.html llvm-svn: 149325
-
- Jan 30, 2012
-
-
Richard Smith authored
expressions in C++11. llvm-svn: 149286
-
Jean-Daniel Dupas authored
This is to prevent diagnostic when using NSLocalizedString or CFCopyLocalizedString macros which are usually used in place of NS and CF strings literals. llvm-svn: 149268
-
Benjamin Kramer authored
llvm-svn: 149253
-
Jean-Daniel Dupas authored
- Remove the printf0 special handling as we treat it as printf anyway. - Perform basic checks (non-literal, empty) for all formats and not only printf/scanf. llvm-svn: 149236
-
- Jan 29, 2012
-
-
Douglas Gregor authored
@import <complete with module names here> or @import std.<complete with submodule names here> Addresses <rdar://problem/10710117>. llvm-svn: 149199
-
John McCall authored
like Darwin that don't support it. We should also complain about invalid -fvisibility=protected, but that information doesn't seem to exist at the most appropriate time, so I've left a FIXME behind. llvm-svn: 149186
-
- Jan 27, 2012
-
-
Abramo Bagnara authored
llvm-svn: 149127
-