Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:48

0001 //===-- HostInfoWindows.h ---------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef lldb_Host_windows_HostInfoWindows_h_
0010 #define lldb_Host_windows_HostInfoWindows_h_
0011 
0012 #include "lldb/Host/HostInfoBase.h"
0013 #include "lldb/Utility/FileSpec.h"
0014 #include "llvm/Support/VersionTuple.h"
0015 #include <optional>
0016 
0017 namespace lldb_private {
0018 class UserIDResolver;
0019 
0020 class HostInfoWindows : public HostInfoBase {
0021   friend class HostInfoBase;
0022 
0023 public:
0024   static void Initialize(SharedLibraryDirectoryHelper *helper = nullptr);
0025   static void Terminate();
0026 
0027   static size_t GetPageSize();
0028   static UserIDResolver &GetUserIDResolver();
0029 
0030   static llvm::VersionTuple GetOSVersion();
0031   static std::optional<std::string> GetOSBuildString();
0032   static std::optional<std::string> GetOSKernelDescription();
0033   static bool GetHostname(std::string &s);
0034   static FileSpec GetProgramFileSpec();
0035   static FileSpec GetDefaultShell();
0036 
0037   static bool GetEnvironmentVar(const std::string &var_name, std::string &var);
0038 
0039 private:
0040   static FileSpec m_program_filespec;
0041 };
0042 }
0043 
0044 #endif