mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
-O gen-C++ support for type expressions
This commit is contained in:
parent
ae62209e78
commit
9f5fba7003
6 changed files with 29 additions and 0 deletions
|
@ -299,6 +299,11 @@ void FuncConstInfo::InitializerVals(std::vector<std::string>& ivs) const {
|
|||
}
|
||||
}
|
||||
|
||||
void TypeConstInfo::InitializerVals(std::vector<std::string>& ivs) const {
|
||||
auto& t = tv->GetType()->AsTypeType()->GetType();
|
||||
ivs.emplace_back(Fmt(t->Tag()));
|
||||
}
|
||||
|
||||
AttrInfo::AttrInfo(CPPCompile* _c, const AttrPtr& attr) : CompoundItemInfo(_c) {
|
||||
vals.emplace_back(Fmt(static_cast<int>(attr->Tag())));
|
||||
auto a_e = attr->GetExpr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue