Skip to content

Latest commit

 

History

History
75 lines (39 loc) · 2.85 KB

naming_layout.md

File metadata and controls

75 lines (39 loc) · 2.85 KB
  • Use a tool.

clang-format

  • Would be possible except for the use of libraries with varying conventions.

clang-tidy: readability-identifier-naming
clang-format

  • Flag macros with lower-case letters
  • Flag ALL_CAPS non-macro names

clang-tidy: readability-identifier-naming

  • Impossible

clang-tidy: readability-identifier-naming

clang-format

  • Flag long digit sequences. The trouble is to define "long"; maybe 7.

no enforcement

  • Flag departures from the suggested order. There will be a lot of old code that doesn't follow this rule.

no enforcement

  • If you want enforcement, use an IDE to reformat.

clang-format

  • Impossible in the face of history.

clang-format

  • Easy

clang-format

  • nothing

no enforcement

no enforcement

  • Flag const used as a suffix for a type.

no enforcement