From 2d10d7551bdb9e2f83e5bd195eede26e3d3292a0 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Mon, 28 Jul 2003 21:57:18 +0000 Subject: [PATCH] Made many paragraphs fit into 80 characters per line to avoid wrapping in an editor window. Re-worded confusing description about interdependence of modules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7374 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CodingStandards.html | 143 +++++++++++++++++++++++++++++--------- 1 file changed, 112 insertions(+), 31 deletions(-) diff --git a/docs/CodingStandards.html b/docs/CodingStandards.html index fd916bd4fbf..ace2d70c20a 100644 --- a/docs/CodingStandards.html +++ b/docs/CodingStandards.html @@ -173,33 +173,53 @@ It is not possible to prevent all warnings from all compilers, nor is it desirab }

-...which shuts gcc up. Any gcc warning that annoys you can be fixed by massaging the code appropriately.

+...which shuts gcc up. Any gcc warning that annoys you can be +fixed by massaging the code appropriately.

-These are the gcc warnings that I prefer to enable: -Wall -Winline -W -Wwrite-strings -Wno-unused

+These are the gcc warnings that I prefer to enable: -Wall -Winline +-W -Wwrite-strings -Wno-unused


Which C++ features can I use?


Write Portable Code


A Public Header File is a Module


#include as Little as Possible


Keep "internal" Headers Private


Assert Liberally


Prefer Preincrement


Avoid endl


Exploit C++ to its Fullest