- Oct 08, 2013
-
-
Daniel Jasper authored
Also let clang-format-diff.py detect errors based on clang-format's return code. Otherwise messages like "Can't find usable .clang-format, falling back to LLVM style" can make it fail, which might be undesired. Patch by Alp Toker. Thank you! llvm-svn: 192184
-
Alp Toker authored
The bool conversion operator on InstantiatingTemplate never added value and only served to obfuscate the template instantiation routines. This replaces the conversion and its callers with an explicit isInvalid() function to make it clear what's going on at a glance. llvm-svn: 192177
-
Daniel Jasper authored
Specifically make ConstructorInitializerAllOnOneLineOrOnePerLine work nicely with BreakConstructorInitializersBeforeComma. This fixes llvm.org/PR17395. llvm-svn: 192168
-
Faisal Vali authored
As described by Richard in https://groups.google.com/a/isocpp.org/d/msg/std-discussion/S1kmj0wF5-g/fb6agEYoL2IJ we should allow: template<typename S> struct A { template<typename T> static auto default_lambda() { return [](const T&) { return 42; }; } template<class U = decltype(default_lambda<S>())> U func(U u = default_lambda<S>()) { return u; } }; int run2 = A<double>{}.func()(3.14); int run3 = A<char>{}.func()('a'); This patch allows the code using the same trickery that was used to allow the code in non-member functions at namespace scope. Please see http://llvm-reviews.chandlerc.com/D1844 for richard's approval. llvm-svn: 192166
-
Reid Kleckner authored
Summary: Operator new, new[], delete, and delete[] are all implicitly static when declared inside a record. CXXMethodDecl already knows this, but we need to account for that before we pick the calling convention for the function type. Fixes PR17371. Reviewers: rsmith CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1761 llvm-svn: 192150
-
Justin Bogner authored
In r186373, we started merging attributes on typedefs, but this causes us to try to merge attributes even if the previous declaration was not a typedef. Only merge the attributes if the previous decl was also a typedef. Fixes rdar://problem/15044218 llvm-svn: 192146
-
Manman Ren authored
An updated version of r191586 with bug fix. Struct-path aware TBAA generates tags to specify the access path, while scalar TBAA only generates tags to scalar types. We should not generate a TBAA tag with null being the first field. When a TBAA type node is null, the tag should be null too. Make sure we don't decorate an instruction with a null TBAA tag. Added a testing case for the bug reported by Richard with -relaxed-aliasing and -fsanitizer=thread. llvm-svn: 192145
-
Ted Kremenek authored
llvm-svn: 192144
-
Ted Kremenek authored
Fixes <rdar://problem/10679282>. I'm not completely satisfied with this patch. Sprinkling "diagnostic ignored" _Pragmas throughout this file is gross, but I couldn't suppress it for the entire file. llvm-svn: 192143
-
Reid Kleckner authored
Patch by David Ziman! llvm-svn: 192141
-
Richard Smith authored
llvm-svn: 192140
-
- Oct 07, 2013
-
-
Richard Smith authored
llvm-svn: 192131
-
Fariborz Jahanian authored
'default' methods in Foundation does not infer 'instancetype' for methods' result type. // rdar://15145218 llvm-svn: 192129
-
Richard Smith authored
extension. The GCC folks have decided to support this even though the standard committee have not yet approved this feature. Patch by Hristo Venev! llvm-svn: 192128
-
Fariborz Jahanian authored
declared locally in ObjectiveC containers. // rdar://15143875 llvm-svn: 192127
-
Matt Arsenault authored
llvm-svn: 192120
-
Fariborz Jahanian authored
ownership attribute (such as 'copy', 'assign' etc.) // rdar://15131088 llvm-svn: 192115
-
Jordan Rose authored
No functionality change. llvm-svn: 192114
-
Jordan Rose authored
<rdar://problems/13710586&13710643> llvm-svn: 192113
-
Chad Rosier authored
SQDMULH, SQRDMULH, FMULX, FRECPS, and FRSQRTS. llvm-svn: 192112
-
Argyrios Kyrtzidis authored
llvm-svn: 192108
-
NAKAMURA Takumi authored
Sema::tryCaptureVariable(): Prune three unused variables, HasBlocksAttr, IsBlock, and IsLambda. [-Wunused-variable] llvm-svn: 192095
-
Manuel Klimek authored
llvm-svn: 192094
-
Richard Smith authored
This change doesn't go all the way to making fields redeclarable; instead, it makes them 'mergeable', which means we can find the canonical declaration, but not much else (and for a declaration that's not from a module, the canonical declaration is always that declaration). llvm-svn: 192092
-
David Majnemer authored
Summary: Use the arguments given to the OS at process creation-time instead of the arguments passed into main() by the C runtime environment. The ones that main() received may not be suitable (e.g. not Unicode). Depends on D1834 CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1835 llvm-svn: 192091
-
Faisal Vali authored
In chicago, Doug had requested that I go ahead and commit the refactor as a separate change, if all the tests passed. Lets hope the buildbots stay quiet. Thanks! llvm-svn: 192087
-
- Oct 06, 2013
-
-
Timur Iskhodzhanov authored
llvm-svn: 192067
-
Daniel Jasper authored
Formatting: class C { public: f(); }; Now leads to: class C { public: f(); }; llvm-svn: 192062
-
Sylvestre Ledru authored
remove a dead assignment. The variables are set just right after. Found by scan-build http://buildd-clang.debian.net/scan-build/ llvm-svn: 192061
-
Mark Lacey authored
In functions that only need to use the CGCXXABI member of a CodeGenTypes class, pass that reference around directly rather than a reference to a CodeGenTypes class. This makes the actual dependence on CGCXXABI clear at the call sites. llvm-svn: 192052
-
Aaron Ballman authored
Switching the CallableWhen attribute over to using the string literal helper function instead of custom logic. llvm-svn: 192050
-
- Oct 05, 2013
-
-
Nick Lewycky authored
it is enabled. Also enable it on the same architectures that GCC does. llvm-svn: 192045
-
Aaron Ballman authored
llvm-svn: 192043
-
Craig Topper authored
Use logical/arithmetic operations instead of builtins in tbmintrin.h. This way we can remove the intrinsic support from the backend. llvm-svn: 192036
-
Simon Atanasyan authored
llvm-svn: 192034
-
Benjamin Kramer authored
Patch by Daniel Marjamäki! llvm-svn: 192030
-
Jiangning Liu authored
llvm-svn: 192029
-
Alp Toker authored
This was a leftover from r160847. llvm-svn: 192027
-
Manman Ren authored
DW_TAG_pointer_type is updated to use DITypeRef. Paired commit with r192018. llvm-svn: 192019
-
- Oct 04, 2013
-
-
DeLesley Hutchins authored
that a function can be called in. This reduced the total number of annotations needed and makes writing more complicated behaviour less burdensome. Patch by chriswails@gmail.com. llvm-svn: 191983
-