-
Notifications
You must be signed in to change notification settings - Fork 2
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
Coarse grained, initial sanitization #1
Conversation
As suggested by FSF, added an updated version of the LGPLv2 license file, the original one was outdated.
All preprocessor definitions beginning with a double underscore followed by an uppercase character (in regex terms: "__([A-Z]+)") are techically undefined behaviour due to the fact that the C and C++ standards reserve all macros in that form for standard purposes. All inclusion guards are replaced with with safer alternatives.
Just to avoid confusion, normalized all line terminations to UNIX (Visual Studio can handle both).
Fixed all inclusion guard macros just to avoid nightmare bugs in the future (there are lots of headers with same name and guards in different inclusion paths). Fix has been applied with: $ clang-tidy -checks="-*,llvm-header-guard" -fix
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 had a look yesterday. LGTM.
I tried to compile the code for Unix.
|
@alalazo just obtained the same result on |
My impression too. |
This PR introduces some basic sanitizations applied while studying the code base.
This is related to forthelols/4nxt#85