ifcparse: fix clang-tidy warnung unused-includes

This commit is contained in:
Dirk Olbrich
2023-10-24 11:47:44 +02:00
committed by Thomas Krijnen
parent fcfeac95bf
commit b264408d85
19 changed files with 9 additions and 27 deletions
-3
View File
@@ -23,12 +23,9 @@
#include "ArgumentType.h"
#include "ifc_parse_api.h"
#include <algorithm>
#include <boost/dynamic_bitset.hpp>
#include <boost/logic/tribool.hpp>
#include <boost/shared_ptr.hpp>
#include <set>
#include <sstream>
#include <string>
#include <vector>
-1
View File
@@ -29,7 +29,6 @@
#include "IfcSpfStream.h"
#include <sstream>
#include <string>
namespace IfcUtil {
-1
View File
@@ -24,7 +24,6 @@
#include <boost/optional.hpp>
#include <boost/shared_ptr.hpp>
#include <vector>
class Argument;
class aggregate_of_instance;
-1
View File
@@ -32,7 +32,6 @@
#include <boost/unordered_map.hpp>
#include <iterator>
#include <map>
#include <set>
namespace IfcParse {
-2
View File
@@ -19,9 +19,7 @@
#include "IfcGlobalId.h"
#include "IfcBaseClass.h"
#include "IfcException.h"
#include "IfcLogger.h"
#include <algorithm>
#include <boost/lexical_cast.hpp>
+1
View File
@@ -29,6 +29,7 @@
#define IFCHIERARCHYHELPER_H
#include "ifc_parse_api.h"
#include "IfcLogger.h"
#include <map>
-1
View File
@@ -20,7 +20,6 @@
#include "IfcLogger.h"
#include "Argument.h"
#include "IfcException.h"
#include <algorithm>
#include <boost/algorithm/string/replace.hpp>
-3
View File
@@ -23,15 +23,12 @@
#include "ifc_parse_api.h"
#include "IfcBaseClass.h"
#include <algorithm>
#include <boost/optional.hpp>
#include <boost/scope_exit.hpp>
#include <exception>
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <vector>
class IFC_PARSE_API Logger {
public:
+1
View File
@@ -23,6 +23,7 @@
#include "IfcCharacterDecoder.h"
#include "IfcException.h"
#include "IfcFile.h"
#include "IfcLogger.h"
#include "IfcSchema.h"
#include "IfcSIPrefix.h"
#include "IfcSpfStream.h"
-5
View File
@@ -38,17 +38,12 @@
#include "ifc_parse_api.h"
#include "IfcBaseClass.h"
#include "IfcCharacterDecoder.h"
#include "IfcLogger.h"
#include "IfcSpfStream.h"
#include "macros.h"
#include <boost/dynamic_bitset.hpp>
#include <boost/shared_ptr.hpp>
#include <cstring>
#include <fstream>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <vector>
+2 -1
View File
@@ -21,7 +21,8 @@
#define IFCSIPREFIX
#include "ifc_parse_api.h"
#include "IfcParse.h"
#include <string>
namespace IfcParse {
IFC_PARSE_API double IfcSIPrefixToValue(const std::string& prefix);
+2 -2
View File
@@ -21,6 +21,8 @@
#include "IfcBaseClass.h"
#include <map>
#ifdef HAS_SCHEMA_2x3
#include "Ifc2x3.h"
#endif
@@ -58,8 +60,6 @@
#include "Ifc4x3_add2.h"
#endif
#include <map>
bool IfcParse::declaration::is(const std::string& name) const {
const std::string* name_ptr = &name;
if (std::any_of(name.begin(), name.end(), [](char c) { return std::islower(c); })) {
+1
View File
@@ -20,6 +20,7 @@
#include "IfcSpfHeader.h"
#include "IfcFile.h"
#include "IfcLogger.h"
static const char* const ISO_10303_21 = "ISO-10303-21";
static const char* const HEADER = "HEADER";
-1
View File
@@ -21,7 +21,6 @@
#define IFCSPFHEADER_H
#include "ifc_parse_api.h"
#include "IfcSpfStream.h"
#include "IfcWrite.h"
namespace IfcParse {
-1
View File
@@ -29,7 +29,6 @@
#include "ifc_parse_api.h"
#include <fstream>
#include <string>
#ifdef USE_MMAP
-1
View File
@@ -60,7 +60,6 @@
#include <algorithm>
#include <boost/algorithm/string/replace.hpp>
#include <boost/optional.hpp>
#include <iostream>
void aggregate_of_instance::push(IfcUtil::IfcBaseClass* l) {
if (l) {
-2
View File
@@ -20,8 +20,6 @@
#include "IfcWrite.h"
#include "IfcCharacterDecoder.h"
#include "IfcFile.h"
#include "IfcParse.h"
#include <boost/algorithm/string.hpp>
#include <iomanip>
+1 -2
View File
@@ -28,9 +28,9 @@
#ifndef IFCWRITE_H
#define IFCWRITE_H
#include "aggregate_of_instance.h"
#include "ifc_parse_api.h"
#include "IfcBaseClass.h"
#include "IfcParse.h"
#include <boost/dynamic_bitset.hpp>
#include <boost/optional.hpp>
@@ -38,7 +38,6 @@
#include <boost/type_traits/remove_pointer.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/variant.hpp>
// #include <boost/logic/tribool.hpp>
namespace IfcWrite {
+1
View File
@@ -22,6 +22,7 @@
#ifdef WITH_IFCXML
#include "IfcFile.h"
#include "IfcLogger.h"
#include <boost/algorithm/string.hpp>
#include <boost/range/adaptor/transformed.hpp>