r221125 - clang-format: [Java] Allow trailing semicolons after enums.

Tobias Grosser tobias at grosser.es
Mon Nov 3 08:49:58 PST 2014


On 03.11.2014 16:53, Daniel Jasper wrote:
> Reverted in r221158.

Thanks.

> I think just removing the semicolon should be good
> in almost all cases. We can reconsider later if that proves to be wrong.

Removing the semicolon from were? If I just drop it from the C++ code I 
get an error:

/tmp/test.cpp:3:23: error: expected ';' after enum
enum TestEnum2 { D, C}
                       ^
                       ;

Are you saying there is a way I can change the C++ code such that 
clang-format will do the right thing even with this patch? Or are you 
talking about removing semicolons at another place (maybe ignoring them 
in clang-format?).

I am mostly asking to understand if I can just put the check back in 
place or if I could also update some code to avoid issues in the future.

Cheers,
Tobias



More information about the cfe-commits mailing list