fix(ClavaLaraApi): DecomposeVarDeclarations: don't separate init for static variables
@@ -13,7 +13,9 @@ class DecomposeVarDeclarations extends Pass {
}
matchJoinpoint($jp) {
- return $jp.instanceOf("vardecl") && $jp.hasInit;
+ return (
+ $jp.instanceOf("vardecl") && $jp.hasInit && $jp.storageClass !== "static"
+ );
}
transformJoinpoint($vardecl) {
