| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Triple x86_64 has been added to the command line, so this test doesn't fail
on mips anymore.
llvm-svn: 192219
|
| |
|
|
| |
llvm-svn: 192211
|
| |
|
|
| |
llvm-svn: 192208
|
| |
|
|
| |
llvm-svn: 192204
|
| |
|
|
|
|
| |
holdover from the long-dead Action interface.
llvm-svn: 192203
|
| |
|
|
|
|
|
|
| |
In the test case one type is coming from a typedef with no default arg, the
other has the default arg. Taking the default arg from the typedef crashes, so
always use the real template paramter declaration. PR17510.
llvm-svn: 192202
|
| |
|
|
|
|
|
| |
In cl.exe, this flag turns some warnings into errors and adds some
codegen security checks. I don't think we intend to support this.
llvm-svn: 192201
|
| |
|
|
|
|
| |
This fixes PR16992 - Fixit missing when "sizeof type" found.
llvm-svn: 192200
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before:
struct aaaaaaaaaaaaa : public aaaaaaaaaaaaaaaaaaa< //
aaaaaaaaaaaaaaaa> {};
struct aaaaaaaaaaaaaaaaaaaa : public aaaaaaaaaaaaaaaaaaa<
aaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaa> {};
After:
struct aaaaaaaaaaaaa : public aaaaaaaaaaaaaaaaaaa< //
aaaaaaaaaaaaaaaa> {};
struct aaaaaaaaaaaaaaaaaaaa
: public aaaaaaaaaaaaaaaaaaa<aaaaaaaaaaaaaaaaaaaaa,
aaaaaaaaaaaaaaaaaaaaaa> {};
llvm-svn: 192187
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
Specifically make ConstructorInitializerAllOnOneLineOrOnePerLine work
nicely with BreakConstructorInitializersBeforeComma.
This fixes llvm.org/PR17395.
llvm-svn: 192168
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 192144
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Patch by David Ziman!
llvm-svn: 192141
|
| |
|
|
| |
llvm-svn: 192140
|
| |
|
|
| |
llvm-svn: 192131
|
| |
|
|
|
|
|
|
| |
'default' methods in Foundation does not
infer 'instancetype' for methods' result type.
// rdar://15145218
llvm-svn: 192129
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
declared locally in ObjectiveC containers.
// rdar://15143875
llvm-svn: 192127
|
| |
|
|
| |
llvm-svn: 192120
|
| |
|
|
|
|
|
| |
ownership attribute (such as 'copy', 'assign' etc.)
// rdar://15131088
llvm-svn: 192115
|
| |
|
|
|
|
| |
No functionality change.
llvm-svn: 192114
|
| |
|
|
|
|
| |
<rdar://problems/13710586&13710643>
llvm-svn: 192113
|
| |
|
|
|
|
| |
SQDMULH, SQRDMULH, FMULX, FRECPS, and FRSQRTS.
llvm-svn: 192112
|
| |
|
|
| |
llvm-svn: 192108
|
| |
|
|
|
|
| |
IsBlock, and IsLambda. [-Wunused-variable]
llvm-svn: 192095
|
| |
|
|
| |
llvm-svn: 192094
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 192067
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Formatting:
class C {
public:
f();
};
Now leads to:
class C {
public:
f();
};
llvm-svn: 192062
|
| |
|
|
|
|
| |
scan-build http://buildd-clang.debian.net/scan-build/
llvm-svn: 192061
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
function instead of custom logic.
llvm-svn: 192050
|
| |
|
|
|
|
| |
it is enabled. Also enable it on the same architectures that GCC does.
llvm-svn: 192045
|
| |
|
|
| |
llvm-svn: 192043
|
| |
|
|
|
|
| |
way we can remove the intrinsic support from the backend.
llvm-svn: 192036
|
| |
|
|
| |
llvm-svn: 192034
|
| |
|
|
|
|
| |
Patch by Daniel Marjamäki!
llvm-svn: 192030
|
| |
|
|
| |
llvm-svn: 192029
|
| |
|
|
|
|
| |
This was a leftover from r160847.
llvm-svn: 192027
|
| |
|
|
|
|
|
|
| |
DW_TAG_pointer_type is updated to use DITypeRef.
Paired commit with r192018.
llvm-svn: 192019
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
(assign/unsafe_unretained/weak/retain/strong/copy) in super class
to be overridden by a property with any explicit ownership in the
subclass. // rdar://15014468
llvm-svn: 191971
|