mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
ifcparse: fix clang-tidy warnung unused-includes
This commit is contained in:
committed by
Thomas Krijnen
parent
fcfeac95bf
commit
b264408d85
@@ -23,12 +23,9 @@
|
|||||||
#include "ArgumentType.h"
|
#include "ArgumentType.h"
|
||||||
#include "ifc_parse_api.h"
|
#include "ifc_parse_api.h"
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
#include <boost/dynamic_bitset.hpp>
|
#include <boost/dynamic_bitset.hpp>
|
||||||
#include <boost/logic/tribool.hpp>
|
#include <boost/logic/tribool.hpp>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <set>
|
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
#include "IfcSpfStream.h"
|
#include "IfcSpfStream.h"
|
||||||
|
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace IfcUtil {
|
namespace IfcUtil {
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
#include <boost/optional.hpp>
|
#include <boost/optional.hpp>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
class Argument;
|
class Argument;
|
||||||
class aggregate_of_instance;
|
class aggregate_of_instance;
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
#include <boost/unordered_map.hpp>
|
#include <boost/unordered_map.hpp>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
|
||||||
|
|
||||||
namespace IfcParse {
|
namespace IfcParse {
|
||||||
|
|
||||||
|
|||||||
@@ -19,9 +19,7 @@
|
|||||||
|
|
||||||
#include "IfcGlobalId.h"
|
#include "IfcGlobalId.h"
|
||||||
|
|
||||||
#include "IfcBaseClass.h"
|
|
||||||
#include "IfcException.h"
|
#include "IfcException.h"
|
||||||
#include "IfcLogger.h"
|
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <boost/lexical_cast.hpp>
|
#include <boost/lexical_cast.hpp>
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
#define IFCHIERARCHYHELPER_H
|
#define IFCHIERARCHYHELPER_H
|
||||||
|
|
||||||
#include "ifc_parse_api.h"
|
#include "ifc_parse_api.h"
|
||||||
|
#include "IfcLogger.h"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
#include "IfcLogger.h"
|
#include "IfcLogger.h"
|
||||||
|
|
||||||
#include "Argument.h"
|
#include "Argument.h"
|
||||||
#include "IfcException.h"
|
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <boost/algorithm/string/replace.hpp>
|
#include <boost/algorithm/string/replace.hpp>
|
||||||
|
|||||||
@@ -23,15 +23,12 @@
|
|||||||
#include "ifc_parse_api.h"
|
#include "ifc_parse_api.h"
|
||||||
#include "IfcBaseClass.h"
|
#include "IfcBaseClass.h"
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
#include <boost/optional.hpp>
|
#include <boost/optional.hpp>
|
||||||
#include <boost/scope_exit.hpp>
|
#include <boost/scope_exit.hpp>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
class IFC_PARSE_API Logger {
|
class IFC_PARSE_API Logger {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include "IfcCharacterDecoder.h"
|
#include "IfcCharacterDecoder.h"
|
||||||
#include "IfcException.h"
|
#include "IfcException.h"
|
||||||
#include "IfcFile.h"
|
#include "IfcFile.h"
|
||||||
|
#include "IfcLogger.h"
|
||||||
#include "IfcSchema.h"
|
#include "IfcSchema.h"
|
||||||
#include "IfcSIPrefix.h"
|
#include "IfcSIPrefix.h"
|
||||||
#include "IfcSpfStream.h"
|
#include "IfcSpfStream.h"
|
||||||
|
|||||||
@@ -38,17 +38,12 @@
|
|||||||
#include "ifc_parse_api.h"
|
#include "ifc_parse_api.h"
|
||||||
#include "IfcBaseClass.h"
|
#include "IfcBaseClass.h"
|
||||||
#include "IfcCharacterDecoder.h"
|
#include "IfcCharacterDecoder.h"
|
||||||
#include "IfcLogger.h"
|
|
||||||
#include "IfcSpfStream.h"
|
#include "IfcSpfStream.h"
|
||||||
#include "macros.h"
|
|
||||||
|
|
||||||
#include <boost/dynamic_bitset.hpp>
|
#include <boost/dynamic_bitset.hpp>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <fstream>
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <map>
|
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
#define IFCSIPREFIX
|
#define IFCSIPREFIX
|
||||||
|
|
||||||
#include "ifc_parse_api.h"
|
#include "ifc_parse_api.h"
|
||||||
#include "IfcParse.h"
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace IfcParse {
|
namespace IfcParse {
|
||||||
IFC_PARSE_API double IfcSIPrefixToValue(const std::string& prefix);
|
IFC_PARSE_API double IfcSIPrefixToValue(const std::string& prefix);
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#include "IfcBaseClass.h"
|
#include "IfcBaseClass.h"
|
||||||
|
|
||||||
|
#include <map>
|
||||||
|
|
||||||
#ifdef HAS_SCHEMA_2x3
|
#ifdef HAS_SCHEMA_2x3
|
||||||
#include "Ifc2x3.h"
|
#include "Ifc2x3.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -58,8 +60,6 @@
|
|||||||
#include "Ifc4x3_add2.h"
|
#include "Ifc4x3_add2.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <map>
|
|
||||||
|
|
||||||
bool IfcParse::declaration::is(const std::string& name) const {
|
bool IfcParse::declaration::is(const std::string& name) const {
|
||||||
const std::string* name_ptr = &name;
|
const std::string* name_ptr = &name;
|
||||||
if (std::any_of(name.begin(), name.end(), [](char c) { return std::islower(c); })) {
|
if (std::any_of(name.begin(), name.end(), [](char c) { return std::islower(c); })) {
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#include "IfcSpfHeader.h"
|
#include "IfcSpfHeader.h"
|
||||||
|
|
||||||
#include "IfcFile.h"
|
#include "IfcFile.h"
|
||||||
|
#include "IfcLogger.h"
|
||||||
|
|
||||||
static const char* const ISO_10303_21 = "ISO-10303-21";
|
static const char* const ISO_10303_21 = "ISO-10303-21";
|
||||||
static const char* const HEADER = "HEADER";
|
static const char* const HEADER = "HEADER";
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
#define IFCSPFHEADER_H
|
#define IFCSPFHEADER_H
|
||||||
|
|
||||||
#include "ifc_parse_api.h"
|
#include "ifc_parse_api.h"
|
||||||
#include "IfcSpfStream.h"
|
|
||||||
#include "IfcWrite.h"
|
#include "IfcWrite.h"
|
||||||
|
|
||||||
namespace IfcParse {
|
namespace IfcParse {
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
#include "ifc_parse_api.h"
|
#include "ifc_parse_api.h"
|
||||||
|
|
||||||
#include <fstream>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#ifdef USE_MMAP
|
#ifdef USE_MMAP
|
||||||
|
|||||||
@@ -60,7 +60,6 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <boost/algorithm/string/replace.hpp>
|
#include <boost/algorithm/string/replace.hpp>
|
||||||
#include <boost/optional.hpp>
|
#include <boost/optional.hpp>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
void aggregate_of_instance::push(IfcUtil::IfcBaseClass* l) {
|
void aggregate_of_instance::push(IfcUtil::IfcBaseClass* l) {
|
||||||
if (l) {
|
if (l) {
|
||||||
|
|||||||
@@ -20,8 +20,6 @@
|
|||||||
#include "IfcWrite.h"
|
#include "IfcWrite.h"
|
||||||
|
|
||||||
#include "IfcCharacterDecoder.h"
|
#include "IfcCharacterDecoder.h"
|
||||||
#include "IfcFile.h"
|
|
||||||
#include "IfcParse.h"
|
|
||||||
|
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
|||||||
@@ -28,9 +28,9 @@
|
|||||||
#ifndef IFCWRITE_H
|
#ifndef IFCWRITE_H
|
||||||
#define IFCWRITE_H
|
#define IFCWRITE_H
|
||||||
|
|
||||||
|
#include "aggregate_of_instance.h"
|
||||||
#include "ifc_parse_api.h"
|
#include "ifc_parse_api.h"
|
||||||
#include "IfcBaseClass.h"
|
#include "IfcBaseClass.h"
|
||||||
#include "IfcParse.h"
|
|
||||||
|
|
||||||
#include <boost/dynamic_bitset.hpp>
|
#include <boost/dynamic_bitset.hpp>
|
||||||
#include <boost/optional.hpp>
|
#include <boost/optional.hpp>
|
||||||
@@ -38,7 +38,6 @@
|
|||||||
#include <boost/type_traits/remove_pointer.hpp>
|
#include <boost/type_traits/remove_pointer.hpp>
|
||||||
#include <boost/utility/enable_if.hpp>
|
#include <boost/utility/enable_if.hpp>
|
||||||
#include <boost/variant.hpp>
|
#include <boost/variant.hpp>
|
||||||
// #include <boost/logic/tribool.hpp>
|
|
||||||
|
|
||||||
namespace IfcWrite {
|
namespace IfcWrite {
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
#ifdef WITH_IFCXML
|
#ifdef WITH_IFCXML
|
||||||
|
|
||||||
#include "IfcFile.h"
|
#include "IfcFile.h"
|
||||||
|
#include "IfcLogger.h"
|
||||||
|
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
#include <boost/range/adaptor/transformed.hpp>
|
#include <boost/range/adaptor/transformed.hpp>
|
||||||
|
|||||||
Reference in New Issue
Block a user