summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-10-22 11:44:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-10-22 11:51:36 +0200
commit66b1854252ff29a16babff099b038c8e5c9ec969 (patch)
treed44e78d944d1cf2c4ca0d7e7c361f702ec0c7135 /compilerplugins
parent8590c8b8af53df9431639ae92f4169cef17a3660 (diff)
Make sure TypeCheck has a non-deleted default ctor
...as needed by > core/compilerplugins/clang/check.cxx:19:19: error: call to implicitly-deleted default constructor of 'loplugin::TypeCheck' > ? *this : TypeCheck(); > ^ > core/compilerplugins/clang/check.hxx:76:5: note: explicitly defaulted function was implicitly deleted here > TypeCheck() = default; > ^ > core/compilerplugins/clang/check.hxx:78:27: note: default constructor of 'TypeCheck' is implicitly deleted because field 'type_' of const-qualified type 'const clang::QualType' would not be initialized > clang::QualType const type_; > ^ after https://llvm.org/svn/llvm-project/cfe/trunk@315194 "Make SourceLocation, QualType and friends have constexpr constructors" defaulted the clang::QualType ctor. Change-Id: Idaeaa4499cea877fd5d66c18b8fce24b7808ba04
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/check.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/check.hxx b/compilerplugins/clang/check.hxx
index 46b915f95adf..af6e8263df39 100644
--- a/compilerplugins/clang/check.hxx
+++ b/compilerplugins/clang/check.hxx
@@ -75,7 +75,7 @@ public:
private:
TypeCheck() = default;
- clang::QualType const type_;
+ clang::QualType const type_{};
};
class DeclCheck {