Changeset View
Standalone View
lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.h
//===-- PlatformAppleSimulator.h --------------------------------*- C++ -*-===// | //===-- PlatformAppleSimulator.h --------------------------------*- C++ -*-===// | ||||
Lint: Lint: clang-format not found in user's PATH; not linting file. | |||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
#ifndef LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMAPPLESIMULATOR_H | #ifndef LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMAPPLESIMULATOR_H | ||||
#define LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMAPPLESIMULATOR_H | #define LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMAPPLESIMULATOR_H | ||||
#include <mutex> | #include <mutex> | ||||
#include "Plugins/Platform/MacOSX/PlatformDarwin.h" | #include "Plugins/Platform/MacOSX/PlatformDarwin.h" | ||||
Lint: Pre-merge checks clang-tidy: error: 'Plugins/Platform/MacOSX/PlatformDarwin.h' file not found [clang-diagnostic-error] Lint: Pre-merge checks: clang-tidy: error: 'Plugins/Platform/MacOSX/PlatformDarwin.h' file not found [clang-diagnostic… | |||||
#include "Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.h" | #include "Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.h" | ||||
#include "lldb/Utility/FileSpec.h" | #include "lldb/Utility/FileSpec.h" | ||||
#include "llvm/ADT/Optional.h" | #include "llvm/ADT/Optional.h" | ||||
class PlatformAppleSimulator : public PlatformDarwin { | class PlatformAppleSimulator : public PlatformDarwin { | ||||
public: | public: | ||||
// Class Functions | // Class Functions | ||||
Show All 16 Lines | public: | ||||
lldb_private::Status DisconnectRemote() override; | lldb_private::Status DisconnectRemote() override; | ||||
lldb::ProcessSP DebugProcess(lldb_private::ProcessLaunchInfo &launch_info, | lldb::ProcessSP DebugProcess(lldb_private::ProcessLaunchInfo &launch_info, | ||||
lldb_private::Debugger &debugger, | lldb_private::Debugger &debugger, | ||||
lldb_private::Target *target, | lldb_private::Target *target, | ||||
lldb_private::Status &error) override; | lldb_private::Status &error) override; | ||||
bool GetSupportedArchitectureAtIndex(uint32_t idx, | |||||
lldb_private::ArchSpec &arch) override; | |||||
protected: | protected: | ||||
std::mutex m_core_sim_path_mutex; | std::mutex m_core_sim_path_mutex; | ||||
llvm::Optional<lldb_private::FileSpec> m_core_simulator_framework_path; | llvm::Optional<lldb_private::FileSpec> m_core_simulator_framework_path; | ||||
llvm::Optional<CoreSimulatorSupport::Device> m_device; | llvm::Optional<CoreSimulatorSupport::Device> m_device; | ||||
CoreSimulatorSupport::DeviceType::ProductFamilyID m_kind; | CoreSimulatorSupport::DeviceType::ProductFamilyID m_kind; | ||||
lldb_private::FileSpec GetCoreSimulatorPath(); | lldb_private::FileSpec GetCoreSimulatorPath(); | ||||
llvm::Triple::OSType m_os_type = llvm::Triple::UnknownOS; | |||||
llvm::ArrayRef<llvm::StringRef> m_supported_triples = {}; | |||||
Not Done ReplyInline ActionsIf the StringRef is supposed to be a triple, we might want to store an array of llvm::Triple instead? They are basically std::strings. aprantl: If the StringRef is supposed to be a triple, we might want to store an array of llvm::Triple… | |||||
I was going for constant expressions given the StringRef constructor is constexpr. The Triple constructor is not. friss: I was going for constant expressions given the `StringRef` constructor is `constexpr`. The… | |||||
void LoadCoreSimulator(); | void LoadCoreSimulator(); | ||||
#if defined(__APPLE__) | #if defined(__APPLE__) | ||||
CoreSimulatorSupport::Device GetSimulatorDevice(); | CoreSimulatorSupport::Device GetSimulatorDevice(); | ||||
#endif | #endif | ||||
private: | private: | ||||
PlatformAppleSimulator(const PlatformAppleSimulator &) = delete; | PlatformAppleSimulator(const PlatformAppleSimulator &) = delete; | ||||
const PlatformAppleSimulator & | const PlatformAppleSimulator & | ||||
operator=(const PlatformAppleSimulator &) = delete; | operator=(const PlatformAppleSimulator &) = delete; | ||||
}; | }; | ||||
#endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMAPPLESIMULATOR_H | #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMAPPLESIMULATOR_H |
clang-format not found in user's PATH; not linting file.