Hi Dave,
I'm afraid I was the cause of the start of the discussion. I'm also using VS Code now, which has a built-in way to auto format the code (incl C++).
Using the shortcut: Ctrl + Shift + I (capital i)
Yet there are otherwise, like
clang auto formatter. Instead of using right away. We may need to discuss and agree as a community which tool we will use.
And also which settings will be used, ideally be stored into the git repo (root folder), which then get picked up by the relevant tool.
In fact, I'm would like to go to next level, namely automated CI/CD. Which may include auto-formatter, other tools maybe like static code analysis (cppcheck
), generation of documentation (from source code) and running testcases within a pipeline.
Ps. Where are the testcases? We may need to start creating (integration/unit) testcases to avoid regression issues when changing code.
Kind regards,
Melroy van den Berg
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Op woensdag, mei 20, 2020 1:23 AM, Dave Chamberlin-Kidd <dave@flamangoes.co.uk> schreef:
Hi,
I noticed someone else talking about auto code formatting. Is there a house style? If so is there a recommend formatting tool (I'm currently using Vs code and vi to edit)?
Cheers
Dave