LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::dwarf::CompilationUnit::Language Class Reference

Languages supported by the DWARF (v5) format. See: https://dwarfstd.org/languages.html. More...

#include <CompilationUnit.hpp>

Public Types

enum  LANG : uint32_t {
  UNKNOWN = 0 , C , CPP , RUST ,
  DART , MODULA , FORTRAN , SWIFT ,
  D , JAVA , COBOL
}
 

Public Member Functions

 Language ()=default
 
 Language (LANG lang, uint32_t version)
 
 Language (LANG lang)
 
 Language (const Language &)=default
 
Languageoperator= (const Language &)=default
 
 Language (Language &&)=default
 
Languageoperator= (Language &&)=default
 
 ~Language ()=default
 

Public Attributes

LANG lang = UNKNOWN
 The language itself.
 
uint32_t version = 0
 Version of the language (e.g. 17 for C++17)
 

Detailed Description

Languages supported by the DWARF (v5) format. See: https://dwarfstd.org/languages.html.

Some languages (like C++11, C++17, ..) have a version (11, 17, ...) which is stored in a dedicated attribute: version

Member Enumeration Documentation

◆ LANG

Enumerator
UNKNOWN 
CPP 
RUST 
DART 
MODULA 
FORTRAN 
SWIFT 
JAVA 
COBOL 

Constructor & Destructor Documentation

◆ Language() [1/5]

LIEF::dwarf::CompilationUnit::Language::Language ( )
default

◆ Language() [2/5]

LIEF::dwarf::CompilationUnit::Language::Language ( LANG lang,
uint32_t version )
inline

◆ Language() [3/5]

LIEF::dwarf::CompilationUnit::Language::Language ( LANG lang)
inline

◆ Language() [4/5]

LIEF::dwarf::CompilationUnit::Language::Language ( const Language & )
default

◆ Language() [5/5]

LIEF::dwarf::CompilationUnit::Language::Language ( Language && )
default

◆ ~Language()

LIEF::dwarf::CompilationUnit::Language::~Language ( )
default

Member Function Documentation

◆ operator=() [1/2]

Language & LIEF::dwarf::CompilationUnit::Language::operator= ( const Language & )
default

◆ operator=() [2/2]

Language & LIEF::dwarf::CompilationUnit::Language::operator= ( Language && )
default

Member Data Documentation

◆ lang

LANG LIEF::dwarf::CompilationUnit::Language::lang = UNKNOWN

The language itself.

◆ version

uint32_t LIEF::dwarf::CompilationUnit::Language::version = 0

Version of the language (e.g. 17 for C++17)


The documentation for this class was generated from the following file: