- Jan 21, 2012
-
-
Douglas Gregor authored
argument, which was broken and very ugly (and even had a test case to make *sure* it was broken and ugly). Fixes <rdar://problem/10609117>. llvm-svn: 148606
-
- Jan 20, 2012
-
-
DeLesley Hutchins authored
llvm-svn: 148595
-
DeLesley Hutchins authored
llvm-svn: 148592
-
David Blaikie authored
llvm-svn: 148577
-
Benjamin Kramer authored
llvm-svn: 148549
-
Benjamin Kramer authored
Found by the clang static analyzer. llvm-svn: 148544
-
Benjamin Kramer authored
Found by clang's own static analyzer. llvm-svn: 148542
-
Eli Friedman authored
Remove PotentiallyPotentiallyEvaluated, and replace it with a much simpler and less error-prone way of handling the relevant cases. Towards marking of whether a declaration is used more accurately. llvm-svn: 148522
-
- Jan 19, 2012
-
-
Richard Smith authored
constexpr. llvm-svn: 148505
-
Tanya Lattner authored
Change CheckVectorLogicalOperands to pass params by ref. Add another test case. llvm-svn: 148452
-
Kaelyn Uhrain authored
llvm-svn: 148441
-
Richard Smith authored
values and non-type template arguments of integral and enumeration types. This change causes some legal C++98 code to no longer compile in C++11 mode, by enforcing the C++11 rule that narrowing integral conversions are not permitted in the final implicit conversion sequence for the above cases. llvm-svn: 148439
-
- Jan 18, 2012
-
-
Kaelyn Uhrain authored
Includes tests highlighting the cases where accuracy has improved (there is one call that does no filtering beyond selecting the set of allowed keywords, and one call that only triggers for ObjC code for which a test by someone who knows ObjC would be welcome). Also fixes a small typo in one of the suggestion messages, and drops a malformed "expected-note" for a suggestion that did not occur even when the malformed note was committed as r145930. llvm-svn: 148420
-
Fariborz Jahanian authored
in favor of usage of api's intended for. // rdar://8290002 llvm-svn: 148404
-
Seth Cantrell authored
L'x' is actually wchar_t support C11 u and U char literals llvm-svn: 148390
-
Kaelyn Uhrain authored
No new unit tests yet as there is no behavioral change (except for slightly more specific filtering in Sema::ActOnStartOfLambdaDefinition). Tests will be added as the code paths are traced in greater depth to determine how to improve the results--there are at least one or two known bugs that require those improvements. This commit lays the groundwork for those changes. llvm-svn: 148382
-
Richard Smith authored
for it to be used in converted constant expression checking, and fix a couple of issues: - Conversion operators implicitly invoked prior to the narrowing conversion were not being correctly handled when determining whether a constant value was narrowed. - For conversions from floating-point to integral types, the diagnostic text incorrectly always claimed that the source expression was not a constant expression. llvm-svn: 148381
-
Eli Friedman authored
Make PotentiallyPotentiallyEvaluated contexts work correctly when referencing a class field from outside an instance method. llvm-svn: 148376
-
Eli Friedman authored
llvm-svn: 148373
-
Eli Friedman authored
Fix a couple issues where we didn't correctly delay diagnostics in PotentiallyPotentiallyEvaluated contexts. In preparation for making sizeof() PotentiallyPotentiallyEvaluated. llvm-svn: 148367
-
- Jan 17, 2012
-
-
Fariborz Jahanian authored
rely on property's type for its life-time to avoid bogus warning with -Warc-unsafe-retained-assign. // rdar://10694932 llvm-svn: 148355
-
Sebastian Redl authored
llvm-svn: 148354
-
Sebastian Redl authored
Auto deduction support for std::initializer_list, including for-range support. This means you can now write: for (int i : {1, 4, 512, 23, 251}) {} llvm-svn: 148353
-
Sebastian Redl authored
llvm-svn: 148352
-
Sebastian Redl authored
There are 5 functions of this name in Sema, and 6 more static helpers in SemaTemplateDeduction.cpp. The Sema functions have jobs like "deduce for function call", "deduce for taking the address", etc. The static helpers have jobs like "deduce by comparing two types", "deduce by comparing two lists of types", "deduce by comparing two template arguments", etc. The fact that they all are called the same and only differ in two of their 6 or more arguments makes the code using them very hard to read. Here I rename the one function that concerns me most at the moment, but as a matter of cleanup, the others will eventually be renamed as well. llvm-svn: 148351
-
Sebastian Redl authored
llvm-svn: 148350
-
Sebastian Redl authored
This does not yet support CodeGen. llvm-svn: 148349
-
Sebastian Redl authored
llvm-svn: 148348
-
Eli Friedman authored
llvm-svn: 148335
-
Jean-Daniel Dupas authored
PR 10274: format function attribute with the NSString archetype yields no compiler warnings PR 10275: format function attribute isn't checked in Objective-C methods llvm-svn: 148324
-
Fariborz Jahanian authored
objc class was not being exported to parent decl context resulting in bogus mismatch warning later on. // rdar://10655530 llvm-svn: 148320
-
Douglas Gregor authored
moving it from a "special type" to a predefined declaration, as we do for id, Class, and SEL. llvm-svn: 148313
-
David Blaikie authored
llvm-svn: 148296
-
David Blaikie authored
llvm-svn: 148294
-
David Blaikie authored
Remove unreachable code in Clang. (replace with llvm_unreachable where appropriate or when GCC requires it) llvm-svn: 148292
-
David Blaikie authored
This allows -Wswitch-enum to find switches that need updating when these enums are modified. llvm-svn: 148281
-
Argyrios Kyrtzidis authored
does not depend on Sema, it accepts an ASTContext and a Preprocessor. Step towards making clang_getCursorCompletionString not depend on Sema. llvm-svn: 148278
-
Argyrios Kyrtzidis authored
on an ASTContext. This is a step towards making clang_getCursorCompletionString not depend on Sema. llvm-svn: 148277
-
Eli Friedman authored
llvm-svn: 148276
-
Eli Friedman authored
Change the behavior of the lvalue-to-rvalue conversion for varargs in PotentiallyPotentiallyEvaluated contexts so that we model it in a sane way in most cases, and give up for the edge case which hopefully doesn't matter too much. In preparation for correctly treating sizeof() as a PotentiallyPotentiallyEvaluated context. llvm-svn: 148271
-