From 0241155e4759d06cbc0b612544c494f5ea800a14 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 25 Dec 2019 10:30:11 +0100 Subject: [PATCH] documentation: coding style cpp/h names Add rule about cpp/h names [Dirk Hohndel: small edits to the rule] Signed-off-by: Jan Iversen Signed-off-by: Dirk Hohndel --- CODINGSTYLE.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CODINGSTYLE.md b/CODINGSTYLE.md index 37e242df0..0c2f38a67 100644 --- a/CODINGSTYLE.md +++ b/CODINGSTYLE.md @@ -102,6 +102,10 @@ other editors that implement this coding style, please add them here. or outside requirements make camelCase filenames the better (or only) choice, but absent such an outside reason all file names should be lower case +* cpp/h file names should usually be identical to the class name but in lower + case. Where it seems appropriate, multiple, closely related classes can be + in a single file with a more generic name. + * switch statements with blocks are a little bit special (to avoid indenting too far) ```