[llvm-dev] Variable names rule

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Mon Feb 4 12:29:08 PST 2019


On Mon, 4 Feb 2019 at 20:21, JD Jones <jjones at prc-hsv.com> wrote:
> If _<lowerCaseLetter> violates a standard, please say which one. It does not violate the C++11 standard:

If strictly adhered to, it doesn't, and I've never claimed any
different. But coding standards are never strictly adhered to.
Particularly not in a codebase like LLVM which already has a good
handful in play for historical reasons. We can't expect reviewers to
be perfect either, and violations of a leading underscore rule have a
ridiculously high probability of producing malformed C++.

It's simply not worth the aggro when there are plenty of other
possibilities available that don't open us up for that failure mode.

Tim.


More information about the llvm-dev mailing list