From dbbb39e0f78dad0faf8375ead64691fb6186ff86 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Sun, 27 Mar 2022 18:16:59 -0400 Subject: [PATCH] CODINGSTYLE.md: note that macros should be caps'd Signed-off-by: Quentin Young --- CODINGSTYLE.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CODINGSTYLE.md b/CODINGSTYLE.md index 4bd016efd..36ee736d0 100644 --- a/CODINGSTYLE.md +++ b/CODINGSTYLE.md @@ -103,6 +103,17 @@ other editors that implement this coding style, please add them here. where the two meet, use your best judgment and go for best consistency (i.e., where does the name "originate") +* macro names should be capitalized; e.g., prefer + ``` + #define FROB 17 + #define FROBULATE(x) (x)+FROB + ``` + to + ``` + #define frob 17 + #define frobulate(x) (x)+frob + ``` + * there is a strong preference for lower case file names; sometimes conventions or outside requirements make camelCase filenames the better (or only) choice, but absent such an outside reason all file names should be lower case