- Jul 20, 2012
-
-
Eric Christopher authored
or implementation since we've now got a different layout. Fixes rdar://11842763 llvm-svn: 160526
-
- Jul 19, 2012
-
-
Aaron Ballman authored
llvm-svn: 160522
-
Dmitri Gribenko authored
llvm-svn: 160519
-
Jordan Rose authored
While we still want to consider this a hard error (non-POD variadic args are normally a DefaultError warning), delaying the diagnostic allows us to give better error messages, which also match the usual non-POD errors more closely. In addition, this change improves the diagnostic messages for format string argument type mismatches by passing down the type of the callee, so we can say "variadic method" or "variadic function" appropriately. <rdar://problem/11825593> llvm-svn: 160517
-
Jordan Rose authored
Previously, we would ask for the SourceLocation of an argument even if it were NULL (i.e. if Sema resulted in an ExprError trying to build it). <rdar://problem/11890818> llvm-svn: 160515
-
Ted Kremenek authored
Simplify UninitializedValues.cpp by removing logic to handle the previous (imprecise) representation of '&&' and '||' in the CFG. This is no longer needed, and greatly simplifies the code. llvm-svn: 160494
-
Bob Wilson authored
This macro was being unconditionally set to zero, preceded by a FIXME comment. This fixes <rdar://problem/11845441>. Patch by Michael Gottesman! llvm-svn: 160491
-
Aaron Ballman authored
Relaxed enumeration constant naming rules for scoped enumerators so they no longer emit a diagnostic when the enumeration's name matches that of the class. Fixes PR13128. llvm-svn: 160490
-
Richard Smith authored
llvm-svn: 160488
-
Bob Wilson authored
The hack of recognizing a -D__IPHONE_OS_VERSION_MIN_REQUIRED option in place of -mios-simulator-version-min leaves the Darwin version unspecified. It can be set separately with -mmacosx-version-min (which makes no sense) or inferred to match the host version (which is unpredictable and usually wrong). This really needs to get cleaned up, but in the meantime, force the OS X version to 10.6 so that the behavior is sane for the iOS simulator. Thanks for Argyrios for the patch. <rdar://problem/11858187> llvm-svn: 160484
-
Dmitri Gribenko authored
llvm-svn: 160481
-
Dmitri Gribenko authored
TextComment node was considered whitespace even if it contained other child nodes. llvm-svn: 160474
-
Richard Smith authored
Panzer. I've not been able to trigger a failure caused by this, so no test yet. Also included is a small change from Paul Robinson to only consider the FailureKind if the overload candidate did actually fail. llvm-svn: 160470
-
Dmitri Gribenko authored
llvm-svn: 160467
-
Dmitri Gribenko authored
llvm-svn: 160464
-
- Jul 18, 2012
-
-
Jordan Rose authored
As pointed out by Anna, we only differentiate between explicit message sends This also adds support for ObjCSubscriptExprs, which are basically the same as properties in many ways. We were already checking these, but not emitting nice messages for them. This depends on the llvm::PointerIntPair change in r160456. llvm-svn: 160461
-
Jordan Rose authored
Per Anna's comment that "add..." sounds like a method that modifies the receiver, rather than its argument. No functionality change. llvm-svn: 160460
-
Jordan Rose authored
We will need to be able to easily reconstruct a CallEvent from an ExplodedNode for diagnostic purposes, and that's exactly what factory functions are for. CallEvent objects are small enough (four pointers and a SourceLocation) that returning them through the stack is fairly cheap. Clients who just need to use existing CallEvents can continue to do so using const references. This uses the same sort of "kind-field-dispatch" as SVal, though most of the nastiness is contained in the DISPATCH and DISPATCH_ARG macros at the end of the file. (We can't use a template for this because member-pointers to base class methods don't call derived-class methods even when casting to the derived class. We can't use variadic macros because they're a C99 feature.) llvm-svn: 160459
-
Jordan Rose authored
ObjC properties are handled through their semantic form of ObjCMessageExprs and their wrapper PseudoObjectExprs, and have been for quite a while. The syntactic ObjCPropertyRefExprs do not appear in the CFG and are not visited by ExprEngine. No functionality change. llvm-svn: 160458
-
Jordan Rose authored
llvm-svn: 160457
-
Dmitri Gribenko authored
llvm-svn: 160453
-
Dmitri Gribenko authored
llvm-svn: 160452
-
Benjamin Kramer authored
This enables the faster SmallVector in clang and also allows clang's unused variable warnings to be more effective. Fix the two instances that popped up. The RetainCountChecker change actually changes functionality, it would be nice if someone from the StaticAnalyzer folks could look at it. llvm-svn: 160444
-
Dmitri Gribenko authored
despite __attribute__(__used__). As explained by Argyrios, > .a archive files do some stripping of their own and they remove .o files that > contain functions that are not referenced by any other .o file. The fix is to use these functions from another .o file. Thanks, Argyrios! llvm-svn: 160437
-
Alexander Kornienko authored
llvm-svn: 160432
-
Ted Kremenek authored
(in uses of dynamic_cast<>). Fixes <rdar://problem/11817693>. llvm-svn: 160427
-
Ted Kremenek authored
Teach CFG construction about destructors resulting from references to array types. Fixes crash in <rdar://problem/11671507>. llvm-svn: 160424
-
Richard Smith authored
be defined as deleted, take cv-qualifiers on class members into account when looking up the copy or move constructor or assignment operator which will be used for them. llvm-svn: 160418
-
Richard Smith authored
constructor will be used for moving that object, in the computation of its exception specification. llvm-svn: 160417
-
Richard Smith authored
and a function template instantiation, if there's a parameter pack in the declaration and one at the same place in the instantiation, don't assume that the pack wasn't expanded -- it may have expanded to nothing. Instead, go ahead and check whether the parameter pack was expandable. We can do this as a side-effect of the work we'd need to do anyway, to find how many parameters were produced. llvm-svn: 160416
-
Dmitri Gribenko authored
llvm-svn: 160414
-
Douglas Gregor authored
[temp.deduct.call]p4 under Objective-C++ ARC, make sure to adjust the qualifiers to introduce the implicit strong lifetime when needed. Fixes <rdar://problem/11825671>. llvm-svn: 160412
-
Joel Jones authored
intrinsics. The second instruction(s) to be handled are the vector versions of count set bits (ctpop). The changes here are to clang so that it generates a target independent vector ctpop when it sees an ARM dependent vector bits set count. The changes in llvm are to match the target independent vector ctpop and in VMCore/AutoUpgrade.cpp to update any existing bc files containing ARM dependent vector pop counts with target-independent ctpops. There are also changes to an existing test case in llvm for ARM vector count instructions and to a test for the bitcode upgrade. <rdar://problem/11892519> There is deliberately no test for the change to clang, as so far as I know, no consensus has been reached regarding how to test neon instructions in clang; q.v. <rdar://problem/8762292> llvm-svn: 160409
-
Douglas Gregor authored
completions. Fixes <rdar://problem/11889572>. llvm-svn: 160407
-
Aaron Ballman authored
Adding a fixit for includes that cannot be found with angle brackets, but can be found with quoted strings instead. Implements PR13201. llvm-svn: 160406
-
Dmitri Gribenko authored
given declaration. It is based on the observation that during parsing the comment that should be attached to the decl is usually among the last two documentation comments parsed. llvm-svn: 160400
-
- Jul 17, 2012
-
-
Dmitri Gribenko authored
llvm-svn: 160396
-
Douglas Gregor authored
better. Fixes <rdar://problem/11466212>; the test (and back-ported version of this code) were committed to LLDB in r160186. llvm-svn: 160395
-
Eli Friedman authored
Don't treat overflow in floating-point conversions as a hard error in constant evaluation. <rdar://problem/11874571>. llvm-svn: 160394
-
Rafael Espindola authored
Fixes pr13353.cpp. llvm-svn: 160393
-