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
Get rid of missing newline error in clang. #45
Conversation
I hope I can take a look at this within the next 2 weeks. |
I am unsure if always adding the new line will work on linux/win but the CI should error if it is indeed a problem. |
can you add "macos" to docs/source/spelling_dict.txt to fix the spelling check error |
c84d32d
to
ff1ed39
Compare
Done! Fingers crossed. |
On Darwin, executing g++ runs clang, which emits an error when a C++ code block does not end in a newline. This is different from how g++ behaves on Linux. This error doesn't add any value in the context of a code block in an RST file, so we just always add a newline to the C++ source code of a block to always get rid of it.
ff1ed39
to
edd6f42
Compare
Thanks for your work :) I would like to add pydantic v2 support before a new release. There is another PR already. Hope to get to it soon. |
Thank you for helping me merge this! Do you want me to open a PR on |
Yes, that would be very helpful. |
- 1.1 includes bugfixes for errors in clang rstcheck/rstcheck-core#45
On Darwin, executing g++ runs clang, which emits an error when a C++ code block does not end in a newline. This is different from how g++ behaves on Linux.
This error doesn't add any value in the context of a code block in an RST file, so we just always add a newline to the C++ source code of a block to get rid of it.
Check List
Resolves: #19
tox
test suite locally, so the CI pipelines should be green.