Files
clang-r547379/include/lldb/API/SBFileSpec.h
Ryan Prichard 6024e5c395 Update prebuilt Clang to r547379 (20.0.0).
clang 20.0.0 (based on r547379) from build 12806354.

Bug: http://b/379133546
Test: N/A
Change-Id: I2eb8938af55d809de674be63cb30cf27e801862b

Upstream-Commit: ad834e67b1105d15ef907f6255d4c96e8e733f57
2025-11-26 14:59:46 -05:00

101 lines
2.5 KiB
C++

//===-- SBFileSpec.h --------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef LLDB_API_SBFILESPEC_H
#define LLDB_API_SBFILESPEC_H
#include "lldb/API/SBDefines.h"
namespace lldb {
class LLDB_API SBFileSpec {
public:
SBFileSpec();
SBFileSpec(const lldb::SBFileSpec &rhs);
LLDB_DEPRECATED_FIXME(
"Use the other constructor to determine if this the file "
"spec should be resolved",
"SBFileSpec(const char *, bool)")
SBFileSpec(const char *path);
SBFileSpec(const char *path, bool resolve);
~SBFileSpec();
const SBFileSpec &operator=(const lldb::SBFileSpec &rhs);
explicit operator bool() const;
bool operator==(const SBFileSpec &rhs) const;
bool operator!=(const SBFileSpec &rhs) const;
bool IsValid() const;
bool Exists() const;
bool ResolveExecutableLocation();
const char *GetFilename() const;
const char *GetDirectory() const;
void SetFilename(const char *filename);
void SetDirectory(const char *directory);
uint32_t GetPath(char *dst_path, size_t dst_len) const;
static int ResolvePath(const char *src_path, char *dst_path, size_t dst_len);
bool GetDescription(lldb::SBStream &description) const;
void AppendPathComponent(const char *file_or_directory);
private:
friend class SBAttachInfo;
friend class SBBlock;
friend class SBCommandInterpreter;
friend class SBCompileUnit;
friend class SBDeclaration;
friend class SBFileSpecList;
friend class SBHostOS;
friend class SBLaunchInfo;
friend class SBLineEntry;
friend class SBModule;
friend class SBModuleSpec;
friend class SBPlatform;
friend class SBProcess;
friend class SBProcessInfo;
friend class SBSourceManager;
friend class SBTarget;
friend class SBThread;
friend class SBTrace;
friend class SBSaveCoreOptions;
SBFileSpec(const lldb_private::FileSpec &fspec);
void SetFileSpec(const lldb_private::FileSpec &fspec);
const lldb_private::FileSpec *operator->() const;
const lldb_private::FileSpec *get() const;
const lldb_private::FileSpec &operator*() const;
const lldb_private::FileSpec &ref() const;
std::unique_ptr<lldb_private::FileSpec> m_opaque_up;
};
} // namespace lldb
#endif // LLDB_API_SBFILESPEC_H