diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-13 21:01:28 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-13 21:01:28 +0000 |
commit | 0950e41b73587a71ee66c88cf8db0dfff343a8cf (patch) | |
tree | a7d6054a981badf7424c934d5e12969bb3da8070 /clang/lib/Sema/Sema.h | |
parent | 5b86bf527ea41117edac3728e6d803d8723de888 (diff) | |
download | bcm5719-llvm-0950e41b73587a71ee66c88cf8db0dfff343a8cf.tar.gz bcm5719-llvm-0950e41b73587a71ee66c88cf8db0dfff343a8cf.zip |
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.
llvm-svn: 66947
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r-- | clang/lib/Sema/Sema.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index c6fe6c164af..b29790e7b5c 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -1188,6 +1188,11 @@ public: ActOnSizeOfAlignOfExpr(SourceLocation OpLoc, bool isSizeof, bool isType, void *TyOrEx, const SourceRange &ArgRange); + OwningExprResult CreateSizeOfAlignOfExpr(QualType T, SourceLocation OpLoc, + bool isSizeOf, SourceRange R); + OwningExprResult CreateSizeOfAlignOfExpr(Expr *E, SourceLocation OpLoc, + bool isSizeOf, SourceRange R); + bool CheckAlignOfExpr(Expr *E, SourceLocation OpLoc, const SourceRange &R); bool CheckSizeOfAlignOfOperand(QualType type, SourceLocation OpLoc, const SourceRange &R, bool isSizeof); |