- Jun 02, 2012
-
-
Alexander Kornienko authored
Implementation of a "soft opt-in" option for -Wimplicit-fallthrough diagnostics: -Wimplicit-fallthrough-per-method llvm-svn: 157871
-
- Jun 01, 2012
-
-
Kaelyn Uhrain authored
but different nested name specifiers to quietly clobber each other so only one remains if they do not refer to the same NamedDecl. Fixes PR12951. llvm-svn: 157823
-
Argyrios Kyrtzidis authored
when migrating. rdar://11569198 llvm-svn: 157785
-
Aaron Ballman authored
Anonymous union members within a struct are now properly handled as an unevaluated field in C++11 mode. This fixes PR12866. llvm-svn: 157784
-
Kaelyn Uhrain authored
the confusion among all of the uses of Best* in relation to the set of possible typo correction results. Also add a method to return the set of typo corrections that have the single best edit distance--it returns the second half of the first pair in TypoEditDistanceMap (with getBestEditDistance already returning the first half). llvm-svn: 157781
-
Fariborz Jahanian authored
have correct pointer type or issue error, instead of crashing in IRGen. // rdar:// 11569860 llvm-svn: 157780
-
- May 31, 2012
-
-
Anna Zaks authored
As per comments following r157659. llvm-svn: 157722
-
- May 30, 2012
-
-
David Blaikie authored
This is a large class of false positives where anonymous enums are used to declare constants (see Clang's Diagnostics.h for example). A small number of true positives could probably be found in this bucket by still warning if the anonymous enum is used in a declarator (enum { ... } x;) but so far we don't believe this to be a source of significant benefit so I haven't bothered to preserve those cases. General offline review/acknowledgment by rtrieu. llvm-svn: 157713
-
Fariborz Jahanian authored
and reported as PR12959. // rdar://11499742 llvm-svn: 157697
-
Eric Christopher authored
llvm-svn: 157667
-
Richard Trieu authored
same value and were initialized with literals. Clang will warn on code like this: enum A { FIRST = 1, SECOND = 1 }; llvm-svn: 157666
-
Anna Zaks authored
Also, do not display the builtin name and macro expansion when the function is a builtin. llvm-svn: 157659
-
- May 29, 2012
-
-
Fariborz Jahanian authored
getter result type is safe but does not match with property type resulting in spurious warning followed by crash in IRGen. // rdar://11515196 llvm-svn: 157641
-
- May 28, 2012
-
-
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
-
- May 27, 2012
-
-
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
-
- May 26, 2012
-
-
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
-
-
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
-
Richard Smith authored
llvm-svn: 157440
-
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
-
-
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
-
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
-
- May 23, 2012
-
-
Richard Smith authored
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
-
- May 22, 2012
-
-
John McCall authored
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
-
- May 21, 2012
-
-
Fariborz Jahanian authored
llvm-svn: 157194
-
Fariborz Jahanian authored
provide a 'fixit' to change 'readonly' to 'readwrite'. // rdar://11448209 llvm-svn: 157193
-
- May 20, 2012
-
-
Benjamin Kramer authored
llvm-svn: 157158
-
Nico Weber authored
llvm-svn: 157139
-
Eli Friedman authored
Make delegating initializers use a similar codepath to base initializers in dependent contexts. PR12890. llvm-svn: 157136
-
- May 19, 2012
-
-
Fariborz Jahanian authored
and provide a 'fixit' to change 'readonly' to 'readwrite'. 'fixit' part needs little more work. // rdar://11448209 llvm-svn: 157121
-
Benjamin Kramer authored
llvm-svn: 157117
-
Benjamin Kramer authored
Simplify some users of DeclarationName::getNameKind. Fold getFETokenInfoAsVoid into its only caller. llvm-svn: 157116
-
Benjamin Kramer authored
llvm-svn: 157114
-