Hi all,
I think we generally recommend that the definition order for class methods (in a .cc file) should match declaration order for that class's methods (in the .h file, often). However I can't actually find this guidance in the Google or Chromium C++ style guide. Is it in there somewhere?
I see no reason not to follow this rule when adding new code (although if it's not in the style guide, I guess that means it's up to the author), but is it worth it to reorder existing code to fix this issue? Moving methods around obfuscates git history so I'm not sure it's as worth it in that situation.