From 98bec51b35382ab1682e31818e46bc165ea74142 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 9 Dec 2010 23:32:39 +0000 Subject: [PATCH] add a rule for enums, patch by Zhanyong Wan! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121430 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CodingStandards.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/CodingStandards.html b/docs/CodingStandards.html index 4af3c6a5bf6..7791e8dd872 100644 --- a/docs/CodingStandards.html +++ b/docs/CodingStandards.html @@ -824,10 +824,12 @@ known.

should be in camel case (e.g. TextFileReader and isLValue()). Type names (including classes, structs, enums, typedefs, etc) should be nouns and start with an upper-case -letter (e.g. TextFileReader). Function names should be verb -phrases (as they represent actions) and start with a lower-case letter -(e.g. a predicate may be named isFoo() or hasBar(), -while the name of a command-like function should be imperative, +letter (e.g. TextFileReader). An enum for all the +different kinds of something should be named with the Kind +suffix. Function names should be verb phrases (as they represent +actions) and start with a lower-case letter (e.g. a predicate may be +named isFoo() or hasBar(), while the name of a +command-like function should be imperative, like openFile()).

Enumerators and public member variables should start with an