- Jul 22, 2013
-
-
Reid Kleckner authored
llvm-svn: 186824
-
Enea Zaffanella authored
when initializing aggregate/union types, no matter if static or not. llvm-svn: 186817
-
Enea Zaffanella authored
No functionality change. In Sema helper functions: * renamed isTypeName as HasTypenameKeyword In UsingDecl: * renamed get/setUsingLocation to get/setUsingLoc * renamed is/setTypeName as has/setTypename llvm-svn: 186816
-
Robert Wilhelm authored
llvm-svn: 186807
-
Richard Smith authored
any default template arguments, not if it inherits some. llvm-svn: 186804
-
Richard Smith authored
A constructor for an abstract class does not call constructors for virtual base classes, so it is not an error if no initializer is present for the virtual base and the virtual base cannot be default initialized. Also provide a (disabled by default, for now) warning for the case where a virtual base class's initializer is ignored in an abstract class's constructor, and address a defect in DR257 where it was not carried through to C++11's rules for implicit deletion of special member functions. Based on a patch by Maurice Bos. llvm-svn: 186803
-
NAKAMURA Takumi authored
llvm-svn: 186802
-
Richard Smith authored
llvm-svn: 186800
-
Richard Smith authored
optimize, to follow the permissions granted in N3664. Under those rules, only calls generated by new-expressions and delete-expressions are permitted to be optimized, and direct calls to ::operator new and ::operator delete must be treated as normal calls. llvm-svn: 186799
-
Craig Topper authored
llvm-svn: 186797
-
- Jul 21, 2013
-
-
Craig Topper authored
Replace 'unsigned short' with 'uint16_t' in a packed data structure for consistency with other fields and to be explicit about bit count. llvm-svn: 186796
-
Craig Topper authored
llvm-svn: 186795
-
Robert Wilhelm authored
llvm-svn: 186794
-
Lubos Lunak authored
llvm-svn: 186793
-
Daniel Jasper authored
With this fix, only changed regions will be replaced in vim's buffer. Thereby, marks should mostly be left intact. Furthermore, this is a better fix for the performance problem in conjunction with 'foldmethod=syntax' (see r186660). llvm-svn: 186789
-
- Jul 20, 2013
-
-
Enea Zaffanella authored
llvm-svn: 186770
-
Richard Smith authored
implicit conversion sequence. llvm-svn: 186769
-
Richard Smith authored
llvm-svn: 186768
-
Lubos Lunak authored
The functionality is equivalent to the GCC attribute. Variables of tagged types will be warned about as unused if they are not used in any way except for possible (even non-trivial) ctors/dtors called. Useful for tagging classes like std::string (which is not part of this commit). llvm-svn: 186765
-
Lubos Lunak authored
llvm-svn: 186764
-
Lubos Lunak authored
Every #include is surrounded by #if 0 in order to comment it out, which adds lines. That is fixed up right after, but that all can be inside #if part that is not processed, so fix up also after every end of a conditional part. llvm-svn: 186763
-
Benjamin Kramer authored
llvm-svn: 186762
-
David Majnemer authored
Diag ID is used throughout clang as a sentinel id meaning "this is an invalid diagnostic id." Confusingly, Diag ID maps to a valid, usable, diagnostic id. Instead, start diagnostic ids at ID one. Incidently, remove an unused element from StaticDiagInfo. llvm-svn: 186760
-
Richard Trieu authored
template. Passing around dependent types can lead to integral arguments that cannot be evaluated. llvm-svn: 186757
-
Eli Friedman authored
A class with a field of non-POD-for-layout type is not POD-for-layout. This computation should not depend on whether the field is of POD type in the language sense. Fixes PR16537. Patch by Josh Magee. llvm-svn: 186741
-
Alexander Kornienko authored
Use -lines option instead of -offset/-length. This fixes problems with files using dos newlines (<CR><LF>). llvm-svn: 186740
-
Eli Friedman authored
This is the same way GenericSelectionExpr works, and it's generally a more consistent approach. A large part of this patch is devoted to caching the value of the condition of a ChooseExpr; it's needed to avoid threading an ASTContext into IgnoreParens(). Fixes <rdar://problem/14438917>. llvm-svn: 186738
-
Larisse Voufo authored
FIXME fix: improving diagnostics for template arguments deduction of class templates and explicit specializations This patch essentially removes all the FIXMEs following calls to DeduceTemplateArguments() that want to keep track of deduction failure info. llvm-svn: 186730
-
Larisse Voufo authored
Revert "Use function overloading instead of template specialization for diagnosis of bad template argument deductions." This reverts commit a730f548325756d050d4caaa28fcbffdae8dfe95. llvm-svn: 186729
-
Eli Friedman authored
Make sure we correctly expand packs which expand to another pack in a function type. llvm-svn: 186728
-
Larisse Voufo authored
Use function overloading instead of template specialization for diagnosis of bad template argument deductions. llvm-svn: 186727
-
- Jul 19, 2013
-
-
Eli Friedman authored
I'm not sure how to write a test for this; the following shows the difference in -ast-dump: template <int x> struct A {}; template <class T> struct B { }; template <class ...Args> using C = A<(__is_trivially_constructible(Args...))>; template <class ...Args> using D = C<B<Args>...>; However, I can't seem to write a test that triggers a visible difference in behavior. llvm-svn: 186726
-
Craig Topper authored
llvm-svn: 186722
-
Hans Wennborg authored
The mode doesn't actually do anything yet, but this provides a way to get into it. llvm-svn: 186720
-
Reid Kleckner authored
There seems to be a crash here if we have a calling convention attribute that gets ignored and then we instantiate templates. llvm-svn: 186719
-
Jean-Daniel Dupas authored
Summary: In ARC mode, clang emits a warning if the result of an 'init' method is unused but miss cases where the method does not follows the Cocoa naming convention but is properly declared as an init family method. CC: cfe-commits, eli.friedman Differential Revision: http://llvm-reviews.chandlerc.com/D1163 llvm-svn: 186718
-
Fariborz Jahanian authored
declaration which can be migrated to NS_ENUM. llvm-svn: 186716
-
Samuel Benzaquen authored
Summary: Add printToStream*(llvm::raw_ostream&) methods to Diagnostics, and reimplement everything based on streams instead of concatenating strings. Also, fix some functions to start with lowercase to match the style guide. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1187 llvm-svn: 186715
-
Reid Kleckner authored
Canonical types are unchanged. The type printer had to be changed to avoid printing any non-default implicit calling convention as well as the calling convention attribute. Reviewers: rjmccall Differential Revision: http://llvm-reviews.chandlerc.com/D1132 llvm-svn: 186714
-
Eli Friedman authored
When we see a pack, and replace it with a template argument which is also a pack, we want to use the pack pattern, not the expanded pack. The caller should take care of expanding the pack afterwards. Fixes PR16646. llvm-svn: 186713
-