Skip to content

Commit 709b93b

Browse files
authored
Add #include <memory> in files that use symbols out of it. (openscad#5321)
Add the header to all files that use one of * std::shared_ptr * std::unique_ptr * std::make_shared * std::make_unique As found by clang-tidy and reported as [misc-include-cleaner]. Reduces [misc-include-cleaner] warnings 3565 -> 3264
1 parent ebe6fc2 commit 709b93b

File tree

158 files changed

+163
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+163
-0
lines changed

src/RenderStatistic.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
*/
2525

2626

27+
#include <memory>
2728
#include <fstream>
2829
#include "json/json.hpp"
2930
#include <string>

src/RenderStatistic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
#pragma once
2727

28+
#include <memory>
2829
#include <chrono>
2930
#include <string>
3031
#include <vector>

src/core/AST.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "core/AST.h"
2+
#include <memory>
23
#include <sstream>
34
#include <string>
45
#include "utils/boost-utils.h"

src/core/Arguments.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
*
2525
*/
2626

27+
#include <memory>
2728
#include "core/Arguments.h"
2829
#include "core/Expression.h"
2930

src/core/Arguments.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
22

3+
#include <memory>
34
#include <ostream>
45
#include <string>
56
#include <utility>

src/core/Assignment.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
22

3+
#include <memory>
34
#include <ostream>
45
#include <string>
56
#include <utility>

src/core/Builtins.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <memory>
12
#include <string>
23
#include <vector>
34

src/core/CSGNode.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "geometry/PolySet.h"
2929
#include "geometry/linalg.h"
3030

31+
#include <memory>
3132
#include <cstddef>
3233
#include <numeric>
3334
#include <sstream>

src/core/CSGTreeEvaluator.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "geometry/PolySet.h"
1313
#include "geometry/PolySetBuilder.h"
1414

15+
#include <memory>
1516
#include <string>
1617
#include <map>
1718
#include <list>

src/core/CgalAdvNode.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "core/Builtins.h"
3131
#include "core/Children.h"
3232
#include "core/Parameters.h"
33+
#include <memory>
3334
#include <sstream>
3435
#include <cassert>
3536
#include <boost/assign/std/vector.hpp>

0 commit comments

Comments
 (0)