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.

llvm-svn: 102840
3 files changed
tree: d3dfd7bd5890943829ec23cc1cf80a4a666ee071
  1. clang/
  2. compiler-rt/
  3. llvm/