From aa269935083f89e0b0908bd5002fc26a169fc672 Mon Sep 17 00:00:00 2001 From: Julian Raschke Date: Tue, 1 Oct 2013 00:51:44 +0800 Subject: [PATCH] Document C++11 enum classes in CONTRIBUTING.md --- CONTRIBUTING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 73efcfee6..7df77f171 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,7 +5,8 @@ Please follow these style guidelines for C++ & Objective C code: * Follow the C++ 2003 (TR1) standard. The `` header facilitates this. * Use `JavaClassNames`, `javaVariables.javaMethods()`, `AND_JAVA_CONSTANTS`. - For enums, follow the Delphi style: `enum AlphaMode { amDefault, amAdditive }` + For C enums, follow the Delphi style: `enum AlphaMode { amDefault, amAdditive };` + For C++11 enums, follow the Java style: `enum class AlphaMode { DEFAULT, ADDITIVE };` * Don't worry too much about trailing spaces or Windows/UNIX newlines. But please ensure that your commit does not change lines or files that you haven't touched otherwise. * Indent in multiples of four spaces (not tabs). Don't use formatting that will break when using a proportional font.