| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
http://llvm.org/bugs/show_bug.cgi?id=12924
This issue was that the source location was pointing to a
non-printable character and so CaretEnd was pointing one
_column_ past the caret but not one _character_ past the
caret. So the conversion between column and byte locations
wasn't working (because the conversion is only valid from
the first column or byte of a character).
llvm-svn: 157372
|
| |
|
|
|
|
|
|
| |
volatile reference to a temporary is not viable. My interpretation is that
DR1152 was a bugfix, not a rule change for C++11, so this is not conditional on
the language mode. This matches g++'s behavior.
llvm-svn: 157370
|
| |
|
|
|
|
| |
Conceptually, this is part of -Wunused-value, but I added a separate flag -Wunused-volatile-lvalue so it doesn't get turned off by accident with -Wno-unused-value. I also made a few minor improvements to existing unused value warnings in the process. <rdar://problem/11516811>.
llvm-svn: 157362
|
| |
|
|
|
|
|
|
| |
Portions of this patch by Xi Wang. Reviewed by Jordy Rose. Thank you both.
Codegen support will follow soon.
llvm-svn: 157360
|
| |
|
|
|
|
| |
statement. // rdar://11474836.
llvm-svn: 157359
|
| |
|
|
|
|
|
|
| |
used here.
It fixes test/Tooling on Win32 hosts.
llvm-svn: 157350
|
| |
|
|
|
|
|
|
|
|
|
| |
idiom that is used commonly in setters:
[backingValue autorelease];
backingValue = [newValue retain]; // in general a +1 assign
rdar://9914061
llvm-svn: 157347
|
| |
|
|
|
|
| |
rdar://11518308
llvm-svn: 157346
|
| |
|
|
|
|
| |
that allows easy refactoring across translation units.
llvm-svn: 157331
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
start with a cv-qualifier. DeclaratorDecl::getTypeSpecStartLoc() does not
produce the location of the first type-specifier (the cv-qualifier) in this
case, because we don't track source locations for cv-qualifiers.
No test here: I've not found a way to test this with a lit-style test, and
introducing a gtest test for this seems unwarranted. Suggestions welcome!
Patch by Daniel Jasper!
llvm-svn: 157311
|
| |
|
|
|
|
|
|
| |
pointer, but such folding encounters side-effects, ignore the side-effects
rather than performing them at runtime: CodeGen generates wrong code for
__builtin_object_size in that case.
llvm-svn: 157310
|
| |
|
|
|
|
| |
Part of rdar://11496790
llvm-svn: 157304
|
| |
|
|
|
|
|
|
|
| |
on the RecordDecl. Persist the MS portability type attributes and
ignore them in Sema rather than the parser.
Patch by João Matos!
llvm-svn: 157288
|
| |
|
|
| |
llvm-svn: 157262
|
| |
|
|
|
|
|
|
|
| |
first writing the changed files to a temporary location and then overwriting
the original files atomically.
Also adds a RewriterTestContext to aid unit testing rewrting logic in general.
llvm-svn: 157260
|
| |
|
|
|
|
| |
LLVM r157255)
llvm-svn: 157256
|
| |
|
|
|
|
| |
rdar://11501256
llvm-svn: 157227
|
| |
|
|
|
|
|
| |
errornously using commas to separate ObjC message arguments.
// rdar://11376372
llvm-svn: 157216
|
| |
|
|
|
|
|
|
|
|
| |
however, the range can be unknown for the upper bound.
Testcase to follow.
Part of rdar://11457152
llvm-svn: 157212
|
| |
|
|
|
|
| |
(ex: float).
llvm-svn: 157211
|
| |
|
|
| |
llvm-svn: 157207
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
struct HIDDEN foo {
};
template <class P>
struct bar {
};
template <>
struct HIDDEN bar<foo> {
DEFAULT static void zed();
};
void bar<foo>::zed() {
}
Before we would produce a hidden symbol in
struct HIDDEN foo {
};
template <class P>
struct bar {
};
template <>
struct bar<foo> {
DEFAULT static void zed();
};
void bar<foo>::zed() {
}
But adding HIDDEN to the specialization would cause us to produce a default
symbol.
llvm-svn: 157206
|
| |
|
|
|
|
|
|
| |
arguments, force use of clang frontend for the driver.
Fixes rdar://11356765.
llvm-svn: 157205
|
| |
|
|
|
|
| |
While there clean up indentation.
llvm-svn: 157204
|
| |
|
|
|
|
|
|
|
|
| |
'autorelease' message" ARC
migration error".
Per feedback from John this is useful to have in general.
llvm-svn: 157198
|
| |
|
|
| |
llvm-svn: 157194
|
| |
|
|
|
|
| |
provide a 'fixit' to change 'readonly' to 'readwrite'. // rdar://11448209
llvm-svn: 157193
|
| |
|
|
| |
llvm-svn: 157173
|
| |
|
|
|
|
| |
header searches with CUDA.
llvm-svn: 157172
|
| |
|
|
|
|
|
|
|
| |
Because in CUDA types do not have associated address spaces,
globals are declared in their "native" address space, and accessed
by bitcasting the pointer to address space 0. This relies on address
space 0 being a unified address space.
llvm-svn: 157167
|
| |
|
|
| |
llvm-svn: 157158
|
| |
|
|
| |
llvm-svn: 157139
|
| |
|
|
|
|
| |
I'm pretty sure we are in fact doing the right thing here, but someone who knows the standard better should double-check that we are in fact supposed to zero out the member in the given testcase.
llvm-svn: 157138
|
| |
|
|
|
|
| |
dependent contexts. PR12890.
llvm-svn: 157136
|
| |
|
|
|
|
|
| |
and provide a 'fixit' to change 'readonly' to 'readwrite'. 'fixit'
part needs little more work. // rdar://11448209
llvm-svn: 157121
|
| |
|
|
|
|
| |
functional change.
llvm-svn: 157119
|
| |
|
|
| |
llvm-svn: 157117
|
| |
|
|
|
|
| |
getFETokenInfoAsVoid into its only caller.
llvm-svn: 157116
|
| |
|
|
| |
llvm-svn: 157114
|
| |
|
|
|
|
|
|
| |
types and ensure we are actually creating the type.
rdar://11479676
llvm-svn: 157095
|
| |
|
|
| |
llvm-svn: 157088
|
| |
|
|
|
|
| |
accept the template argument expression as a type.
llvm-svn: 157085
|
| |
|
|
| |
llvm-svn: 157082
|
| |
|
|
| |
llvm-svn: 157081
|
| |
|
|
|
|
| |
so in a less malloc-intensive way.
llvm-svn: 157064
|
| |
|
|
|
|
|
| |
warning. This also makes us warn on tags, which, ironically, is the only case
gcc warns on.
llvm-svn: 157039
|
| |
|
|
|
|
| |
allocating functions.
llvm-svn: 157037
|
| |
|
|
|
|
|
|
| |
that the methods have the same number of parameters, although we
certainly assumed this in many places. Objective-C can be insane
sometimes. Fixes <rdar://problem/11460990>.
llvm-svn: 157025
|
| |
|
|
|
|
| |
have NULL interfaces behind a category, which can happen in invalid code. Fixes <rdar://problem/11478173>, a recent regression
llvm-svn: 157021
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
message" ARC
migration error.
This is more trouble that it is worth; autoreleasing a value without holding on it
is a valid use-case, we should not "punish" correct code for the minority of
broken/fragile programs that depend on the behavior of -autorelease.
rdar://9914061
llvm-svn: 156999
|