Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix renaming tag type containing anonymous type
The current code assumes that the whole var_type string consists of the anonymous type name. This works for simple cases like struct {} X; where X is of the type __anonXXXX but not for cases like struct {} X[2]; where X is of type __anonXXXX[]. For these cases checking for equality of var_tag->var_type, orig_name isn't sufficient and we have to check whether orig_name is a substring of var_tag->var_type and replace this substring with the new anon name. This problem can be seen for instance in the symbol tree tooltip of the symbols_icons variable inside symbols.c
- Loading branch information