mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
into python-extensions.swig, which gets included into lldb.swig, and adds them back into the classes when swig generates it's C++ file. This keeps the Python stuff out of the general API classes. Also fixed a small bug in the copy constructor for SBSymbolContext. llvm-svn: 114602
92 lines
1.7 KiB
C++
92 lines
1.7 KiB
C++
//===-- SBFileSpec.h --------------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLDB_SBFileSpec_h_
|
|
#define LLDB_SBFileSpec_h_
|
|
|
|
#include "lldb/API/SBDefines.h"
|
|
|
|
namespace lldb {
|
|
|
|
class SBFileSpec
|
|
{
|
|
public:
|
|
SBFileSpec ();
|
|
|
|
SBFileSpec (const lldb::SBFileSpec &rhs);
|
|
|
|
SBFileSpec (const char *path);
|
|
|
|
~SBFileSpec ();
|
|
|
|
#ifndef SWIG
|
|
const SBFileSpec &
|
|
operator = (const lldb::SBFileSpec &rhs);
|
|
#endif
|
|
|
|
bool
|
|
IsValid() const;
|
|
|
|
bool
|
|
Exists () const;
|
|
|
|
bool
|
|
ResolveExecutableLocation ();
|
|
|
|
const char *
|
|
GetFilename() const;
|
|
|
|
const char *
|
|
GetDirectory() const;
|
|
|
|
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);
|
|
|
|
private:
|
|
friend class SBBlock;
|
|
friend class SBCompileUnit;
|
|
friend class SBHostOS;
|
|
friend class SBLineEntry;
|
|
friend class SBModule;
|
|
friend class SBSourceManager;
|
|
friend class SBThread;
|
|
friend class SBTarget;
|
|
|
|
void
|
|
SetFileSpec (const lldb_private::FileSpec& fs);
|
|
#ifndef SWIG
|
|
|
|
const lldb_private::FileSpec *
|
|
operator->() const;
|
|
|
|
const lldb_private::FileSpec *
|
|
get() const;
|
|
|
|
const lldb_private::FileSpec &
|
|
operator*() const;
|
|
|
|
const lldb_private::FileSpec &
|
|
ref() const;
|
|
|
|
#endif
|
|
|
|
std::auto_ptr <lldb_private::FileSpec> m_opaque_ap;
|
|
};
|
|
|
|
|
|
} // namespace lldb
|
|
|
|
#endif // LLDB_SBFileSpec_h_
|