- Aug 08, 2012
-
-
Eli Friedman authored
member of reference type in an anonymous struct. PR13154. llvm-svn: 161473
-
Eli Friedman authored
llvm-svn: 161472
-
Fariborz Jahanian authored
memory models, except when arc is accessing a weak ivar (which is an error). // rdar://6505197 llvm-svn: 161458
-
Chad Rosier authored
llvm-svn: 161455
-
Richard Smith authored
and the other is a glvalue of class type, don't forget to copy-initialize a temporary when performing the lvalue-to-rvalue conversion on the glvalue. Strangely, DefaultLvalueConversions misses this part of the lvalue-to-rvalue conversions. llvm-svn: 161450
-
- Aug 07, 2012
-
-
Richard Smith authored
for side-effects. Instead, check for side-effects after performing initialization. Doing so also removes some strange corner cases and differences between in-class initialization and constructor initialization. llvm-svn: 161449
-
Fariborz Jahanian authored
objc_release for performance for these most often called APIs. // rdar://12040837 llvm-svn: 161448
-
Bob Wilson authored
If you build with -fobjc-arc, then -fobjc-link-runtime is implied but we don't need to warn about it being unused in that case. rdar://12039965 llvm-svn: 161444
-
Dmitri Gribenko authored
Comment XML: add a root node kind for enums. llvm-svn: 161442
-
Dmitri Gribenko authored
llvm-svn: 161435
-
Fariborz Jahanian authored
Allow direct ivar access in init and dealloc methods in mrr. // rdar://650197 llvm-svn: 161426
-
Hans Wennborg authored
llvm-svn: 161408
-
Hans Wennborg authored
This is useful for example for %n in printf, which expects a pointer to int with the same logic for checking as %d would have in scanf. llvm-svn: 161407
-
Hans Wennborg authored
Also remove redundant constructors and unused member functions. llvm-svn: 161403
-
Douglas Gregor authored
non-POD. Fixes <rdar://problem/12031870>. llvm-svn: 161395
-
Richard Smith authored
update implementation to match. An elidable, non-trivial constructor call is a side-effect under this definition, but wasn't under the old one, because we are not required to evaluate it even though it may have an effect. Also rationalize checking for volatile reads: just look for lvalue-to-rvalue conversions on volatile glvalues, and ignore whether a DeclRefExpr etc is for a volatile variable. llvm-svn: 161393
-
Anna Zaks authored
llvm-svn: 161391
-
Richard Smith authored
was mistakenly classifying dynamic_casts which might throw as having no side effects. Switch it from a visitor to a switch, so it is kept up-to-date as future Expr nodes are added. Move it from ExprConstant.cpp to Expr.cpp, since it's not really related to constant expression evaluation. Since we use HasSideEffect to determine whether to emit an unused global with internal linkage, this has the effect of suppressing emission of globals in some cases. I've left many of the Objective-C cases conservatively assuming that the expression has side-effects. I'll leave it to someone with better knowledge of Objective-C than mine to improve them. llvm-svn: 161388
-
Eric Christopher authored
just let the alignment be zero. PR13531 llvm-svn: 161379
-
Chad Rosier authored
the ASTContext BumpPtr. Also use the preferred llvm::ArrayRef interface. llvm-svn: 161373
-
Eric Christopher authored
llvm-svn: 161369
-
Eric Christopher authored
that we attach the lost qualifiers. Fixes rdar://11882155 llvm-svn: 161368
-
Ted Kremenek authored
llvm-svn: 161367
-
Fariborz Jahanian authored
// rdar://6505197 llvm-svn: 161362
-
Dmitri Gribenko authored
command, for example: \tparam\brief. llvm-svn: 161361
-
Anna Zaks authored
I currently have a bit of redundancy with the cast kind switch statement inside the ImplicitCast callback, but I might be adding more casts going forward. llvm-svn: 161358
-
Anna Zaks authored
Instead of sprinkling dynamic type info propagation throughout ExprEngine, the added checker would add the more precise type information on known APIs (Ex: ObjC alloc, new) and propagate the type info in other cases (ex: ObjC init method, casts (the second is not implemented yet)). Add handling of ObjC alloc, new and init to the checker. llvm-svn: 161357
-
David Blaikie authored
The one caller that's surrounded by nearby code manipulating the underlying evaluation context list is left unmodified for readability. Review by Sean Silva and Richard Smith. llvm-svn: 161355
-
- Aug 06, 2012
-
-
Dmitri Gribenko authored
llvm-svn: 161352
-
Jordan Rose authored
llvm-svn: 161350
-
Jordan Rose authored
The frameworks correctly use the 'cf_consumed' and 'ns_returns_retained' attributes for NSMakeCollectable, but we can model the behavior under garbage collection more precisely than that. No functionality change. llvm-svn: 161349
-
Richard Trieu authored
in duplicate -Wuninitialized warnings. Change so that only the check in TryConstructorInitialization() will be used and a single warning be emitted. llvm-svn: 161345
-
Chad Rosier authored
change intended. No test case as there's no real way to test at this time. llvm-svn: 161342
-
Dmitri Gribenko authored
llvm-svn: 161331
-
Dmitri Gribenko authored
Doxygen manual claims that multiple \brief or \returns commands will be merged together, but actual behavior is different (second \brief command becomes a part of a discussion, second \returns becomes a "Returns: blah" paragraph on its own). Anyway, it seems to be a bad idea to use multiple \brief or \returns commands in a single command. llvm-svn: 161325
-
Dmitri Gribenko authored
ObjC methods. llvm-svn: 161324
-
Richard Smith authored
'clang-cpp'. For now, the test uses "REQUIRES: shell" to determine if the host system supports "ln -s", which it uses to create a 'clang-cpp' symlink. This is a bit hacky and should likely be directly supported by lit.cfg. llvm-svn: 161317
-
Richard Smith authored
we know whether the function is virtual. But check it as soon as we do know; in some cases we don't need to wait for an instantiation. llvm-svn: 161316
-
Richard Smith authored
been defined. llvm-svn: 161315
-
Hal Finkel authored
llvm-svn: 161310
-