LILAC
Language to language Interop LAyer Compiler
Loading...
Searching...
No Matches
lilac::cxx::ExportAttrInfo Class Referencefinal

A plugin making clang accepts attributes from LILAC. More...

#include <exportattr.h>

Inheritance diagram for lilac::cxx::ExportAttrInfo:
Collaboration diagram for lilac::cxx::ExportAttrInfo:

Public Member Functions

 ExportAttrInfo ()
 
bool diagAppertainsToDecl (clang::Sema &sema, const clang::ParsedAttr &attr, const clang::Decl *decl) const override
 
AttrHandling handleDeclAttribute (clang::Sema &sema, clang::Decl *decl, const clang::ParsedAttr &attr) const override
 
bool acceptsLangOpts (const clang::LangOptions &LO) const override
 

Static Public Attributes

static constexpr std::string AttrMangling = "__lilac_export"
 

Detailed Description

A plugin making clang accepts attributes from LILAC.

A plugin making clang accepts attributes from LILAC such as [[lilac::export]] or __attribute__((__lilac_export)). Attributes from LILAC will be converted to [[clang::annotate("__lilac_export")]] by this plugin.

Definition at line 34 of file exportattr.h.

Constructor & Destructor Documentation

◆ ExportAttrInfo()

lilac::cxx::ExportAttrInfo::ExportAttrInfo ( )

Definition at line 120 of file exportattr.cxx.

Member Function Documentation

◆ acceptsLangOpts()

bool lilac::cxx::ExportAttrInfo::acceptsLangOpts ( const clang::LangOptions & LO) const
nodiscardoverride

Definition at line 191 of file exportattr.cxx.

◆ diagAppertainsToDecl()

bool lilac::cxx::ExportAttrInfo::diagAppertainsToDecl ( clang::Sema & sema,
const clang::ParsedAttr & attr,
const clang::Decl * decl ) const
override

Definition at line 136 of file exportattr.cxx.

◆ handleDeclAttribute()

clang::ParsedAttrInfo::AttrHandling lilac::cxx::ExportAttrInfo::handleDeclAttribute ( clang::Sema & sema,
clang::Decl * decl,
const clang::ParsedAttr & attr ) const
override

Definition at line 161 of file exportattr.cxx.

Member Data Documentation

◆ AttrMangling

std::string lilac::cxx::ExportAttrInfo::AttrMangling = "__lilac_export"
staticconstexpr

Definition at line 37 of file exportattr.h.


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