15#ifndef LIEF_PDB_COMPILATION_UNIT_H
16#define LIEF_PDB_COMPILATION_UNIT_H
34class CompilationUnitIt;
42 CompilationUnit, std::ptrdiff_t,
43 const CompilationUnit*, const CompilationUnit&> {
46 using iterator_facade_base::operator++;
47 using iterator_facade_base::operator--;
84 std::unique_ptr<
details::CompilationUnitIt> impl_;
126 LIEF_API friend std::ostream& operator<<(std::ostream& os,
128 os << CU.to_string();
133 std::unique_ptr<details::CompilationUnit> impl_;
Configuration options for generated code from debug info.
Definition DebugDeclOpt.hpp:36
CRTP base class which implements the entire standard iterator facade in terms of a minimal subset of ...
Definition iterators.hpp:729
Definition iterators.hpp:601
Definition PDB/CompilationUnit.hpp:43
std::unique_ptr< CompilationUnit > yield()
Transfer ownership of the compilation unit at the current position to the caller. Returns nullptr if ...
details::CompilationUnitIt implementation
Definition PDB/CompilationUnit.hpp:45
Iterator(Iterator &&) noexcept
Iterator(std::unique_ptr< details::CompilationUnitIt > impl)
Iterator(const Iterator &)
Iterator & operator=(const Iterator &)
const CompilationUnit & operator*() const
std::string to_decl(const DeclOpt &opt=DeclOpt()) const
Generate a C/C++ definition for the functions defined in this compilation unit.
std::string to_string() const
iterator_range< std::vector< std::string >::const_iterator > sources_iterator
Iterator over the source files (std::string).
Definition PDB/CompilationUnit.hpp:89
sources_iterator sources() const
Iterator over the sources files that compose this compilation unit. These files also include headers ...
CompilationUnit(std::unique_ptr< details::CompilationUnit > impl)
iterator_range< Function::Iterator > function_iterator
Definition PDB/CompilationUnit.hpp:92
std::string object_filename() const
Name or path to the original binary object (COFF, Archive) in which the compilation unit was located ...
std::unique_ptr< BuildMetadata > build_metadata() const
Return build metadata such as the version of the compiler or the original source language of this com...
std::string module_name() const
Name (or path) to the COFF object (.obj) associated with this compilation unit (e....
function_iterator functions() const
Return an iterator over the function defined in this compilation unit. If the PDB does not contain or...
Definition PDB/Function.hpp:35
#define LIEF_LIFETIMEBOUND
Definition compiler_attributes.hpp:72
Definition BuildMetadata.hpp:27
Definition BuildMetadata.hpp:25
LIEF namespace.
Definition Abstract/Binary.hpp:41
#define LIEF_API
Definition visibility.h:45