diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-23 23:06:20 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-23 23:06:20 +0000 |
commit | f4f296de01568857bec625f2983f60638afbcc0e (patch) | |
tree | c9bcca6c32c490a0633be94d8747b3d95dc4c197 /clang/lib/Driver/Tools.cpp | |
parent | 7fe1b0f50fc9255e545427693a6a3020aeb3fc37 (diff) | |
download | bcm5719-llvm-f4f296de01568857bec625f2983f60638afbcc0e.tar.gz bcm5719-llvm-f4f296de01568857bec625f2983f60638afbcc0e.zip |
Template instantiation for the declarations of member functions within
a class template. At present, we can only instantiation normal
methods, but not constructors, destructors, or conversion operators.
As ever, this contains a bit of refactoring in Sema's type-checking. In
particular:
- Split ActOnFunctionDeclarator into ActOnFunctionDeclarator
(handling the declarator itself) and CheckFunctionDeclaration
(checking for the the function declaration), the latter of which
is also used by template instantiation.
- We were performing the adjustment of function parameter types in
three places; collect those into a single new routine.
- When the type of a parameter is adjusted, allocate an
OriginalParmVarDecl to keep track of the type as it was written.
- Eliminate a redundant check for out-of-line declarations of member
functions; hide more C++-specific checks on function declarations
behind if(getLangOptions().CPlusPlus).
llvm-svn: 67575
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions