Skip to content
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

Prevent clang-tidy warnings #1

Open
ClausKlein opened this issue Jan 31, 2020 · 0 comments
Open

Prevent clang-tidy warnings #1

ClausKlein opened this issue Jan 31, 2020 · 0 comments

Comments

@ClausKlein
Copy link

ClausKlein commented Jan 31, 2020

With clang-tidy I have checked the examples only and got some warnings;
You may see all warnings at the attached log file.

bash-3.2$ builddriver run-clang-tidy.py -p build/standalone '-checks=-*,-modernize-*,misc-*,hicpp-*,cert-*,readability-*,portability-*,performance-*,-cppcore*' standalone
builddriver executing: 'run-clang-tidy.py -p build/standalone -checks=-*,-modernize-*,misc-*,hicpp-*,cert-*,readability-*,portability-*,performance-*,-cppcore* standalone'
Compilation SUCCEED in 6.70547 seconds
Number of warnings: 4
WarningErrorEntry(path='/Users/clausklein/Workspace/cpp/cxx.simplelog/standalone/main.example_syslog.cpp', lineno='64', severity='warning', message="initialization of 'rootLog' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp]", column='32')
WarningErrorEntry(path='/Users/clausklein/Workspace/cpp/cxx.simplelog/standalone/main.example_syslog.cpp', lineno='102', severity='warning', message='use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]', column='22')
WarningErrorEntry(path='/Users/clausklein/Workspace/cpp/cxx.simplelog/standalone/main.example_syslog.cpp', lineno='102', severity='warning', message='use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]', column='55')
WarningErrorEntry(path='/Users/clausklein/Workspace/cpp/cxx.simplelog/standalone/main.example_spdlog.cpp', lineno='109', severity='warning', message="initialization of 'rootLog' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp]", column='32')
For full log, please open: /var/folders/wb/ckvxxgls5db7qyhqq4y5_l1c0000gq/T/build-kn3wnhad.log
bash-3.2$ 
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

No branches or pull requests

1 participant