DiagnosticSet &DiagnosticSet::operator=(DiagnosticSet &&other) { if (this != &other) { clang_disposeDiagnosticSet(cxDiagnosticSet); cxDiagnosticSet = std::move(other.cxDiagnosticSet); other.cxDiagnosticSet = nullptr; } return *this; }
diagnostic_set::~diagnostic_set() { if(set) clang_disposeDiagnosticSet(set); }
DiagnosticSet::~DiagnosticSet() { clang_disposeDiagnosticSet(cxDiagnosticSet); }