IWYU整改

Signed-off-by: @shi-xiaoxiao-iris <shixiaoxiao2@huawei.com>
This commit is contained in:
@shi-xiaoxiao-iris
2022-07-14 17:45:27 +08:00
parent a8c37727ce
commit bf0f164671
19 changed files with 5 additions and 48 deletions
@@ -16,7 +16,7 @@
#ifndef OHOS_DEVICE_MANAGER_H
#define OHOS_DEVICE_MANAGER_H
#include <iosfwd> // for string
#include <string> // for string
#include <memory>
#include <vector>
#include "device_manager_callback.h"
@@ -18,9 +18,7 @@
#include <cstdint>
#include <memory>
#include "iosfwd"
#include "ipc_client.h"
#include "ipc_def.h"
namespace OHOS::DistributedHardware { class IpcReq; }
namespace OHOS::DistributedHardware { class IpcRsp; }
@@ -18,14 +18,10 @@
#include <cstdint>
#include <memory>
#include "functional" // for __base
#include "ipc_remote_broker.h"
#include "ipc_req.h"
#include "ipc_rsp.h"
#include "iremote_broker.h" // for BrokerDelegator
#include "iremote_proxy.h"
#include "refbase.h" // for sptr
namespace OHOS { class IRemoteObject; }
namespace OHOS {
namespace DistributedHardware {
@@ -20,7 +20,6 @@
#include <memory>
#include "ipc_remote_broker.h"
#include "iremote_stub.h"
#include "refbase.h" // for sptr
namespace OHOS { class MessageOption; }
namespace OHOS { class MessageParcel; }
namespace OHOS::DistributedHardware { class IpcReq; }
@@ -17,9 +17,6 @@
#include "dm_constants.h"
#include "dm_log.h"
#include "ipc_cmd_register.h"
#include "iremote_object.h" // for IRemoteObject
#include "message_option.h" // for MessageOption
#include "message_parcel.h" // for MessageParcel
namespace OHOS {
namespace DistributedHardware {
@@ -13,17 +13,10 @@
* limitations under the License.
*/
#include <cstddef> // for size_t
#include <cstdint> // for int32_t, int16_t
#include <memory> // for shared_ptr, static_...
#include <string> // for basic_string
#include <vector> // for vector
#include "device_manager_notify.h"
#include "dm_constants.h"
#include "dm_device_info.h"
#include "dm_log.h"
#include "dm_subscribe_info.h" // for DmSubscribeInfo
#include "iosfwd" // for string
#include "ipc_authenticate_device_req.h"
#include "ipc_cmd_register.h"
#include "ipc_def.h"
@@ -44,10 +37,7 @@
#include "ipc_stop_discovery_req.h"
#include "ipc_unauthenticate_device_req.h"
#include "ipc_verify_authenticate_req.h"
#include "message_parcel.h" // for MessageParcel
#include "refbase.h" // for sptr
#include "securec.h"
namespace OHOS { class IRemoteObject; }
namespace OHOS {
-1
View File
@@ -21,7 +21,6 @@
#include <vector>
#include "dm_device_info.h"
#include "dm_dfx_constants.h"
#include "iosfwd" // for string
#include "single_instance.h"
namespace OHOS {
+1 -2
View File
@@ -16,8 +16,7 @@
#ifndef OHOS_DISTRIBUTED_DM_HISYSEVENT_H
#define OHOS_DISTRIBUTED_DM_HISYSEVENT_H
#include <cstdint> // for int32_t
#include "iosfwd" // for string
#include <string>
namespace OHOS {
namespace DistributedHardware {
+1 -1
View File
@@ -16,7 +16,7 @@
#ifndef OHOS_DM_HITRACE_H
#define OHOS_DM_HITRACE_H
#include "iosfwd" // for string
#include <string> // for string
namespace OHOS {
namespace DistributedHardware {
+1 -2
View File
@@ -16,8 +16,7 @@
#ifndef OHOS_DM_ANONYMOUS_H
#define OHOS_DM_ANONYMOUS_H
#include <cstdint> // for int32_t
#include "iosfwd" // for string
#include <string> // for string
namespace OHOS {
namespace DistributedHardware {
+1 -1
View File
@@ -16,7 +16,7 @@
#ifndef OHOS_DM_ERROMSG_H
#define OHOS_DM_ERROMSG_H
#include "iosfwd" // for string
#include <string> // for string
namespace OHOS {
namespace DistributedHardware {
@@ -16,8 +16,6 @@
#ifndef OHOS_DM_DISTRIBUTEED_HARDWARE_LOAD_H
#define OHOS_DM_DISTRIBUTEED_HARDWARE_LOAD_H
#include <cstdint> // for int32_t, uint32_t
#include "refbase.h" // for sptr
#include "single_instance.h"
#include "system_ability_load_callback_stub.h"
namespace OHOS { class IRemoteObject; }
-4
View File
@@ -14,14 +14,10 @@
*/
#include "dm_hidumper.h"
#include <string> // for basic_string, operator==, hash
#include <unordered_map> // for __hash_map_const_iterator, unordered_map
#include <utility> // for pair
#include <vector> // for vector
#include "dm_anonymous.h" // for GetAnonyString
#include "dm_constants.h" // for DM_OK, ERR_DM_FAILED
#include "dm_device_info.h" // for DmDeviceInfo
#include "dm_dfx_constants.h" // for HidumperFlag, DumperInfo, MAP_ARGS
#include "dm_log.h" // for LOGI, LOGE
namespace OHOS {
-1
View File
@@ -14,7 +14,6 @@
*/
#include "dm_hisysevent.h"
#include <string> // for basic_string
#include "dm_constants.h" // for DM_OK
#include "dm_log.h" // for LOGE
#include "hisysevent.h" // for HiSysEvent, HiSysEvent::Domain, HiSysEvent...
-2
View File
@@ -14,8 +14,6 @@
*/
#include "dm_anonymous.h"
#include <cstddef> // for size_t
#include <string> // for basic_string, to_string
#include "dm_log.h"
namespace OHOS {
-2
View File
@@ -14,8 +14,6 @@
*/
#include "dm_error_message.h"
#include <cstdint> // for uint32_t
#include <string> // for basic_string
#include "dm_constants.h" // for ERR_DM_AUTH_BUSINESS_BUSY, ERR_DM_AUTH_FAILED
namespace OHOS {
-2
View File
@@ -14,8 +14,6 @@
*/
#include "dm_random.h"
#include <algorithm> // for uniform_int_distribution
#include <cstdlib> // for free, malloc
#include <random>
#include "dm_constants.h"
#include "mbedtls/ctr_drbg.h"
@@ -18,10 +18,7 @@
#include "dm_log.h"
#include "if_system_ability_manager.h" // for ISystemAbilityManager
#include "iservice_registry.h" // for SystemAbilityManagerClient
#include "isystem_ability_load_callback.h" // for ISystemAbilityLoadCallback
#include "new" // for operator new
#include "system_ability_definition.h" // for DISTRIBUTED_HARDWARE_SA_ID
namespace OHOS { class IRemoteObject; }
namespace OHOS {
namespace DistributedHardware {
@@ -14,15 +14,11 @@
*/
#include "ipc_cmd_register.h"
#include <memory> // for operator==, shared_ptr
#include <unordered_map> // for __hash_map_iterator, unordered_map, operat...
#include <utility> // for pair
#include "dm_constants.h"
#include "dm_log.h"
#include "ipc_def.h"
namespace OHOS { class MessageParcel; }
namespace OHOS::DistributedHardware { class IpcReq; }
namespace OHOS::DistributedHardware { class IpcRsp; }
namespace OHOS {
namespace DistributedHardware {