From c513309224611d662a8de51f81216164f5954a30 Mon Sep 17 00:00:00 2001
From: Chris Lattner
Date: Fri, 12 Aug 2011 19:49:16 +0000
Subject: [PATCH] apparently variable naming conventions never got added,
document the prevailing convention. Thanks to Dave Zarzycki for the patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137497 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/CodingStandards.html | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/docs/CodingStandards.html b/docs/CodingStandards.html
index 7f92b9a7cf0..a96f760e674 100644
--- a/docs/CodingStandards.html
+++ b/docs/CodingStandards.html
@@ -854,8 +854,12 @@ rules:
Type names (including classes, structs, enums, typedefs, etc)
- should be nouns and start with an upper-case letter (e.g.
- TextFileReader).
+ should be 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).
Function names should be verb phrases (as they represent
actions), and command-like function should be imperative. The name should