[PATCH] D140585: CodingStandards: restrict CamelCase variable names guideline to llvm/clang/clang-tools-extra/polly/bolt
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 28 12:48:25 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGee9ccb11036a: CodingStandards: restrict CamelCase variable names guideline to… (authored by MaskRay).
Changed prior to commit:
https://reviews.llvm.org/D140585?vs=484953&id=485541#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140585/new/
https://reviews.llvm.org/D140585
Files:
llvm/docs/CodingStandards.rst
Index: llvm/docs/CodingStandards.rst
===================================================================
--- llvm/docs/CodingStandards.rst
+++ llvm/docs/CodingStandards.rst
@@ -1112,8 +1112,10 @@
nouns and start with an upper-case letter (e.g. ``TextFileReader``).
* **Variable names** should be nouns (as they represent state). The name should
- be camel case, and start with an upper case letter (e.g. ``Leader`` or
- ``Boats``).
+ be camel case. In ``llvm/``, ``clang/``, ``clang-tools-extra/``, ``polly/``,
+ and ``bolt/``, the name should start with an upper-case letter (e.g.
+ ``Leader`` or ``Boats``); start with a lower case-letter letter for other
+ directories.
* **Function names** should be verb phrases (as they represent actions), and
command-like function should be imperative. The name should be camel case,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140585.485541.patch
Type: text/x-patch
Size: 846 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221228/ccb6f2ed/attachment.bin>
More information about the llvm-commits
mailing list