From 78ceb3a4159ef723232471dd9e34b08114ebf870 Mon Sep 17 00:00:00 2001
From: Chris Lattner
Date: Fri, 10 Dec 2010 00:54:03 +0000
Subject: [PATCH] fix some validation problems
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121444 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/CodingStandards.html | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/docs/CodingStandards.html b/docs/CodingStandards.html
index f42abd9d335..ff33ffa98a9 100644
--- a/docs/CodingStandards.html
+++ b/docs/CodingStandards.html
@@ -60,7 +60,7 @@
loop
#include <iostream> is
forbidden
- Use raw_ostream
+ Use raw_ostream
Avoid std::endl
@@ -828,24 +828,25 @@ and isLValue()). Different kinds of declarations have different rules:
-- Type names (including classes, structs, enums, typedefs, etc) should
- be nouns and start with an upper-case letter (e.g. TextFileReader).
+
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
+
Function names should be verb phrases (as they represent
actions), and command-like function should be imperative. The name should
be camel case, and start with a lower case letter (e.g. openFile()
- or isFoo()).
+ or isFoo()).
-- Enum declarations (e.g. "enum Foo {...}") are types, so they should
- follow the naming conventions for types. A common use for enums is as a
+
Enum declarations (e.g. "enum Foo {...}") are types, so they
+should follow the naming conventions for types. A common use for enums is as a
discriminator for a union, or an indicator of a subclass. When an enum is
used for something like this, it should have a "Kind" suffix (e.g.
- "ValueKind").
+ "ValueKind").
-- Enumerators (e.g. enum { Foo, Bar }) and
+
Enumerators (e.g. enum { Foo, Bar }) and
public member variables should start with an upper-case letter, just
like types. Unless the enumerators are defined in their own small
namespace or inside a class, enumerators should have a prefix corresponding