diff options
author | Alexis Hunt <alercah@gmail.com> | 2011-05-09 21:45:35 +0000 |
---|---|---|
committer | Alexis Hunt <alercah@gmail.com> | 2011-05-09 21:45:35 +0000 |
commit | 88c75c311fc80fb12d7226e93da5db6db1e78b7a (patch) | |
tree | 17fdaa85fd0e12bc7311467ffc6edc0c9d73132e /clang/lib/Sema/SemaDecl.cpp | |
parent | fa92ecc3e875c75ff2fcf926f16a1c6731475683 (diff) | |
download | bcm5719-llvm-88c75c311fc80fb12d7226e93da5db6db1e78b7a.tar.gz bcm5719-llvm-88c75c311fc80fb12d7226e93da5db6db1e78b7a.zip |
Clean up trivial default constructors now.
hasTrivialDefaultConstructor() really really means it now.
Also implement a fun standards bug regarding aggregates. Doug, if you'd
like, I can un-implement that bug if you think it is truly a defect.
The bug is that non-special-member constructors are never considered
user-provided, so the following is an aggregate:
struct foo {
foo(int);
};
It's kind of bad, but the solution isn't obvious - should
struct foo {
foo (int) = delete;
};
be an aggregate or not?
Lastly, add a missing initialization to FunctionDecl.
llvm-svn: 131101
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
0 files changed, 0 insertions, 0 deletions