Skip to content

Commit

Permalink
updated missing includes for cpplintv2
Browse files Browse the repository at this point in the history
  • Loading branch information
mondus authored and ptheywood committed Nov 19, 2024
1 parent 17b5211 commit c347616
Show file tree
Hide file tree
Showing 125 changed files with 391 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/cpp/circles_bruteforce/src/main.cu
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <float.h>
#include <cstdio>
#include "flamegpu/flamegpu.h"

FLAMEGPU_AGENT_FUNCTION(output_message, flamegpu::MessageNone, flamegpu::MessageBruteForce) {
Expand Down
1 change: 1 addition & 0 deletions examples/cpp/circles_spatial3D/src/main.cu
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <float.h>
#include <cstdio>
#include "flamegpu/flamegpu.h"

FLAMEGPU_AGENT_FUNCTION(output_message, flamegpu::MessageNone, flamegpu::MessageSpatial3D) {
Expand Down
3 changes: 3 additions & 0 deletions examples/cpp/ensemble/src/main.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <cstdio>
#include <map>

#include "flamegpu/flamegpu.h"

FLAMEGPU_AGENT_FUNCTION(AddOffset, flamegpu::MessageNone, flamegpu::MessageNone) {
Expand Down
3 changes: 3 additions & 0 deletions examples/cpp/host_functions/src/main.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <cstdio>
#include <vector>

#include "flamegpu/flamegpu.h"

const unsigned int AGENT_COUNT = 1024;
Expand Down
1 change: 1 addition & 0 deletions examples/cpp/sugarscape/src/main.cu
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <cstdlib>
#include <fstream>
#include <array>
#include <vector>

#include "flamegpu/flamegpu.h"

Expand Down
1 change: 1 addition & 0 deletions include/flamegpu/visualiser/color/Color.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <cstring>
#include <array>
#include <cstdio>

#include "flamegpu/exception/FLAMEGPUException.h"

Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/detail/JitifyCache.cu
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#include <regex>
#include <array>
#include <filesystem>
#include <vector>
#include <memory>
#include <string>

#include "flamegpu/version.h"
#include "flamegpu/exception/FLAMEGPUException.h"
Expand Down
2 changes: 2 additions & 0 deletions src/flamegpu/detail/TestSuiteTelemetry.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include <cstdio>
#include <map>
#include <string>

#include "flamegpu/detail/TestSuiteTelemetry.h"

Expand Down
2 changes: 2 additions & 0 deletions src/flamegpu/detail/compute_capability.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include <nvrtc.h>

#include <cassert>
#include <vector>
#include <string>

#include "flamegpu/detail/compute_capability.cuh"
#include "flamegpu/simulation/detail/CUDAErrorChecking.cuh"
Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/exception/FLAMEGPUDeviceException.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <cstdio>
#include <string>

#include "flamegpu/exception/FLAMEGPUDeviceException.cuh"

#include "flamegpu/simulation/detail/CUDAErrorChecking.cuh"
Expand Down
1 change: 1 addition & 0 deletions src/flamegpu/exception/FLAMEGPUException.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <cstring>
#include <sstream>
#include <limits>
#include <string>

namespace flamegpu {
namespace exception {
Expand Down
2 changes: 2 additions & 0 deletions src/flamegpu/io/JSONGraphReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <string>
#include <map>
#include <set>
#include <cstdio>
#include <memory>

#include "flamegpu/exception/FLAMEGPUException.h"
#include "flamegpu/simulation/detail/CUDAEnvironmentDirectedGraphBuffers.cuh"
Expand Down
4 changes: 4 additions & 0 deletions src/flamegpu/io/JSONGraphWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include <rapidjson/prettywriter.h>
#include <rapidjson/stringbuffer.h>
#include <fstream>
#include <cstdio>
#include <utility>
#include <string>
#include <memory>

#include "flamegpu/exception/FLAMEGPUException.h"
#include "flamegpu/simulation/detail/CUDAEnvironmentDirectedGraphBuffers.cuh"
Expand Down
4 changes: 4 additions & 0 deletions src/flamegpu/io/JSONStateReader.cu
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
#include <unordered_map>
#include <cerrno>
#include <numeric>
#include <cstdio>
#include <vector>
#include <functional>
#include <memory>

#include "flamegpu/exception/FLAMEGPUException.h"
#include "flamegpu/simulation/AgentVector.h"
Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/io/JSONStateWriter.cu
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include <numeric>
#include <set>
#include <algorithm>
#include <memory>
#include <map>
#include <functional>

#include "flamegpu/exception/FLAMEGPUException.h"
#include "flamegpu/model/AgentDescription.h"
Expand Down
4 changes: 4 additions & 0 deletions src/flamegpu/io/StateReader.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include "flamegpu/io/StateReader.h"

#include <vector>
#include <unordered_map>
#include <string>

namespace flamegpu {
namespace io {

Expand Down
2 changes: 2 additions & 0 deletions src/flamegpu/io/Telemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <cstdio>
#include <cctype>
#include <sstream>
#include <string>
#include <map>

#include "flamegpu/version.h"

Expand Down
2 changes: 2 additions & 0 deletions src/flamegpu/io/XMLLogger.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "flamegpu/io/XMLLogger.h"

#include <sstream>
#include <cstdio>
#include <string>

#include "tinyxml2/tinyxml2.h" // downloaded from https:// github.com/leethomason/tinyxml2, the list of xml parsers : http:// lars.ruoff.free.fr/xmlcpp/

Expand Down
6 changes: 6 additions & 0 deletions src/flamegpu/io/XMLStateReader.cu
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
#include <algorithm>
#include <numeric>
#include <tuple>
#include <cstdio>
#include <vector>
#include <functional>
#include <memory>
#include <string>

#include "tinyxml2/tinyxml2.h" // downloaded from https:// github.com/leethomason/tinyxml2, the list of xml parsers : http:// lars.ruoff.free.fr/xmlcpp/
#include "flamegpu/exception/FLAMEGPUException.h"
#include "flamegpu/simulation/AgentVector.h"
Expand Down
7 changes: 7 additions & 0 deletions src/flamegpu/io/XMLStateWriter.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

#include <numeric>
#include <sstream>
#include <string>
#include <functional>
#include <algorithm>
#include <set>
#include <map>
#include <memory>

#include "tinyxml2/tinyxml2.h" // downloaded from https:// github.com/leethomason/tinyxml2, the list of xml parsers : http:// lars.ruoff.free.fr/xmlcpp/
#include "flamegpu/exception/FLAMEGPUException.h"
#include "flamegpu/model/AgentDescription.h"
Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/model/AgentData.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "flamegpu/model/AgentData.h"

#include <string>
#include <memory>

#include "flamegpu/model/AgentDescription.h"
#include "flamegpu/model/AgentFunctionDescription.h"

Expand Down
4 changes: 4 additions & 0 deletions src/flamegpu/model/AgentDescription.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include "flamegpu/model/AgentDescription.h"

#include <utility>
#include <set>
#include <string>

#include "flamegpu/model/AgentFunctionDescription.h"
#include "flamegpu/exception/FLAMEGPUException.h"

Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/model/AgentFunctionData.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "flamegpu/model/AgentFunctionData.cuh"

#include <string>
#include <memory>

#include "flamegpu/model/AgentDescription.h"
#include "flamegpu/model/AgentFunctionDescription.h"
#include "flamegpu/runtime/detail/curve/curve_rtc.cuh"
Expand Down
4 changes: 4 additions & 0 deletions src/flamegpu/model/AgentFunctionDescription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include <sstream>
#include <string>
#include <regex>
#include <utility>
#include <vector>
#include <memory>
#include <set>

#include "flamegpu/model/AgentFunctionDescription.h"
#include "flamegpu/detail/cxxname.hpp"
Expand Down
6 changes: 6 additions & 0 deletions src/flamegpu/model/DependencyGraph.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#include "flamegpu/model/DependencyGraph.h"

#include <vector>
#include <memory>
#include <set>
#include <iostream>
#include <string>

namespace flamegpu {

DependencyGraph::DependencyGraph(ModelData* _model) : model(_model) {
Expand Down
1 change: 1 addition & 0 deletions src/flamegpu/model/DependencyNode.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <iostream>
#include <string>
#include <vector>

#include "flamegpu/model/DependencyNode.h"

Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/model/EnvironmentData.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#include "flamegpu/model/EnvironmentData.h"

#include <memory>

#include "flamegpu/model/EnvironmentDirectedGraphData.cuh"

namespace flamegpu {
Expand Down
4 changes: 4 additions & 0 deletions src/flamegpu/model/EnvironmentDescription.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#include <utility>
#include <memory>
#include <string>

#include "flamegpu/model/EnvironmentDescription.h"
#include "flamegpu/model/EnvironmentDirectedGraphDescription.cuh"

Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/model/EnvironmentDirectedGraphData.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "flamegpu/model/EnvironmentDirectedGraphData.cuh"

#include <string>
#include <memory>

#include "flamegpu/model/EnvironmentDirectedGraphDescription.cuh"
#include "flamegpu/defines.h"

Expand Down
4 changes: 4 additions & 0 deletions src/flamegpu/model/EnvironmentDirectedGraphDescription.cu
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#include "flamegpu/model/EnvironmentDirectedGraphDescription.cuh"

#include <utility>
#include <string>

namespace flamegpu {

CEnvironmentDirectedGraphDescription::CEnvironmentDirectedGraphDescription(std::shared_ptr<EnvironmentDirectedGraphData> data)
Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/model/LayerData.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "flamegpu/model/LayerData.h"

#include <string>
#include <memory>

#include "flamegpu/model/LayerDescription.h"
#include "flamegpu/model/SubModelData.h"

Expand Down
4 changes: 4 additions & 0 deletions src/flamegpu/model/LayerDescription.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#include "flamegpu/model/LayerDescription.h"

#include <utility>
#include <string>

#include "flamegpu/model/AgentFunctionDescription.h"
#include "flamegpu/model/SubModelDescription.h"
#include "flamegpu/model/SubModelData.h"
Expand Down
2 changes: 2 additions & 0 deletions src/flamegpu/model/ModelData.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <iostream>
#include <algorithm>
#include <string>
#include <memory>

#include "flamegpu/model/ModelData.h"

Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/model/ModelDescription.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "flamegpu/model/ModelDescription.h"

#include <string>
#include <memory>

#include "flamegpu/model/DependencyGraph.h"
#include "flamegpu/model/AgentDescription.h"
#include "flamegpu/model/LayerDescription.h"
Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/model/SubAgentData.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "flamegpu/model/SubAgentData.h"

#include <utility>
#include <memory>

#include "flamegpu/model/SubAgentDescription.h"
#include "flamegpu/model/AgentData.h"
#include "flamegpu/model/ModelData.h"
Expand Down
4 changes: 4 additions & 0 deletions src/flamegpu/model/SubAgentDescription.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#include "flamegpu/model/SubAgentDescription.h"

#include <utility>
#include <string>

#include "flamegpu/model/ModelData.h"
#include "flamegpu/model/SubAgentData.h"
#include "flamegpu/model/AgentData.h"
Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/model/SubEnvironmentData.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "flamegpu/model/SubEnvironmentData.h"

#include <utility>
#include <memory>

#include "flamegpu/model/SubEnvironmentDescription.h"
#include "flamegpu/model/ModelData.h"
#include "flamegpu/model/SubModelData.h"
Expand Down
4 changes: 4 additions & 0 deletions src/flamegpu/model/SubEnvironmentDescription.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#include "flamegpu/model/SubEnvironmentDescription.h"

#include <utility>
#include <string>

#include "flamegpu/model/ModelData.h"
#include "flamegpu/model/SubModelData.h"
#include "flamegpu/model/SubEnvironmentData.h"
Expand Down
4 changes: 4 additions & 0 deletions src/flamegpu/model/SubModelData.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include "flamegpu/model/SubModelData.h"

#include <utility>
#include <string>
#include <memory>

#include "flamegpu/model/ModelData.h"
#include "flamegpu/model/AgentData.h"
#include "flamegpu/model/SubModelDescription.h"
Expand Down
5 changes: 5 additions & 0 deletions src/flamegpu/model/SubModelDescription.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#include "flamegpu/model/SubModelDescription.h"

#include <utility>
#include <string>
#include <memory>

#include "flamegpu/model/ModelData.h"
#include "flamegpu/model/AgentData.h"
#include "flamegpu/model/SubModelData.h"
Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/runtime/HostAPI.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#include "flamegpu/runtime/HostAPI.h"

#include <map>
#include <string>
#include <memory>

#include "flamegpu/runtime/agent/HostAgentAPI.cuh"
#include "flamegpu/model/ModelDescription.h"
#include "flamegpu/simulation/Simulation.h"
Expand Down
4 changes: 4 additions & 0 deletions src/flamegpu/runtime/agent/DeviceAgentVector_impl.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#include <utility>
#include <vector>
#include <string>

#include "flamegpu/runtime/agent/DeviceAgentVector_impl.h"
#include "flamegpu/simulation/detail/CUDAAgent.h"
#include "flamegpu/runtime/agent/HostNewAgentAPI.h"
Expand Down
3 changes: 3 additions & 0 deletions src/flamegpu/runtime/agent/HostAgentAPI.cu
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#include "flamegpu/runtime/agent/HostAgentAPI.cuh"

#include <memory>

#include "flamegpu/runtime/agent/DeviceAgentVector_impl.h"

namespace flamegpu {
Expand Down
1 change: 1 addition & 0 deletions src/flamegpu/runtime/detail/curve/Curve.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <cuda_runtime.h>

#include <string>
#include <cstring>

namespace flamegpu {
Expand Down
Loading

0 comments on commit c347616

Please sign in to comment.