From 007785a74d8899c9fdeeb3451c56847dc73e9d78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Sverre=20Lien=20Sell=C3=A6g?= Date: Thu, 10 Sep 2020 13:39:58 +0200 Subject: [PATCH] remove documentation about code style as it is no longer practise --- README.md | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/README.md b/README.md index e4d71b2..3e33f87 100644 --- a/README.md +++ b/README.md @@ -81,30 +81,3 @@ See [custom styling](docs/custom_styling.md). ## Documentation See [how to build the API doc](docs/api.md). - -## Coding style -Due to poor lambda support in clang-format, a custom clang-format is used with the following patch applied: -```diff -diff --git a/lib/Format/ContinuationIndenter.cpp b/lib/Format/ContinuationIndenter.cpp -index bb8efd61a3..e80a487055 100644 ---- a/lib/Format/ContinuationIndenter.cpp -+++ b/lib/Format/ContinuationIndenter.cpp -@@ -276,6 +276,8 @@ LineState ContinuationIndenter::getInitialState(unsigned FirstIndent, - } - - bool ContinuationIndenter::canBreak(const LineState &State) { -+ if(Style.ColumnLimit==0) -+ return true; - const FormatToken &Current = *State.NextToken; - const FormatToken &Previous = *Current.Previous; - assert(&Previous == Current.Previous); -@@ -325,6 +327,8 @@ bool ContinuationIndenter::canBreak(const LineState &State) { - } - - bool ContinuationIndenter::mustBreak(const LineState &State) { -+ if(Style.ColumnLimit==0) -+ return false; - const FormatToken &Current = *State.NextToken; - const FormatToken &Previous = *Current.Previous; - if (Current.MustBreakBefore || Current.is(TT_InlineASMColon)) -```