-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcppcheck_report.txt
98 lines (96 loc) · 6.75 KB
/
cppcheck_report.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
src/gridmap/GridMap.cpp:24:14: style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm]
keys.emplace_back(pair.first);
^
src/utils/GeometryProjectionUtils.h:92:28: style: Variable 'er' is assigned a value that is never used. [unreadVariable]
const auto* er = GEOSGetExteriorRing(inGeom);
^
src/utils/GeometryProjectionUtils.h:257:26: style: Variable 'n' is assigned a value that is never used. [unreadVariable]
const auto n = GEOSGetNumCoordinates_r(geosCtx, exteriorRing);
^
src/utils/GeometryProjectionUtils.h:39:0: information: Skipping configuration 'PROJ_DATA_PATH' since the value of 'PROJ_DATA_PATH' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. [ConfigurationNotChecked]
projDataPaths[0] = PROJ_DATA_PATH;
^
src/utils/GeometryProjectionUtils.h:301:0: information: Skipping configuration 'PROJ_DATA_PATH' since the value of 'PROJ_DATA_PATH' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. [ConfigurationNotChecked]
projDataPaths[0] = PROJ_DATA_PATH;
^
src/map_gen/GeospatialGridMap.cpp:22:0: information: Skipping configuration 'PROJ_DATA_PATH' since the value of 'PROJ_DATA_PATH' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. [ConfigurationNotChecked]
projDataPaths[0] = PROJ_DATA_PATH;
^
src/map_gen/census/Ingest.h:107:37: performance:inconclusive: Technically the member function 'CensusIngest::makeNHAPSProportions' can be static (but you may consider moving to unnamed namespace). [functionStatic]
std::vector<std::vector<float>> makeNHAPSProportions();
^
src/map_gen/census/Ingest.cpp:207:47: note: Technically the member function 'CensusIngest::makeNHAPSProportions' can be static (but you may consider moving to unnamed namespace).
std::vector<std::vector<float>> CensusIngest::makeNHAPSProportions()
^
src/map_gen/census/Ingest.h:107:37: note: Technically the member function 'CensusIngest::makeNHAPSProportions' can be static (but you may consider moving to unnamed namespace).
std::vector<std::vector<float>> makeNHAPSProportions();
^
src/map_gen/census/Ingest.h:23:5: style: Class 'DataIngester < std :: string , GEOSGeometry * >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
DataIngester(GEOSContextHandle_t& geosCtx): geosCtx(geosCtx)
^
src/map_gen/census/Ingest.h:23:5: style: Class 'DataIngester < std :: string , GEOSGeom_t * >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
DataIngester(GEOSContextHandle_t& geosCtx): geosCtx(geosCtx)
^
src/map_gen/census/Ingest.h:23:5: style: Class 'DataIngester < std :: string , double >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
DataIngester(GEOSContextHandle_t& geosCtx): geosCtx(geosCtx)
^
src/map_gen/census/Ingest.cpp:196:26: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm]
groupSum += timeProps[index];
^
src/utils/GeometryOperations.h:30:28: style: Variable 'mx' is assigned a value that is never used. [unreadVariable]
const T mx = std::max(x1, x2);
^
src/utils/GeometryOperations.h:75:28: style: Variable 'my' is assigned a value that is never used. [unreadVariable]
const T my = std::max(y1, y2);
^
src/utils/GeometryOperations.h:299:23: style: Variable 'i' is assigned a value that is never used. [unreadVariable]
int i = 7;
^
src/map_gen/osm/OSMOverpassQuery.cpp:110:21: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm]
queryString += "node[" + tag.to_string() + "];";
^
src/map_gen/osm/OSMOverpassQuery.cpp:114:21: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm]
queryString += "way[" + tag.to_string() + "];";
^
src/map_gen/osm/OSMOverpassQuery.cpp:118:21: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm]
queryString += "rel[" + tag.to_string() + "];";
^
src/utils/DataFitting.h:117:8: performance:inconclusive: Technically the member function 'ugr::internal::Gaussian2DFunctor::inputs' can be static (but you may consider moving to unnamed namespace). [functionStatic]
int inputs() const { return 7; }
^
src/utils/DataFitting.h:104:68: style: Parameter 'fvec' can be declared with const [constParameter]
int operator()(const Gaussian2DParamVector& x, Eigen::VectorXd& fvec) const
^
src/risk_analysis/RiskMap.cpp:140:22: style: Variable 'len1d' is assigned a value that is never used. [unreadVariable]
const auto len1d = size.x() * size.y();
^
test/DataFittingTests.cpp:12:29: warning: Found suspicious operator ',' [constStatement]
param << 1, 20, 20, 4, 4, 0, 0;
^
test/DataFittingTests.cpp:51:29: warning: Found suspicious operator ',' [constStatement]
param << 1, 20, 20, 4, 4, 0, 0;
^
test/GridMapOSMConstructionTests.cpp:88:12: style: Variable 'size' is assigned a value that is never used. [unreadVariable]
auto size = gridMap.getSize();
^
test/TestPlottingUtils.h:32:14: style: Variable 'img' is assigned a value that is never used. [unreadVariable]
auto img = image(cax, vec);
^
test/OSMResponseTests.cpp:140:5: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm]
{
^
test/PopulationMapTests.cpp:63:15: style: Variable 'size' is assigned a value that is never used. [unreadVariable]
auto size = popMap.getSize();
^
test/ProjectionTests.cpp:22:0: information: Skipping configuration 'PROJ_DATA_PATH' since the value of 'PROJ_DATA_PATH' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. [ConfigurationNotChecked]
projDataPaths[0] = PROJ_DATA_PATH;
^
test/RiskMapTests.cpp:23:40: warning: Found suspicious operator ',' [constStatement]
aircraft.state.position << 0, 0, 120;
^
test/RiskMapTests.cpp:24:41: warning: Found suspicious operator ',' [constStatement]
aircraft.state.velocity << 20, 0, 0;
^
test/DataIngestTests.cpp:11:0: style: The function 'SetUp' is never used. [unusedFunction]
^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]