Details
- Reviewers
- None
Diff Detail
- Repository
- rB Blender
Event Timeline
Can't say like the look of this, it is quite the eyesore with the underscores, @Campbell Barton (campbellbarton) thoughts?
While I would like to see the shadow warn on for all platforms so we can write higher quality code, this diff feels like a step in the opposite direction
Personally I'd think the best way forward here would be:
- See if we can get msvc/gcc/clang to agree on what gets flagged and what doesn't
- See if we can get it to ignore /extern
- Add a temporary CMake Flag to enable the excessive warnings about shadows, off by default
- Implement proper fixes our selves or work with the community to get patches (this is all pretty low hanging fruit, great way for a new dev to get started)
- Once all issues are fixed, remove cmake option, enable the warnings by default
Unless we figure out 1+2 the rest is irrelevant though...
I'm fine with going over the patch again to actually clean up the changes. In this first pass I just wanted to find most cases and fix the warning. Didn't feel like doing the second pass day though.
Even though I don't like the prefix underscore either, I actually find it less confusing than duplicate variable names.
(Wouldn't mind if someone from the community does the rest of the cleanup of course.)