Skip to content

Commit

Permalink
refactor(fmt/sdf): use NURI_CLANG_ANALYZER_NOLINT attribute macro
Browse files Browse the repository at this point in the history
  • Loading branch information
jnooree committed Oct 18, 2024
1 parent c9fbf9e commit 9ea04ae
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/fmt/sdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include "nuri/core/element.h"
#include "nuri/core/molecule.h"
#include "nuri/fmt/base.h"
#include "nuri/meta.h"
#include "nuri/utils.h"

namespace nuri {
Expand Down Expand Up @@ -83,11 +84,7 @@ struct HeaderReadResult {

private:
// Clang analyzer complains about uninitialized members
#ifdef __clang_analyzer__
HeaderReadResult(): version_(-1), natoms_(0), nbonds_(0) { }
#else
HeaderReadResult(): version_(-1) { }
#endif
NURI_CLANG_ANALYZER_NOLINT HeaderReadResult(): version_(-1) { }

HeaderReadResult(int v, int a, int b): version_(v), natoms_(a), nbonds_(b) { }

Expand Down

0 comments on commit 9ea04ae

Please sign in to comment.