commit | 39957dce3df743023906926b40108d99bc8b0ce2 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Sat May 01 15:04:51 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Sat May 01 15:04:51 2010 +0000 |
tree | 9b9edcae0c4999677ec3e10c94893d6cc0af0a24 | |
parent | 63e742bed90aab2e8e778e48fbbd4bce766b4373 [diff] |
Added an RAII object that helps set up/tear down the Sema context information required to implicitly define a C++ special member function. Use it rather than explicitly setting CurContext on entry and exit, which is fragile. Use this RAII object for the implicitly-defined default constructor, copy constructor, copy assignment operator, and destructor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102840 91177308-0d34-0410-b5e6-96231b3b80d8