[cfe-commits] r72186 - in /cfe/trunk: include/clang/Parse/Ownership.h lib/Sema/Sema.h lib/Sema/SemaTemplateInstantiateExpr.cpp lib/Sema/SemaTemplateInstantiateStmt.cpp test/SemaTemplate/instantiate-function-1.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Thu May 21 03:13:22 PDT 2009


Douglas Gregor wrote:
> Author: dgregor
> Date: Wed May 20 17:33:37 2009
> New Revision: 72186
>
> URL: http://llvm.org/viewvc/llvm-project?rev=72186&view=rev
> Log:
> 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.
>   
Sounds very similar to ASTVector in lib/Parse/AstGuard.h. We should
probably only keep one of them.

Sebastian



More information about the cfe-commits mailing list