- May 28, 2012
-
-
Chris Lattner authored
llvm-svn: 157557
-
David Blaikie authored
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
-
Benjamin Kramer authored
The DenseMap reallocates after 64 insertions so this only happened in large test cases under very specific circumstances. llvm-svn: 157549
-
- May 27, 2012
-
-
Lang Hames authored
bitwidth and signedness. Also rename the variable to reflect its purpose. No test case - discovered during random code exploration. llvm-svn: 157547
-
Fariborz Jahanian authored
to the declaration in this patch. // rdar://10893232 llvm-svn: 157537
-
Benjamin Kramer authored
While there make it a SmallPtrSet. llvm-svn: 157532
-
Benjamin Kramer authored
llvm-svn: 157531
-
NAKAMURA Takumi authored
clang/lib/Rewrite/Rewriter.cpp: Don't try to rename opened files on Win32. Win32 doesn't allow rename/removing opened files. llvm-svn: 157528
-
Charles Davis authored
the Microsoft Visual C++ ABI. Currently limited to type and integral non-type arguments. Based on a patch by Timur Iskhodzhanov! llvm-svn: 157524
-
- May 26, 2012
-
-
Benjamin Kramer authored
No test as the output is highly dependend on the local configuration. llvm-svn: 157520
-
Fariborz Jahanian authored
// rdar://11528439 llvm-svn: 157517
-
Richard Smith authored
-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
-
David Blaikie authored
llvm-svn: 157510
-
Alexander Kornienko authored
switch label immediately followed by a 'break;'. llvm-svn: 157508
-
- May 25, 2012
-
-
Nuno Lopes authored
add test case for C++ codegen llvm-svn: 157500
-
Rafael Espindola authored
method template. llvm-svn: 157486
-
Nuno Lopes authored
llvm-svn: 157483
-
Rafael Espindola authored
function template. llvm-svn: 157480
-
Anna Zaks authored
llvm-svn: 157478
-
Rafael Espindola authored
the visibility. llvm-svn: 157475
-
Rafael Espindola authored
Similar fixes for function and member template to follow as I write the testcases. llvm-svn: 157470
-
Rafael Espindola authored
llvm-svn: 157469
-
Richard Smith authored
-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
-
Seth Cantrell authored
if the value isn't an unsigned char or EOF behavior is undefined (and on Windows there's an assertion) llvm-svn: 157445
-
Richard Smith authored
llvm-svn: 157440
-
Fariborz Jahanian authored
llvm-svn: 157436
-
Fariborz Jahanian authored
backing two propeties because proprty names match except for first letter being of different case. // rdar://11528439, [PR12936]. llvm-svn: 157435
-
Eli Friedman authored
llvm-svn: 157434
-
Eli Friedman authored
Implement the C++11 discarded value expression rules for volatile lvalues. <rdar://problem/10790820>. llvm-svn: 157420
-
- May 24, 2012
-
-
Eli Friedman authored
A minor tweak to the new volatile lvalue warning: don't warn on "(void)x", where "x" refers to a local variable. This should silence a useless warning in compiler-rt and other places. llvm-svn: 157414
-
Fariborz Jahanian authored
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
-
Justin Holewinski authored
NV_CONTRIB llvm-svn: 157403
-
Anna Zaks authored
llvm-svn: 157402
-
Anna Zaks authored
pointer. Fixes one of the crashes reported in PR12874. llvm-svn: 157401
-
Argyrios Kyrtzidis authored
[objcmt] Warn when modern objc migrator does not convert a NSNumber message because it requires a cast. rdar://11525138 llvm-svn: 157395
-
Seth Cantrell authored
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
-
Richard Smith authored
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
-
Eli Friedman authored
Add a warning to diagnose statements in C++ like "*(volatile int*)x;". 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
-
Nuno Lopes authored
Portions of this patch by Xi Wang. Reviewed by Jordy Rose. Thank you both. Codegen support will follow soon. llvm-svn: 157360
-
Fariborz Jahanian authored
statement. // rdar://11474836. llvm-svn: 157359
-