Skip to content

Clang tidy#20

Open
jwcodee wants to merge 8 commits intomasterfrom
clang-tidy
Open

Clang tidy#20
jwcodee wants to merge 8 commits intomasterfrom
clang-tidy

Conversation

@jwcodee
Copy link
Contributor

@jwcodee jwcodee commented Jun 29, 2019

The error from CI is only from clang-tidy.

@jwcodee jwcodee requested a review from sjackman July 2, 2019 15:44
Makefile.am Outdated


# Check the C++ source code for white-space errors with clang-format.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this blank line.

Makefile.am Outdated
if ls *.fixed; then exit 1; fi

# Check the C++ source code for errors with clang-tidy.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

Please remove this blank line.

- script: make clang-format
displayName: Run clang-format
- script: make clang-tidy
displayName: Run clang-tidy No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

This odd 🚫 icon above indicates that you have removed the final line feed from the file, and so this line has no line feed. Please configure your text editor to ensure that the file ends with a line feed. I recommend using Vim (MacVim on macOS) or Microsoft Visual Studio Code.

Makefile.am Outdated
# Check the C++ source code for errors with clang-tidy.

clang-tidy:
clang-tidy -warnings-as-errors='*' *.hpp *.h */*.cpp Tests/*/*.*pp -- -std=c++11 -x c++ -I./vendor No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

This odd 🚫 icon above indicates that you have removed the final line feed from the file, and so this line has no line feed. Please configure your text editor to ensure that the file ends with a line feed. I recommend using Vim (MacVim on macOS) or Microsoft Visual Studio Code.

@sjackman
Copy link
Contributor

sjackman commented Jul 2, 2019

clang-tidy should ignore the fileTests/Unit/catch.hpp because it's vendored. You could move it to a subdirectory of vendor/.

@sjackman
Copy link
Contributor

sjackman commented Jul 2, 2019

This PR must pass CI before merging. One way to do that is to make the necessary fixes to silence the clang-tidy errors. Another option is to ignore the failure of the clang-tidy errors in the Makefile. The former solution is preferable.

@jwcodee
Copy link
Contributor Author

jwcodee commented Jul 2, 2019

clang-tidy should ignore the fileTests/Unit/catch.hpp because it's vendored. You could move it to a subdirectory of vendor/.

I'll do this in a separate PR since I'll have to change the regex for the clang-format too. I didn't catch was vendor library too.

@sjackman
Copy link
Contributor

Is this PR the next to be merged?

@jwcodee
Copy link
Contributor Author

jwcodee commented Jul 19, 2019

hmm I don't know how much work it will take to clear all the errors. My original plan was to make the 1.2.0 release then do the clang-tidy work.

@sjackman
Copy link
Contributor

That sounds good.

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