]> granicus.if.org Git - clang/commit
Introduce a new kind of RAII class, ASTOwningVector, which is an
authorDouglas Gregor <dgregor@apple.com>
Wed, 20 May 2009 22:33:37 +0000 (22:33 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 20 May 2009 22:33:37 +0000 (22:33 +0000)
commitd7e2705961bacb9df5d9119403c01c9b04aff97f
treeda275e8ada262dbc8e94f9abd682cf120a58846b
parente06274d5c5c6b2decc9f217a8913b28f846bfcfa
Introduce a new kind of RAII class, ASTOwningVector, which is an
llvm::SmallVector that owns all of the AST nodes inside of it. This
RAII class is used to ensure proper destruction of AST nodes when
template instantiation fails.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72186 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Ownership.h
lib/Sema/Sema.h
lib/Sema/SemaTemplateInstantiateExpr.cpp
lib/Sema/SemaTemplateInstantiateStmt.cpp
test/SemaTemplate/instantiate-function-1.cpp