Skip to content

Commit

Permalink
Fix clang-tidy IWYU checks with pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanel committed Sep 14, 2024
1 parent dc8c195 commit af91b2c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .clang-tidy-ignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**/json.hpp

# Ignore all protobuf/gRPC generated source files
**/*.pb.cc
**/generated

*/_deps/*
*/_deps/*
1 change: 1 addition & 0 deletions src/api/common/src/fiatconverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <utility>

#include "cct_json.hpp"
#include "cct_log.hpp"
#include "cct_string.hpp"
#include "coincenterinfo.hpp"
#include "curloptions.hpp"
Expand Down
3 changes: 1 addition & 2 deletions src/objects/src/monetaryamount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <cassert>
#include <cmath>
#include <compare>
#include <concepts>
#include <cstdint>
#include <cstdlib>
#include <iomanip>
Expand All @@ -15,13 +14,13 @@
#include <ranges>
#include <sstream>
#include <string_view>
#include <tuple>
#include <type_traits>
#include <utility>

#include "cct_config.hpp"
#include "cct_exception.hpp"
#include "cct_invalid_argument_exception.hpp"
#include "cct_log.hpp"
#include "currencycode.hpp"
#include "ipow.hpp"
#include "ndigits.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/tech/include/cct_log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifdef CCT_DISABLE_SPDLOG
#include <string_view>
#else
#include <spdlog/spdlog.h>
#include <spdlog/spdlog.h> // IWYU pragma: export
#endif

namespace cct {
Expand Down

0 comments on commit af91b2c

Please sign in to comment.