[llvm] c8ec751 - Revert "CodingStandards: restrict CamelCase variable names guideline to llvm/clang/clang-tools-extra/polly/bolt"

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 00:45:27 PST 2023


Author: Nikita Popov
Date: 2023-01-06T09:44:27+01:00
New Revision: c8ec751d883d0975a1e34a10013bbe2adf5dccfa

URL: https://github.com/llvm/llvm-project/commit/c8ec751d883d0975a1e34a10013bbe2adf5dccfa
DIFF: https://github.com/llvm/llvm-project/commit/c8ec751d883d0975a1e34a10013bbe2adf5dccfa.diff

LOG: Revert "CodingStandards: restrict CamelCase variable names guideline to llvm/clang/clang-tools-extra/polly/bolt"

This reverts commit ee9ccb11036ac46ff9b9f3fa2d459d9d2bce5509.

See https://reviews.llvm.org/D140585#4019417 and following.
Multiple people requested a revert of this change pending further
discussion.

Added: 
    

Modified: 
    llvm/docs/CodingStandards.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/CodingStandards.rst b/llvm/docs/CodingStandards.rst
index 7a1a24b7a724..49a23e0dcb3a 100644
--- a/llvm/docs/CodingStandards.rst
+++ b/llvm/docs/CodingStandards.rst
@@ -1093,10 +1093,8 @@ In general, names should be in camel case (e.g. ``TextFileReader`` and
   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.  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.
+  be camel case, and start with an upper case letter (e.g. ``Leader`` or
+  ``Boats``).
 
 * **Function names** should be verb phrases (as they represent actions), and
   command-like function should be imperative.  The name should be camel case,


        


More information about the llvm-commits mailing list