| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
| |
derive from it.
Use actual factory functions rather than derived classes acting as named constructors/factories.
llvm-svn: 157588
|
| |
|
|
|
|
| |
for this. Reported by Timur Iskhodzhanov.
llvm-svn: 157583
|
| |
|
|
| |
llvm-svn: 157561
|
| |
|
|
| |
llvm-svn: 157557
|
| |
|
|
|
|
|
|
|
|
| |
instantiatiating a template.
This comes up in the begin/end calls of a range-for (see the included test
case). Other suggestions are welcome, though this seems to do the trick without
regressing anything.
llvm-svn: 157553
|
| |
|
|
|
|
|
| |
The DenseMap reallocates after 64 insertions so this only happened in
large test cases under very specific circumstances.
llvm-svn: 157549
|
| |
|
|
|
|
|
|
| |
bitwidth and signedness. Also rename the variable to reflect its purpose.
No test case - discovered during random code exploration.
llvm-svn: 157547
|
| |
|
|
|
|
| |
to the declaration in this patch. // rdar://10893232
llvm-svn: 157537
|
| |
|
|
|
|
| |
While there make it a SmallPtrSet.
llvm-svn: 157532
|
| |
|
|
| |
llvm-svn: 157531
|
| |
|
|
|
|
| |
Win32 doesn't allow rename/removing opened files.
llvm-svn: 157528
|
| |
|
|
|
|
|
| |
the Microsoft Visual C++ ABI. Currently limited to type and integral
non-type arguments. Based on a patch by Timur Iskhodzhanov!
llvm-svn: 157524
|
| |
|
|
|
|
|
|
| |
already adds some.
No test as the output is highly dependend on the local configuration.
llvm-svn: 157520
|
| |
|
|
|
|
| |
// rdar://11528439
llvm-svn: 157517
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-Wsometimes-uninitialized diagnostics to make it clearer that the cause
of the issue may be a condition which must always evaluate to true or
false, rather than an uninitialized variable.
To emphasize this, add a new note with a fixit which removes the
impossible condition or replaces it with a constant.
Also, downgrade the diagnostic from -Wsometimes-uninitialized to
-Wconditional-uninitialized when it applies to a range-based for loop,
since the condition is not written explicitly in the code in that case.
llvm-svn: 157511
|
| |
|
|
| |
llvm-svn: 157510
|
| |
|
|
|
|
| |
switch label immediately followed by a 'break;'.
llvm-svn: 157508
|
| |
|
|
|
|
| |
add test case for C++ codegen
llvm-svn: 157500
|
| |
|
|
|
|
| |
method template.
llvm-svn: 157486
|
| |
|
|
| |
llvm-svn: 157483
|
| |
|
|
|
|
| |
function template.
llvm-svn: 157480
|
| |
|
|
| |
llvm-svn: 157478
|
| |
|
|
|
|
| |
the visibility.
llvm-svn: 157475
|
| |
|
|
|
|
|
| |
Similar fixes for function and member template to follow as I write the
testcases.
llvm-svn: 157470
|
| |
|
|
| |
llvm-svn: 157469
|
| |
|
|
|
|
|
|
|
|
|
| |
-Wsometimes-uninitialized. This detects cases where an explicitly-written branch
inevitably leads to an uninitialized variable use (so either the branch is dead
code or there is an uninitialized use bug).
This chunk of warnings tentatively lives within -Wuninitialized, in order to
give it more visibility to existing Clang users.
llvm-svn: 157458
|
| |
|
|
|
|
|
| |
if the value isn't an unsigned char or EOF behavior is undefined
(and on Windows there's an assertion)
llvm-svn: 157445
|
| |
|
|
|
|
| |
functional change.
llvm-svn: 157440
|
| |
|
|
| |
llvm-svn: 157436
|
| |
|
|
|
|
|
|
| |
backing two propeties because proprty names
match except for first letter being of different
case. // rdar://11528439, [PR12936].
llvm-svn: 157435
|
| |
|
|
| |
llvm-svn: 157434
|
| |
|
|
|
|
| |
<rdar://problem/10790820>.
llvm-svn: 157420
|
| |
|
|
|
|
| |
where "x" refers to a local variable. This should silence a useless warning in compiler-rt and other places.
llvm-svn: 157414
|
| |
|
|
|
|
|
|
|
| |
Where diagnostic about unfound property is not
issued in the context where a setter is looked up
in situation in which name and property name differ
in their first letter case. // rdar://11363363
llvm-svn: 157407
|
| |
|
|
|
|
| |
NV_CONTRIB
llvm-svn: 157403
|
| |
|
|
| |
llvm-svn: 157402
|
| |
|
|
|
|
|
|
| |
pointer.
Fixes one of the crashes reported in PR12874.
llvm-svn: 157401
|
| |
|
|
|
|
|
|
| |
because it requires a cast.
rdar://11525138
llvm-svn: 157395
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|