| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
| |
which allows custom checks to register callback creator functions for creating
BugReporterVisitor objects. This allows various checks to include diagnostics
such as 'assuming value is null' with little extra work. Eventually this API
should be refactored to be cleaner and more simple.
llvm-svn: 79302
|
| |
|
|
| |
llvm-svn: 79291
|
| |
|
|
| |
llvm-svn: 79290
|
| |
|
|
|
|
| |
convention. This has been tested on FreeBSD, and now correctly generates GCC-compatible code for functions returning small structures. Please test it on other platforms!
llvm-svn: 79288
|
| |
|
|
| |
llvm-svn: 79271
|
| |
|
|
|
|
|
|
| |
one is not provided by user. 2) More complete
emission of ctor prologue when it has no initializer
list or when it is synthesized.
llvm-svn: 79269
|
| |
|
|
| |
llvm-svn: 79261
|
| |
|
|
| |
llvm-svn: 79259
|
| |
|
|
|
|
|
|
|
|
| |
Objective-C code.
This currently breaks test/SemaObjC/id-isa-ref.m and issues some spurious warnings when you attempt to assign a struct objc_class* value to a Class variable. The test case probably should fail as it's written, because without the definition of Class the compiler should not assume struct objc_class* is a valid receiver type, but it's left broken because it would be nice if we could get that passing too for the special case of isa.
Approved by snaroff.
llvm-svn: 79248
|
| |
|
|
| |
llvm-svn: 79236
|
| |
|
|
| |
llvm-svn: 79229
|
| |
|
|
|
|
|
| |
of GRStateManager and GRExprEngine, pass the initial location context
to the getInitialState() method.
llvm-svn: 79228
|
| |
|
|
| |
llvm-svn: 79211
|
| |
|
|
| |
llvm-svn: 79205
|
| |
|
|
| |
llvm-svn: 79201
|
| |
|
|
| |
llvm-svn: 79200
|
| |
|
|
| |
llvm-svn: 79199
|
| |
|
|
| |
llvm-svn: 79198
|
| |
|
|
| |
llvm-svn: 79197
|
| |
|
|
| |
llvm-svn: 79196
|
| |
|
|
|
|
|
|
|
|
|
|
| |
is found. Instead of complaining about a generic "unused expr",
emit:
t.m:7:3: warning: property access result unused - getters should not have side effects
While objc property getters *could* have side effects, according to
the language best practices, they *shouldn't*. Hopefully the
diagnostic now gets this across.
llvm-svn: 79192
|
| |
|
|
| |
llvm-svn: 79191
|
| |
|
|
|
|
|
| |
warnings, but it fails because we don't have the location of the .
and I don't understand ObjCKVCRefExpr. I'll revisit this later.
llvm-svn: 79190
|
| |
|
|
|
|
| |
temporaries from being destroyed when they're bound to a reference variable.
llvm-svn: 79179
|
| |
|
|
|
|
| |
simple cases like the constant string.
llvm-svn: 79178
|
| |
|
|
|
|
| |
create the CXXExprWithTemporaries before setting the initializer on the VarDecl.
llvm-svn: 79176
|
| |
|
|
| |
llvm-svn: 79173
|
| |
|
|
| |
llvm-svn: 79172
|
| |
|
|
| |
llvm-svn: 79171
|
| |
|
|
| |
llvm-svn: 79168
|
| |
|
|
| |
llvm-svn: 79166
|
| |
|
|
|
|
| |
CheckFunctionCall and CheckBlockCall return bool instead. No intended functionality change.
llvm-svn: 79157
|
| |
|
|
| |
llvm-svn: 79156
|
| |
|
|
| |
llvm-svn: 79149
|
| |
|
|
|
|
|
| |
initializes all the members; this fixes a valgrind error in the
regression tests.
llvm-svn: 79148
|
| |
|
|
| |
llvm-svn: 79147
|
| |
|
|
| |
llvm-svn: 79145
|
| |
|
|
| |
llvm-svn: 79143
|
| |
|
|
| |
llvm-svn: 79128
|
| |
|
|
|
|
|
| |
simplifies the AST, and can matter in some rare cases involving
casts to vector types. Patch by Enea Zaffanella.
llvm-svn: 79126
|
| |
|
|
|
|
|
| |
constructor body whose class has non-static data-members which
required non-trivial construction.
llvm-svn: 79125
|
| |
|
|
| |
llvm-svn: 79075
|
| |
|
|
| |
llvm-svn: 79074
|
| |
|
|
| |
llvm-svn: 79073
|
| |
|
|
|
|
|
| |
which is either a stack frame context of the function or a local scope
context.
llvm-svn: 79072
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
consistent model for handling size expressions for VLAs.
The model is essentially as follows: VLA types own their associated
expression. In some cases, we need to create multiple VLA types to
represent a given VLA (for canonical types, or qualifiers on array types,
or type merging). If we need to create multiple types based off of
the same VLA declaration, we use the new refcounting functionality so they can
all own the expression. The VLASizeMap in CodeGenFunction then uses the size
expression to identify the group of VLA types based off of the same original
declaration.
I'm not particularly attached to the VLA types owning the expression,
but we're stuck with at least until someone comes up with a way
to walk the VLA expressions for a declaration.
I did the parallel fix in ASTContext for DependentSizedArrayType, but I
haven't really looked closely at it, so there might still be issues
there.
I'll clean up the code duplication in ASTContext in a followup commit.
llvm-svn: 79071
|
| |
|
|
| |
llvm-svn: 79070
|
| |
|
|
|
|
|
|
|
|
| |
declarations (and not function pointers). This is consistent with GCC. Accepting
this attribute on function pointers means that the attribute should be treated
as a type qualifier, which apparently is not what GCC does. We obviously can
change this later should we desire to enhance the 'malloc' attribute in this
way.
llvm-svn: 79060
|
| |
|
|
| |
llvm-svn: 79059
|
| |
|
|
|
|
| |
VLASize isn't populated for the type yet.
llvm-svn: 79057
|