-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev clang format #37
base: main
Are you sure you want to change the base?
Dev clang format #37
Conversation
4d4d7a6
to
e3eec83
Compare
e3eec83
to
c220f8e
Compare
c220f8e
to
a8c4b7b
Compare
AlignTrailingComments: false | ||
# > clang-format-13 | ||
# Kind: Leave | ||
# OverEmptyLines: 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we uncomment this? Below we also have the lambda configs which assume clang-format-13+
@@ -29,10 +29,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ | |||
#include <vector> | |||
|
|||
#ifdef SILKIT_HOURGLASS | |||
#include "silkit/hourglass/SilKit.hpp" | |||
#include "silkit/hourglass/config/IParticipantConfiguration.hpp" | |||
# include "silkit/hourglass/SilKit.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks funky 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe BeforeHash for
https://clang.llvm.org/docs/ClangFormatStyleOptions.html#indentppdirectives
Would be a better Option?
std::cout << "Sync SimTask now=" << now.count() << std::endl; | ||
syncTimeNs = now; | ||
}, 1ms); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have the feeling, that the brace indent might be switched here.
Signed-off-by: Jan Kraemer <[email protected]>
a8c4b7b
to
eab2b68
Compare
Subject
Run clang-format on all C and C++ files
Description
Used the following script:
[UPDATE]
Fixed clang-format version to 16, for compat reasons
Instructions for review / testing
Developer checklist (address before review)