Skip to content

Add .clang-tidy from Water Quality team, add Readme on how to add it …#579

Open
harmenwierenga wants to merge 1 commit intomainfrom
all/feature/UNST-9604_static_analysis
Open

Add .clang-tidy from Water Quality team, add Readme on how to add it …#579
harmenwierenga wants to merge 1 commit intomainfrom
all/feature/UNST-9604_static_analysis

Conversation

@harmenwierenga
Copy link
Contributor

…to your IDE

What was done

  • e.g. Restarts are made more robust
  • e.g. Fixes a bug related to the writing of water depth on the map file
  • e.g. Introduces a new functionality on energy losses at bridge peirs
  • e.g. …

Evidence of the work done

  • Video/figures
    <add video/figures if applicable>
  • Clear from the issue description
  • Not applicable

Tests

  • Tests updated
    <add testcase numbers if applicable, Issue number>
  • Not applicable

Documentation

  • Documentation updated
    <add description of changes if applicable, Issue number>
  • Not applicable

Issue link UNST-9604

Go to the C++ project (csumo_precice) in the solution explorer, right click and go to Properties,
or click on the project and go to Project -> Properties.
Then, find Code Analysis -> General -> Enable Clang Tidy and set it to 'Yes.'
It will automatically use the settings from the Visual Studio solution, and also find the project headers.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a pitty that this change disappears when redoing cmake config. I'm in favour of adding it to the CMake file, but that might be too invasive (and also needs an updated CMake version?). I can live with how it is in this branch.

@@ -1,4 +1,4 @@
# Set up C++ Formatting
# Set up clang-format C++ Formatting
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we avoid flip-flopping when one developer uses tidy and another not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants