- Jan 17, 2011
-
-
Rafael Espindola authored
const NSConstantString *appKey = @"MyApp"; llvm-svn: 123680
-
Douglas Gregor authored
Joerg Sonnenberger! llvm-svn: 123669
-
Anders Carlsson authored
llvm-svn: 123667
-
Argyrios Kyrtzidis authored
This allows us to cache a "#pragma unused" that occurs inside an inline C++ member function. Fixes rdar://8829590&8770988. llvm-svn: 123666
-
Rafael Espindola authored
__builtin___CFStringMakeConstantString This fixes PR8993. A darwin expert might want to check that this is safe. llvm-svn: 123658
-
Anders Carlsson authored
llvm-svn: 123612
-
Anders Carlsson authored
Enforce C++[class.mem]p8: A virt-specifier-seq shall contain at most one of each virt-specifier. llvm-svn: 123611
-
Anders Carlsson authored
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3206.htm This lands support for parsing virt-specifier-seq after member functions, including the contextual keywords 'final', and 'override'. The keywords are not yet used for anything. llvm-svn: 123606
-
- Jan 16, 2011
-
-
Anders Carlsson authored
Fix a bug where the -Wmissing-noreturn would always treat constructors with base or member initializers as noreturn. llvm-svn: 123603
-
Anders Carlsson authored
llvm-svn: 123602
-
Douglas Gregor authored
llvm-svn: 123582
-
Douglas Gregor authored
non-variadic function template over a variadic one. This matches GCC and the intent of the C++0x wording, in a way that I think is likely to be acceptable to the committee. llvm-svn: 123581
-
Chris Lattner authored
and the filename has multiple .'s in it, use the last. For example, "foo.bar.cpp" should produce "foo.bar.d" not "foo.d". Patch by Johan Boule in PR8391 llvm-svn: 123576
-
- Jan 15, 2011
-
-
Michael J. Spencer authored
llvm-svn: 123553
-
Ken Dyck authored
Add toCharUnitsInBits() to simplify the many calls to CharUnits::fromQuantity() of the form CharUnits::fromQuantity(bitSize, Context.getCharWidth()). llvm-svn: 123542
-
Francois Pichet authored
llvm-svn: 123538
-
Rafael Espindola authored
llvm-svn: 123531
-
Chris Lattner authored
rdar://8867482 llvm-svn: 123522
-
Douglas Gregor authored
template template parameter pack that cannot be fully expanded because its enclosing pack expansion could not be expanded. This form of TemplateName plays the same role as SubstTemplateTypeParmPackType and SubstNonTypeTemplateParmPackExpr do for template type parameter packs and non-type template parameter packs, respectively. We should now handle these multi-level pack expansion substitutions anywhere. The largest remaining gap in our variadic-templates support is that we cannot cope with non-type template parameter packs whose type is a pack expansion. llvm-svn: 123521
-
Ted Kremenek authored
-Wuninitialized based on CFG dataflow analysis. WIP. llvm-svn: 123512
-
-
Douglas Gregor authored
that captures the substitution of a non-type template argument pack for a non-type template parameter pack within a pack expansion that cannot be fully expanded. This follows the approach taken by SubstTemplateTypeParmPackType. llvm-svn: 123506
-
Douglas Gregor authored
number of expansions, when we know it, and propagate that information through Sema. llvm-svn: 123493
-
- Jan 14, 2011
-
-
Douglas Gregor authored
contain multiple parameter packs at different levels. llvm-svn: 123488
-
Ted Kremenek authored
Found by clang static analyzer. llvm-svn: 123485
-
Ted Kremenek authored
Remove this variable (found by clang static analyzer). llvm-svn: 123484
-
Ted Kremenek authored
used; nuke all assignments and its declaration. llvm-svn: 123483
-
Ted Kremenek authored
llvm-svn: 123482
-
Ted Kremenek authored
analyzer -cc1 options that are tailored to the input type. If the input type is "C++", we should only run the dead stores checker (for now). Similarly, checks specific to Objective-C should only run on Objective-C Code. llvm-svn: 123481
-
Douglas Gregor authored
it will expand to, if known. Propagate this information throughout Sema. llvm-svn: 123470
-
Argyrios Kyrtzidis authored
Addresses rdar://8435969&8852495 llvm-svn: 123462
-
Ted Kremenek authored
llvm-svn: 123460
-
Ted Kremenek authored
llvm-svn: 123459
-
Ted Kremenek authored
the case where the called function has fewer formal arguments than actual arguments. This fixes a crash in the analyzer when doing function call inlining. Patch by Zhenbo Xu! llvm-svn: 123458
-
Douglas Gregor authored
expansion in it, we may end up instantiating to an empty expression-list. In this case, the variable is uninitialized; tweak the instantiation logic to handle this case. Fixes PR8977. llvm-svn: 123449
-
Douglas Gregor authored
expansion, when it is known due to the substitution of an out parameter pack. This allows us to properly handle substitution into pack expansions that involve multiple parameter packs at different template parameter levels, even when this substitution happens one level at a time (as with partial specializations of member class templates and the signatures of member function templates). Note that the diagnostic we provide when there is an arity mismatch between an outer parameter pack and an inner parameter pack in this case isn't as clear as the normal diagnostic for an arity mismatch. However, this doesn't matter because these cases are very, very rare and (even then) only typically occur in a SFINAE context. The other kinds of pack expansions (expression, template, etc.) still need to support optional tracking of the number of expansions, and we need the moral equivalent of SubstTemplateTypeParmPackType for substituted argument packs of template template and non-type template parameters. llvm-svn: 123448
-
John McCall authored
bit-pattern. Continue punting on zero-initializing VLAs with a nonzero pattern. llvm-svn: 123439
-
John McCall authored
replace all uses of the entry with the predecessor. There are no cleanups relying on this right now, but if we ever want a cleanup with a phi inside it, this will be important. llvm-svn: 123438
-
Douglas Gregor authored
switch() statements. llvm-svn: 123429
-
Douglas Gregor authored
involve template parameter packs at multiple template levels that occur within the signatures members of class templates (and partial specializations thereof). This is a work-in-progress that is deficient in several ways, notably: - It only works for template type parameter packs, but we need to also support non-type template parameter packs and template template parameter packs. - It doesn't keep track of the lengths of the substituted argument packs in the expansion, so it can't properly diagnose length mismatches. However, this is a concrete step in the right direction. llvm-svn: 123425
-