When adding the implicit compound statement (required for Codegen?), the end location was previously overridden by the start location, probably based on the assumptions:
- The location of the implicit compound statement should be the member's location
- The compound statement if present is always the last element of a FunctionDecl
This patch changes the location of the compound statement to the member's end location, but I am open to other suggestions.
I think this is a reasonable approach. Do the other DefineImplicit* members also need this fix?