Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / source / Host / macosx / cfcpp / CFCBundle.h
blob398817fd87d3c24bbb3a5bc9166f73338958b4c1
1 //===-- CFCBundle.h ---------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCBUNDLE_H
10 #define LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCBUNDLE_H
12 #include "CFCReleaser.h"
14 class CFCBundle : public CFCReleaser<CFBundleRef> {
15 public:
16 // Constructors and Destructors
17 CFCBundle(const char *path = NULL);
18 CFCBundle(CFURLRef url);
20 ~CFCBundle() override;
22 CFURLRef CopyExecutableURL() const;
24 CFStringRef GetIdentifier() const;
26 CFTypeRef GetValueForInfoDictionaryKey(CFStringRef key) const;
28 bool GetPath(char *dst, size_t dst_len);
30 bool SetPath(const char *path);
32 private:
33 // Disallow copy and assignment constructors
34 CFCBundle(const CFCBundle &) = delete;
36 const CFCBundle &operator=(const CFCBundle &) = delete;
39 #endif // LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCBUNDLE_H