| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
// rdar://10453342
llvm-svn: 145358
|
| |
|
|
|
|
| |
code. We will reconsider promoting it back to an error later.
llvm-svn: 143470
|
| |
|
|
|
|
|
| |
decl. in Darwin due to certain projects requirement.
// rdar://10277579
llvm-svn: 143082
|
| |
|
|
| |
llvm-svn: 142760
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
class declaration which forces any such class and any
class that inherits from such a class to have their
typeinfo symbols be marked as weak.
// rdar://10246395
A test/CodeGenCXX/weak-extern-typeinfo.cpp
M lib/Sema/SemaDeclCXX.cpp
M lib/Sema/SemaDeclAttr.cpp
M lib/CodeGen/CGRTTI.cpp
llvm-svn: 142693
|
| |
|
|
|
|
|
| |
'Class' is disallowed as argument. If the argument is missing,
NSObject is assumed. // rdar://10296078
llvm-svn: 142409
|
| |
|
|
|
|
| |
attributes are found, propagate them to subsequent declarations.
llvm-svn: 141861
|
| |
|
|
|
|
| |
or return types are dependent. Fixes PR9049.
llvm-svn: 141518
|
| |
|
|
|
|
|
| |
for better self-documenting code, since the semantics
are subtly different from getDefinition().
llvm-svn: 141355
|
| |
|
|
|
|
|
|
| |
unavailable;
only give an 'unavailable' error on the @implementation of the category. rdar://10234078
llvm-svn: 141335
|
| |
|
|
|
|
|
|
| |
interface/implementation
don't emit unavailable errors.
llvm-svn: 141334
|
| |
|
|
|
|
| |
functions. // rdar://10186536
llvm-svn: 141037
|
| |
|
|
| |
llvm-svn: 141002
|
| |
|
|
|
|
| |
on declarators written as types.
llvm-svn: 140931
|
| |
|
|
|
|
|
| |
a reference type, since inner reference is much like an inner pointer.
// rdar://10139365
llvm-svn: 140880
|
| |
|
|
|
|
|
|
|
|
|
| |
CoreFoundation object-transfer properties audited, and add a #pragma
to cause them to be automatically applied to functions in a particular
span of code. This has to be implemented largely in the preprocessor
because of the requirement that the region be entirely contained in
a single file; that's hard to impose from the parser without registering
for a ton of callbacks.
llvm-svn: 140846
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
pointer to the annotated struct type can be used as an
Objective-C object pointer. If an argument is given, the
type is actually "toll-free bridged" to the specific type
named there, rather than just to 'id'.
For now, we cannot rely on all types being so annotated,
and we'll always have to have exceptions for things like
CFTypeRef (aka const void*), but this is clearly a good
foundation for improving toolage in this area.
llvm-svn: 140779
|
| |
|
|
|
|
| |
annotation to Objective-C object types. Fixes <rdar://problem/10142685>.
llvm-svn: 140778
|
| |
|
|
|
|
|
| |
in arc mode and are in system headers as unavailable.
// rdar://10186625
llvm-svn: 140565
|
| |
|
|
| |
llvm-svn: 140407
|
| |
|
|
| |
llvm-svn: 140367
|
| |
|
|
| |
llvm-svn: 140268
|
| |
|
|
|
|
|
|
| |
that this flag must be used only for Microsoft extensions and not emulation; to avoid confusion with the new LangOptions::MicrosoftMode flag.
Many of the code now under LangOptions::MicrosoftExt will eventually be moved under the LangOptions::MicrosoftMode flag.
llvm-svn: 139987
|
| |
|
|
| |
llvm-svn: 139894
|
| |
|
|
| |
llvm-svn: 139805
|
| |
|
|
|
|
| |
Depends on a llvm tablegen commit.
llvm-svn: 139618
|
| |
|
|
| |
llvm-svn: 139600
|
| |
|
|
| |
llvm-svn: 139599
|
| |
|
|
|
|
|
| |
annotate global, local variables, struct fields, or arbitrary statements (using
the __builtin_annotation), rdar://8037476.
llvm-svn: 139423
|
| |
|
|
|
|
|
|
|
|
|
|
| |
what 'nullPos' is supposed to mean, at least at this one site.
Use closed forms for the arithmetic. Rip out some clever but
ultimately pointless code that was trying to use 0 or 0L depending
the size of a pointer vs. the size of int; first, it didn't work
on LLP64 systems, and second, the sentinel checking code requires
a pointer-typed value anyway, so this fixit would not have actually
removed the warning.
llvm-svn: 139361
|
| |
|
|
|
|
| |
This patch was written by DeLesley Hutchins.
llvm-svn: 139302
|
| |
|
|
|
|
| |
ParmVarDecl's. PR10878.
llvm-svn: 139224
|
| |
|
|
| |
llvm-svn: 139078
|
| |
|
|
|
|
|
|
| |
builtin types (When requested). This is another step toward making
ASTUnit build the ASTContext as needed when loading an AST file,
rather than doing so after the fact. No actual functionality change (yet).
llvm-svn: 138985
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
system flags an error when unlocking a lock which was not held, locking
the same lock twice, having a different lockset on each iteration of a
loop, or going out of scope while still holding a lock. In order to
successfully use the lockset, this patch also makes sure that attribute
arguments are attached correctly for later parsing.
This patch was also worked on by DeLesley Hutchins.
Note: This patch has been reviewed by Chandler Carruth and Jeffrey
Yasskin. Feel free to provide post-commit review comments for a
subsequent patch.
llvm-svn: 138350
|
| |
|
|
| |
llvm-svn: 138032
|
| |
|
|
| |
llvm-svn: 137216
|
| |
|
|
|
|
| |
in the same version that it is introduced. Stuff happens.
llvm-svn: 137214
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This patch special cases the parser for thread safety attributes so that all
attribute arguments are put in the argument list (instead of a special
parameter) since arguments may not otherwise resolve correctly without two-token
lookahead.
This patch also adds checks to make sure that attribute arguments are
lockable objects.
llvm-svn: 137130
|
| |
|
|
| |
llvm-svn: 136679
|
| |
|
|
|
|
|
| |
analysis. This includes checking that the attributes are applied in the
correct contexts and with the correct number of arguments.
llvm-svn: 136383
|
| |
|
|
| |
llvm-svn: 136368
|
| |
|
|
|
|
| |
scoped_lockable, and no_thread_safety_analysis attributes, all for thread safety analysis
llvm-svn: 136364
|
| |
|
|
| |
llvm-svn: 136210
|
| |
|
|
|
|
|
|
| |
LLVM.h imports
them into the clang namespace.
llvm-svn: 135852
|
| |
|
|
|
|
|
|
|
| |
Introduce and document a new objc_returns_inner_pointer
attribute, and consume it by performing a retain+autorelease
on message receivers when they're not immediately loaded from
an object with precise lifetime.
llvm-svn: 135764
|
| |
|
|
|
|
| |
Patch by Caitlin Sadowski.
llvm-svn: 134938
|
| |
|
|
|
|
|
|
| |
into a static helper.
Original patch by Caitlin Sadowski, style tweaks by me.
llvm-svn: 134937
|
| |
|
|
|
|
|
| |
classes which are incompatible with weak references.
// rdar://9693477
llvm-svn: 134522
|
| |
|
|
|
|
|
|
|
| |
SemaDeclAttr to the first argument. This makes them follow the very
consistent policy elsewhere in Sema for helper functions.
Original patch by Caitlin Sadowski, with some tweaking by me.
llvm-svn: 134290
|