[llvm-dev] Variable names rule

Michael Platings via llvm-dev llvm-dev at lists.llvm.org
Thu Feb 7 07:58:36 PST 2019


Thanks for all your thoughts. It sounds like there's general agreement that the current naming rule for variables is not ideal.

I've submitted a patch, which I hope implements the least controversial change of switching to lowerCamelCase: https://reviews.llvm.org/D57896 - please review.

I don't want to alienate everyone who's been carefully adhering to the current rule, so the new rule also allows using UpperCamelCase. It would be nice if we could express this in .clang-tidy but I can't see a way to do that, other than just using aNy_CasE.

Cheers,
-Michael


More information about the llvm-dev mailing list