Module: check_mk
Branch: master
Commit: 22c3ac85b9c0fa7aa5691b51472d1ccf995ce1e2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=22c3ac85b9c0fa…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Apr 11 11:33:09 2019 +0200
Added note about a clang-format bug.
Change-Id: I5614ccaee00b8357d6ff2f96f73e806bee354b71
---
agents/windows/Configurable.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/agents/windows/Configurable.h b/agents/windows/Configurable.h
index 7e97082..4af4989 100644
--- a/agents/windows/Configurable.h
+++ b/agents/windows/Configurable.h
@@ -183,6 +183,10 @@ public:
virtual void output(const std::string &key,
std::ostream &out) const override {
+ // NOTE: Funnily enough, clang-format thinks this header contains
+ // Objective-C because of the structured binding declaration with a
"&"
+ // reference operator, see:
https://bugs.llvm.org/show_bug.cgi?id=37433
+ // clang-format-9 onwards will contain a fix for this.
for (const auto &[var, value] : this->values()) {
out << key << " " << var << " = "
<< value << "\n";
}