diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-04 17:33:58 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-04 17:33:58 +0000 |
commit | 820ba7ba43a25a9caefb3bf1f9049d1d73935fdb (patch) | |
tree | 770ce4bc86bcf6df4fef9686843807ca5802dd64 /clang/lib/AST/StmtProfile.cpp | |
parent | 3b264ba91aedb2b7161fd93d1d4a517099be39b5 (diff) | |
download | bcm5719-llvm-820ba7ba43a25a9caefb3bf1f9049d1d73935fdb.tar.gz bcm5719-llvm-820ba7ba43a25a9caefb3bf1f9049d1d73935fdb.zip |
Implement the sizeof...(pack) expression to compute the length of a
parameter pack.
Note that we're missing proper libclang support for the new
SizeOfPackExpr expression node.
llvm-svn: 122813
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r-- | clang/lib/AST/StmtProfile.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index 820eb064168..ab24a691240 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -836,6 +836,11 @@ void StmtProfiler::VisitPackExpansionExpr(PackExpansionExpr *S) { VisitExpr(S); } +void StmtProfiler::VisitSizeOfPackExpr(SizeOfPackExpr *S) { + VisitExpr(S); + VisitDecl(S->getPack()); +} + void StmtProfiler::VisitOpaqueValueExpr(OpaqueValueExpr *E) { VisitExpr(E); } |