summaryrefslogtreecommitdiffstats
path: root/tools/libclang/CXLoadedDiagnostic.cpp
diff options
context:
space:
mode:
authorAngel Garcia Gomez <angelgarcia@google.com>2015-10-20 12:52:55 +0000
committerAngel Garcia Gomez <angelgarcia@google.com>2015-10-20 12:52:55 +0000
commite83bf34da93785210fe557b00803b6b91caa48b5 (patch)
tree502b3fe0c38b22db90840c60f90d3f57f381d084 /tools/libclang/CXLoadedDiagnostic.cpp
parent617486165258f102f9c8f6e4b8c7d368dfc77773 (diff)
Apply modernize-use-default to clang.
Summary: Replace empty bodies of default constructors and destructors with '= default'. Reviewers: bkramer, klimek Subscribers: klimek, alexfh, cfe-commits Differential Revision: http://reviews.llvm.org/D13890 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CXLoadedDiagnostic.cpp')
-rw-r--r--tools/libclang/CXLoadedDiagnostic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libclang/CXLoadedDiagnostic.cpp b/tools/libclang/CXLoadedDiagnostic.cpp
index 2c10d34844..7f45d85fe1 100644
--- a/tools/libclang/CXLoadedDiagnostic.cpp
+++ b/tools/libclang/CXLoadedDiagnostic.cpp
@@ -38,7 +38,7 @@ namespace {
class CXLoadedDiagnosticSetImpl : public CXDiagnosticSetImpl {
public:
CXLoadedDiagnosticSetImpl() : CXDiagnosticSetImpl(true), FakeFiles(FO) {}
- ~CXLoadedDiagnosticSetImpl() override {}
+ ~CXLoadedDiagnosticSetImpl() override = default;
llvm::BumpPtrAllocator Alloc;
Strings Categories;
@@ -63,7 +63,7 @@ public:
// Cleanup.
//===----------------------------------------------------------------------===//
-CXLoadedDiagnostic::~CXLoadedDiagnostic() {}
+CXLoadedDiagnostic::~CXLoadedDiagnostic() = default;
//===----------------------------------------------------------------------===//
// Public CXLoadedDiagnostic methods.