Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 68ba3c3d authored by Bernie Innocenti's avatar Bernie Innocenti
Browse files

clang-format: Double-indent continuation lines

The default value for ContinuationIndentWidth inherited from the Google
style is 4. Since .clang-format-4 doubles the value of IndentWidth
from 2 to 4, it should also double ContinuationIndentWidth to retain
Google's double-indent style.

Before:

 void forEachInterface(
     const std::string& dirname,
     const std::function<void(const std::string& path)) {
     fn(dirname, "default");
     DIR* dir = opendir(dirname.c_str());

After this patch:

 void forEachInterface(
         const std::string& dirname,
         const std::function<void(const std::string& path)) {
     fn(dirname, "default");
     DIR* dir = opendir(dirname.c_str());

Test: applied to libsysutils/src/*.cpp and compared output.
Change-Id: I75c50fa9becd5291a17047933f443cc6db77838a
parent 5c1d56df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment