- Jan 18, 2012
-
-
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
-
Nick Lewycky authored
llvm-svn: 148375
-
Richard Smith authored
builtin. llvm-svn: 148374
-
Eli Friedman authored
llvm-svn: 148373
-
Anna Zaks authored
TaintPropagationRule::process(). Also remove the "should be a pointer argument" warning - should be handled elsewhere. llvm-svn: 148372
-
Anna Zaks authored
size (Ex: in malloc, memcpy, strncpy..) (Maybe some of this could migrate to the CString checker. One issue with that is that we might want to separate security issues from regular API misuse.) llvm-svn: 148371
-
Anna Zaks authored
functions. llvm-svn: 148370
-
Anna Zaks authored
llvm-svn: 148369
-
Nick Lewycky authored
llvm-svn: 148368
-
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
-
Fariborz Jahanian authored
llvm-svn: 148361
-
Fariborz Jahanian authored
patch (slightly revised) by Aaron Ballman. llvm-svn: 148359
-
Douglas Gregor authored
llvm-svn: 148358
-
- 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
-
Anton Yartsev authored
changes i64 alignment from 64 to 32 for powerpc-darwin llvm-svn: 148345
-
Eli Friedman authored
Add __builtin_labs and __builtin_llabs, to complete the set of __builtin_*abs. Patch by Ruben Van Boxem. llvm-svn: 148340
-
Richard Smith authored
that APValue-based constant emission knows how to emit member pointers. llvm-svn: 148336
-
Eli Friedman authored
llvm-svn: 148335
-
Richard Smith authored
llvm-svn: 148333
-
Dan Gohman authored
llvm-svn: 148331
-
John McCall authored
or whatever else is required for the initialization instead of assuming it can be done with a simple store. Fixes PR11732. llvm-svn: 148325
-
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
-
Douglas Gregor authored
corresponding to TagType and ObjCInterfaceType. Previously, we would serialize the definition (if available) or the canonical declaration (if no definition was available). However, this can end up forcing the deserialization of the definition even through we might not want to yet. Instead, always serialize the canonical declaration reference in the TagType/ObjCInterfaceType entry, and as part of loading a pending definition, update the "decl" pointer within the type node to point at the definition. This is more robust in hard-to-isolate cases where the *Type gets built and filled in before we see the definition. llvm-svn: 148323
-
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
-
Argyrios Kyrtzidis authored
llvm-svn: 148319
-
Douglas Gregor authored
generation for Objective-C; it may not be needed. llvm-svn: 148317
-
Douglas Gregor authored
a module file, be sure to also add the first (potentially canonical) declarations to the chain. This isn't guaranteed to occur because the first declaration is not listed in the stored redeclaration chain. llvm-svn: 148314
-
Douglas Gregor authored
moving it from a "special type" to a predefined declaration, as we do for id, Class, and SEL. llvm-svn: 148313
-
Hans Wennborg authored
Fixes PR9195. llvm-svn: 148300
-
David Blaikie authored
llvm-svn: 148296
-
David Blaikie authored
llvm-svn: 148294
-