Skip to content

Commit

Permalink
🩹 Fix header includes
Browse files Browse the repository at this point in the history
  • Loading branch information
ystade committed Mar 3, 2025
1 parent 7caeb30 commit fe38f0f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions include/mqt-core/na/entities/Location.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <cstddef>

Check warning on line 13 in include/mqt-core/na/entities/Location.hpp

View workflow job for this annotation

GitHub Actions / 🇨‌ Lint / 🚨 Lint

include/mqt-core/na/entities/Location.hpp:13:1 [misc-include-cleaner]

included header cstddef is not used directly
#include <cstdint>
#include <iomanip>
#include <ios>
#include <ostream>
#include <sstream>
#include <string>
Expand All @@ -34,8 +35,6 @@ struct Location final {
: x(static_cast<double>(x)), y(static_cast<double>(y)) {};
Location(const std::uint64_t x, const std::uint64_t y)
: x(static_cast<double>(x)), y(static_cast<double>(y)) {};
Location(const std::size_t x, const std::size_t y)
: x(static_cast<double>(x)), y(static_cast<double>(y)) {};
explicit Location(const std::pair<float, float>& p)
: Location(p.first, p.second) {};
explicit Location(const std::pair<double, double>& p)
Expand All @@ -48,8 +47,6 @@ struct Location final {
: Location(p.first, p.second) {};
explicit Location(const std::pair<std::uint64_t, std::uint64_t>& p)
: Location(p.first, p.second) {};
explicit Location(const std::pair<std::size_t, std::size_t>& p)
: Location(p.first, p.second) {};
Location() = default;
Location(const Location& loc) = default;
Location(Location&& loc) noexcept = default;
Expand Down
1 change: 1 addition & 0 deletions src/na/operations/StoreOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include "na/operations/StoreOp.hpp"

#include <cstddef>
#include <sstream>
#include <string>

Expand Down
3 changes: 0 additions & 3 deletions test/na/test_nacomputation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*/

#include "Definitions.hpp"
#include "ir/operations/OpType.hpp"
#include "na/NAComputation.hpp"
#include "na/NAUtils.hpp"
#include "na/operations/GlobalCZOp.hpp"
#include "na/operations/GlobalRYOp.hpp"
#include "na/operations/LoadOp.hpp"
Expand All @@ -19,7 +17,6 @@
#include "na/operations/StoreOp.hpp"

#include <gtest/gtest.h>
#include <memory>
#include <sstream>
#include <vector>

Expand Down

0 comments on commit fe38f0f

Please sign in to comment.