From 3759990884c225cf9716348059834916b4ee35cc Mon Sep 17 00:00:00 2001
From: florian <f.spreckelsen@inidscale.com>
Date: Thu, 5 Aug 2021 16:15:13 +0200
Subject: [PATCH] MAINT: Add NOLINT

---
 src/caosdb/transaction.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/caosdb/transaction.cpp b/src/caosdb/transaction.cpp
index 9150dca..9709a88 100644
--- a/src/caosdb/transaction.cpp
+++ b/src/caosdb/transaction.cpp
@@ -104,7 +104,10 @@ ResultSet::iterator::iterator(const ResultSet *result_set_param, size_t index)
   : current_index(index), result_set(result_set_param) {}
 
 auto ResultSet::iterator::operator*() const -> const Entity & {
-  return this->result_set->At(current_index);
+  // TODO(tf) clang warns about a bugprone conversion from unsigned
+  // size_t to signed int, i.e., the `index` of ResultSet::At. Should
+  // we make this unsigned as well?
+  return this->result_set->At(current_index); // NOLINT
 }
 
 auto ResultSet::iterator::operator++() -> ResultSet::iterator & {
-- 
GitLab