]> granicus.if.org Git - clang/commit
Implement template instantiation for several more kinds of expressions:
authorDouglas Gregor <dgregor@apple.com>
Fri, 13 Mar 2009 21:01:28 +0000 (21:01 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 13 Mar 2009 21:01:28 +0000 (21:01 +0000)
commitba49817c5b9f502602672861cf369fd0e53966e8
tree678a82159237ffb3de940bf8d19e67c9641ddba7
parente8463ef889be035312c2e40fa318bbbcfce02a3e
Implement template instantiation for several more kinds of expressions:
  - C++ function casts, e.g., T(foo)
  - sizeof(), alignof()

More importantly, this allows us to verify that we're performing
overload resolution during template instantiation, with
argument-dependent lookup and the "cached" results of name lookup from
the template definition.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66947 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
Driver/RewriteObjC.cpp
include/clang/AST/Expr.h
include/clang/AST/ExprCXX.h
lib/AST/ExprCXX.cpp
lib/AST/StmtSerialization.cpp
lib/AST/Type.cpp
lib/Sema/Sema.h
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaLookup.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateInstantiate.cpp
test/SemaTemplate/instantiate-expr-1.cpp