Skip to content

Commit ea7f4aa

Browse files
authored
Fix a bunch of [misc-include-cleaner] clang-tidy findings (openscad#5306)
1 parent 8287ce3 commit ea7f4aa

File tree

262 files changed

+608
-136
lines changed

Some content is hidden

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

262 files changed

+608
-136
lines changed

src/Cache.h

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

4545
#pragma once
4646

47+
#include <cstddef>
4748
#include <unordered_map>
4849
#include "printutils.h"
4950

src/FontCache.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@
2525
*/
2626

2727
#include <iostream>
28+
#include <vector>
2829

2930
#include <boost/filesystem.hpp>
3031
#include <boost/algorithm/string.hpp>
32+
#include <string>
3133
#include <utility>
3234

3335
#include "FontCache.h"

src/LibraryInfo.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "LibraryInfo.h"
22
#include <glib.h>
3+
#include <string>
34
#include <vector>
45

56
#include "version_check.h"

src/RenderStatistic.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
#include <fstream>
2828
#include <json.hpp>
29+
#include <string>
30+
#include <vector>
2931

3032
#include "printutils.h"
3133
#include "GeometryCache.h"
@@ -289,7 +291,7 @@ void LogVisitor::visit(const ManifoldGeometry& mani_geom)
289291
{
290292
LOG(" Top level object is a 3D object (manifold):");
291293
auto &mani = mani_geom.getManifold();
292-
294+
293295
LOG(" Status: %1$s", ManifoldUtils::statusToString(mani.Status()));
294296
LOG(" Genus: %1$d", mani.Genus());
295297
LOG(" Vertices: %1$6d", mani.NumVert());

src/RenderStatistic.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#pragma once
2727

2828
#include <chrono>
29+
#include <string>
30+
#include <vector>
31+
2932
#include "Camera.h"
3033
#include "Geometry.h"
3134

src/core/AST.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "AST.h"
22
#include <sstream>
3+
#include <string>
34
#include "boost-utils.h"
45

56
const Location Location::NONE(0, 0, 0, 0, std::make_shared<fs::path>(fs::path{}));

src/core/Arguments.h

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

33
#include <ostream>
4+
#include <string>
45
#include <utility>
56
#include <vector>
67
#include <boost/optional.hpp>

src/core/Assignment.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "Annotation.h"
2929
#include "Expression.h"
3030
#include <sstream>
31+
#include <string>
3132

3233
void Assignment::addAnnotations(AnnotationList *annotations)
3334
{

src/core/Builtins.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#include <string>
2+
#include <vector>
3+
14
#include "Builtins.h"
25
#include "function.h"
36
#include "module.h"

src/core/Builtins.h

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

33
#include <string>
44
#include <unordered_map>
5+
#include <vector>
56
#include "module.h"
67
#include "Assignment.h"
78

0 commit comments

Comments
 (0)