fix: do not generate code for [extern] functions
This commit is contained in:
parent
2e09ac16b1
commit
9feb4d8ab7
1 changed files with 1 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ def shouldGenerateCode (declName : Name) : CoreM Bool := do
|
|||
let some info ← getDeclInfo? declName | return false
|
||||
unless info.hasValue do return false
|
||||
let env ← getEnv
|
||||
if isExtern env declName then return false
|
||||
if hasMacroInlineAttribute env declName then return false
|
||||
if (← Meta.isMatcher declName) then return false
|
||||
if isCasesOnRecursor env declName then return false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue