| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
We wouldn't transform the compound statement in any of these forms,
causing crashes when it got time to act on them. Additionally, we
wouldn't check to see if the handler was invalid before deciding whether
or not we should continue acting on the __try.
This fixes PR17584.
llvm-svn: 192682
|
| |
|
|
|
|
|
|
|
|
| |
virtual base
icc 13 and g++ 4.9 both reject this while we would crash.
Fixes PR17578.
llvm-svn: 192674
|
| |
|
|
|
|
|
|
| |
that can represent unicode characters
Fixes <rdar://problem/13991617>.
llvm-svn: 192673
|
| |
|
|
|
|
| |
from a patch by Justin Bogner.
llvm-svn: 192671
|
| |
|
|
|
|
| |
a patch by Michael Han.
llvm-svn: 192666
|
| |
|
|
|
|
|
|
|
| |
If a class is using the unspecified inheritance model for member
pointers and later we find the class is defined to use single
inheritance, zero out the vbptr offset field of the member pointer when
it is formed.
llvm-svn: 192664
|
| |
|
|
|
|
|
|
| |
migration to NS_ENUM/NS_OPTIONS macros; when
typedef'ed to NSInteger/NSUInteger preceeds well
before of the enum declaration. // rdar://15201056
llvm-svn: 192645
|
| |
|
|
|
|
|
|
|
|
|
| |
that looks like a function declaration, except that it's missing a return type,
try typo-correcting it to the relevant constructor name.
In passing, fix a bug where the missing-type-specifier recovery codepath would
drop a preceding scope specifier on the floor, leading to follow-on diagnostics
and incorrect recovery for the auto-in-c++98 hack.
llvm-svn: 192644
|
| |
|
|
|
|
| |
ABI mangling for qualified id<...>. Fixes <rdar://problem/14799110>.
llvm-svn: 192643
|
| |
|
|
| |
llvm-svn: 192640
|
| |
|
|
|
|
| |
also removes an unnecessary diagnostic.
llvm-svn: 192639
|
| |
|
|
|
|
|
|
| |
We have to reserve at least the width of a pointer for the vfptr. For
classes with small alignment, we weren't reserving enough space, and
were overlapping the first field with the vfptr.
llvm-svn: 192626
|
| |
|
|
|
|
|
|
|
|
| |
This patch fixes the distructor test when checking for vtordisp requirements in
microsoft record layout. A test case is also included.
Addresses:
http://llvm.org/bugs/show_bug.cgi?id=16406#c7
llvm-svn: 192616
|
| |
|
|
|
|
| |
Adjust linkage to make more sense for older releases.
llvm-svn: 192615
|
| |
|
|
| |
llvm-svn: 192613
|
| |
|
|
|
|
|
|
|
|
| |
OpaqueValueExprs.
Fixes a false positive with -Wconversion involving Objective-C properties.
Fixes <rdar://problem/14415662>.
llvm-svn: 192611
|
| |
|
|
|
|
| |
No functionality change.
llvm-svn: 192598
|
| |
|
|
| |
llvm-svn: 192597
|
| |
|
|
|
|
|
|
| |
This patch fixes PR17019. When doing typo correction, Sema::CorrectTypo uses
correction already seen for the same typo. This causes problems if that
correction is from another scope and cannot be accessed in the current.
llvm-svn: 192594
|
| |
|
|
| |
llvm-svn: 192570
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
indentation with tabs.
Summary:
Store IndentationLevel in ParentState and use it instead of the
Line::Level when indening.
Also fixed incorrect indentation level calculation in formatFirstToken.
Reviewers: djasper
Reviewed By: djasper
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D1797
llvm-svn: 192563
|
| |
|
|
| |
llvm-svn: 192560
|
| |
|
|
|
|
| |
an accidentally-included name for the declarator.
llvm-svn: 192559
|
| |
|
|
| |
llvm-svn: 192551
|
| |
|
|
|
|
| |
If the edit distance between the two macros is more than 50%, DefinedMacro may not be header guard or can be header guard of another header file or it might be defining something completely different set by the build environment.
llvm-svn: 192547
|
| |
|
|
|
|
|
|
| |
While it is mostly a user error to have the extra semicolon,
formatting it graciously will correctly format in the cases
where we do not fully understand the code (macros).
llvm-svn: 192543
|
| |
|
|
| |
llvm-svn: 192535
|
| |
|
|
|
|
| |
Patch from Rami Ylimäki and Mikael Lepistö!
llvm-svn: 192531
|
| |
|
|
| |
llvm-svn: 192524
|
| |
|
|
|
|
| |
attribute. Patch by chris.wailes@gmail.com; reviewed and edited by delesley.
llvm-svn: 192515
|
| |
|
|
|
|
| |
tests_typestate attribute. Patch by chris.wailes@gmail.com.
llvm-svn: 192513
|
| |
|
|
|
|
|
|
|
| |
function parameter that has array type. Such a parameter will be treated as
a pointer type instead, resulting in a missing begin function error is a
suggestion to dereference the pointer. This provides a different,
more informative diagnostic as well as point to the parameter declaration.
llvm-svn: 192512
|
| |
|
|
|
|
|
| |
This allows the callable_when attribute to be attached to destructors.
Original patch by chris.wailes@gmail.com, reviewed and edited by delesley.
llvm-svn: 192508
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This way we avoid breaking code which uses unknown preprocessor
directives with long string literals. The specific use case in
http://llvm.org/PR17035 isn't very common, but it seems to be a good idea to
avoid this kind of problem anyway.
Reviewers: djasper
Reviewed By: djasper
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D1813
llvm-svn: 192507
|
| |
|
|
|
|
|
| |
NS_ENUM/NS_OPTIONS macros when typedef declaration
precedes enum declaration. // rdar://15200915
llvm-svn: 192506
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We now correctly format:
void SomeFunction(int param1,
#ifdef X
NoTemplate param2,
#else
template <
#ifdef A
MyType<Some> >
#else
Type1, Type2>
#endif
param2,
#endif
param3) {
f();
}
llvm-svn: 192503
|
| |
|
|
|
|
| |
We're not ready to use it everywhere we use a win32 triple yet.
llvm-svn: 192502
|
| |
|
|
|
|
|
|
| |
Use -no-struct-path-tbaa to turn it off.
This is the same as r191695, which was reverted because it depends on a
commit that has issues.
llvm-svn: 192497
|
| |
|
|
|
|
|
|
| |
Calling convention attributes can add sugar to methods that we have to
look through. This fixes an assertion failure in the provided test
case.
llvm-svn: 192496
|
| |
|
|
| |
llvm-svn: 192495
|
| |
|
|
| |
llvm-svn: 192494
|
| |
|
|
|
|
|
|
|
|
|
| |
In certain macros or incorrect string literals, the token stream can
contain 'unknown' tokens, e.g. a single backslash or a set of empty
ticks. clang-format simply treated them as whitespace and removed them
prior to this patch.
This fixes llvm.org/PR17215
llvm-svn: 192490
|
| |
|
|
| |
llvm-svn: 192473
|
| |
|
|
|
|
|
| |
migration, the typedef has annotations.
// rdar://15200602
llvm-svn: 192468
|
| |
|
|
| |
llvm-svn: 192437
|
| |
|
|
|
|
| |
Incorrect handling of 'double' and 'long long int'
llvm-svn: 192436
|
| |
|
|
|
|
| |
Fixes <rdar://problem/14468891>.
llvm-svn: 192419
|
| |
|
|
|
|
|
| |
-f{function,data}-sections had no tests at all, add some, and verify that the
-fno variants work as well.
llvm-svn: 192413
|
| |
|
|
| |
llvm-svn: 192412
|
| |
|
|
|
|
| |
vget_lane, vset_lane, vcopy_lane, vcreate, vdup_n, vdup_lane, vmov_n.
llvm-svn: 192411
|