You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Apache Celix has a mix of styles in its code base, ideally this should be align to a single and clear coding style.
A first step could be to introduce a clang-format style supported with some cmake / shell support to apply the clang-format.
For example, something like the following clang-format can be used as starting point:
#.clang-format
Language: Cpp
BasedOnStyle: Google
PointerAlignment: Left
DerivePointerAlignment: false
InsertBraces: true
AlignEscapedNewlines: Right
UseTab: Never
IndentWidth: 4
And a small shell command or cmake command can be created to apply the format to all Apache Celix c, h, cc and cpp files:
Currently Apache Celix has a mix of styles in its code base, ideally this should be align to a single and clear coding style.
A first step could be to introduce a clang-format style supported with some cmake / shell support to apply the clang-format.
For example, something like the following clang-format can be used as starting point:
And a small shell command or cmake command can be created to apply the format to all Apache Celix c, h, cc and cpp files:
A shell command to only apply the format to git staged files can also be created, something like:
The creating of the .clang-format file and the applying of format should be separate pull requests.
The text was updated successfully, but these errors were encountered: