- 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
-
Dmitri Gribenko authored
implementation was changed to a union of bitfields. llvm-svn: 161447
-
Douglas Gregor authored
llvm-svn: 161445
-
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
-
Ted Kremenek authored
llvm-svn: 161443
-
Dmitri Gribenko authored
Comment XML: add a root node kind for enums. llvm-svn: 161442
-
Anna Zaks authored
Warns on anti-patterns/typos in the 'size' argument to strncat. The correct size argument should look like the following: - strncat(dst, src, sizeof(dst) - strlen(dest) - 1); We warn on: - sizeof(dst) - sizeof(src) - sizeof(dst) - strlen(dst) - sizeof(src) - anything (This has been implemented in void Sema::CheckStrncatArguments().) llvm-svn: 161440
-
Dmitri Gribenko authored
llvm-svn: 161439
-
Dmitri Gribenko authored
llvm-svn: 161436
-
Dmitri Gribenko authored
llvm-svn: 161435
-
Dmitri Gribenko authored
The implementation also includes a Relax NG schema and tests for the schema itself. The schema is used in c-index-test to verify that XML documents we produce are valid. In order to do the validation, we add an optional libxml2 dependency for c-index-test. Credits for CMake part go to Doug Gregor. Credits for Autoconf part go to Eric Christopher. Thanks! llvm-svn: 161431
-
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
-
Chandler Carruth authored
if checked out under clang/tools/extra. This is mostly so folks other than me can start to test. Documentation, details, and an announcement are still in the works. llvm-svn: 161405
-
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: 161392
-
Anna Zaks authored
llvm-svn: 161391
-
Eric Christopher authored
llvm-svn: 161390
-
Ted Kremenek authored
included in warning groups. Warning groups can only contain warnings, because only warnings can be mapped to errors or ignored. This caught a few diagnostics that were incorrectly in diagnostic groups, and could have resulted in a compiler crash when those diagnostic groups were mapped. Fixes <rdar://problem/12044436> llvm-svn: 161389
-
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
-
Jordan Rose authored
This is an additional test for r161349 (ignoring 10.8's annotations for NSMakeCollectable). llvm-svn: 161380
-
Eric Christopher authored
just let the alignment be zero. PR13531 llvm-svn: 161379
-
Ted Kremenek authored
Remove two fall through diagnostics from the IgnoredAttributes group, since they are errors, not warnings. Only warnings should be in warning groups. This was causing an assertion failure in code using pragmas to map -Wignored-attributes to ignored, but this kind of diagnostic mapping is disallowed for builtin errors. We should just wire up tablegen to reject errors being in diagnostic groups. llvm-svn: 161376
-
Chad Rosier authored
the ASTContext BumpPtr. Also use the preferred llvm::ArrayRef interface. llvm-svn: 161373
-
Eric Christopher authored
llvm-svn: 161372
-
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
-
Anna Zaks authored
Dynamic type inference does the right thing in this case. However, as Jordan suggested, it would be nice to add a warning here as well. llvm-svn: 161365
-
Fariborz Jahanian authored
// rdar://6505197 llvm-svn: 161362
-
Dmitri Gribenko authored
command, for example: \tparam\brief. llvm-svn: 161361
-