Skip to content

Conversation

@brianherold
Copy link

I was surprised how many global variables this found in the codebase I'm working in, so I looked into it. Turns out some of the globals it found weren't actually globals, and it missed some actual globals.

I added test cases for the 4 types of missing or false globals I found, then updated the code to pass the tests.

Updated how code was removed from within brackets. Previous method did not work well with nested brackets.

Added match for global pointers

Added match for global sized array where size is from #define

Updated how line number match worked for special cases
@brianherold
Copy link
Author

I found a few other false global variables, so I pushed some additional code changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant