summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-09-21 14:01:15 -0500
committerGunnar Mills <gmills@us.ibm.com>2018-09-21 14:12:46 -0500
commit4f7b4b6dc4ad6e0ffb9d354288eb2f60f0bd6863 (patch)
tree421c88e5f23948a7ca9e3965ff2838d0ab2f77f9
parent9ec2013bac2122ce8926b651901f589d84984ffb (diff)
downloadopenbmc-docs-4f7b4b6dc4ad6e0ffb9d354288eb2f60f0bd6863.tar.gz
openbmc-docs-4f7b4b6dc4ad6e0ffb9d354288eb2f60f0bd6863.zip
cpp-style-and-conventions.md: Remove astyle
The astyle command listed formatted the code in a way that varied quite a bit from our coding style. Leaving this command could confuse users into thinking they could use astyle for C++ code. With clang-format being enforced by CI, best to remove astyle and stick with clang-format. Change-Id: I5f80048e037fc2768f07702ade22031a802a002a Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--cpp-style-and-conventions.md13
1 files changed, 1 insertions, 12 deletions
diff --git a/cpp-style-and-conventions.md b/cpp-style-and-conventions.md
index 03f3167..15e957f 100644
--- a/cpp-style-and-conventions.md
+++ b/cpp-style-and-conventions.md
@@ -45,7 +45,7 @@ following the C++ Core Guidelines.
thinking for us wherever possible. This means having Continuous Integration
tests on each repository so that regressions are quickly identified prior to
merge. It also means having as much of this document enforced by tools as
-possible by, for example, astyle/clang-format and clang-tidy.
+possible by, for example, clang-format and clang-tidy.
For those coming to the project from pre-C++11 environments we strongly
recommend the book "Effective Modern C++" as a way to get up to speed on the
@@ -128,17 +128,6 @@ clearer and similar-sized code. iostream may be used in those situations.
Indentation, naming practices, etc.
-[[ These should be codified as much as possible with astyle / clang-format. ]]
-
-An astyle-invocation that closely approximates our indentation style is:
-```
-astyle --style=allman --add-brackets --convert-tabs --max-code-length=80 \
- --indent=spaces=4 --indent-classes --indent-switches --indent-labels \
- --indent-preproc-define --min-conditional-indent=0 --pad-oper \
- --pad-header --unpad-paren --break-after-logical \
- --align-pointer=type --align-reference=type
-```
-
### General
* Line length should be limited to 80 characters.
OpenPOWER on IntegriCloud