LILAC
Language to language Interop LAyer Compiler
Loading...
Searching...
No Matches
lilac::cxx Namespace Reference

Classes

class  ExportAttrInfo
 A plugin making clang accepts attributes from LILAC. More...
 
class  LilacAction
 A frontend action that creates lilac::cxx::LilacASTConsumer to traverse AST. More...
 
class  LilacASTConsumer
 An ASTConsumer that creates lilac::cxx::LilacASTVisitor to traverse AST. More...
 
class  LilacASTVisitor
 A recursive AST visitor that serializes C/C++ interface data into DOM object. More...
 

Functions

frxml::dom & GetDOMRoot ()
 
bool ShouldBeExported (clang::NamedDecl *decl)
 
bool GetTypeName (clang::Sema &sema, const clang::SourceLocation loc, const clang::Type *type, std::string &name)
 
bool RecordParameters (clang::Sema &sema, frxml::dom &dom, clang::FunctionDecl *fn)
 
std::optional< frxml::dom > RecordFunction (clang::Sema &sema, clang::FunctionDecl *fn)
 
constexpr std::string GetBuiltinTypeName (clang::BuiltinType::Kind kind)
 

Function Documentation

◆ GetBuiltinTypeName()

std::string lilac::cxx::GetBuiltinTypeName ( clang::BuiltinType::Kind kind)
nodiscardconstexpr

Definition at line 27 of file typemap.h.

◆ GetDOMRoot()

frxml::dom & lilac::cxx::GetDOMRoot ( )

Definition at line 27 of file pluginaction.cxx.

◆ GetTypeName()

bool lilac::cxx::GetTypeName ( clang::Sema & sema,
const clang::SourceLocation loc,
const clang::Type * type,
std::string & name )

Definition at line 228 of file pluginaction.cxx.

◆ RecordFunction()

std::optional< frxml::dom > lilac::cxx::RecordFunction ( clang::Sema & sema,
clang::FunctionDecl * fn )

Definition at line 325 of file pluginaction.cxx.

◆ RecordParameters()

bool lilac::cxx::RecordParameters ( clang::Sema & sema,
frxml::dom & dom,
clang::FunctionDecl * fn )

Definition at line 299 of file pluginaction.cxx.

◆ ShouldBeExported()

bool lilac::cxx::ShouldBeExported ( clang::NamedDecl * decl)

Definition at line 115 of file pluginaction.cxx.