IIRC it's a problem already reported in AStyle's bug tracker, unfortunately there has not been another release for almost 5 months now to try with something newer, and the repository was disabled.
Since it's a 3rd party library, with a code hard to follow, the most we can do is to check if the bug is already reported, and report it if it's not.