-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
Include Tests and Benchmarks in clang-tidy
CI
#4653
Include Tests and Benchmarks in clang-tidy
CI
#4653
Conversation
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.
clang-tidy made some suggestions
benchmarks/src/main.cpp
Outdated
@@ -18,7 +18,7 @@ int main(int argc, char **argv) | |||
QtConcurrent::run([&app] { | |||
::benchmark::RunSpecifiedBenchmarks(); | |||
|
|||
app.exit(0); | |||
app.exit(0 * 1); |
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.
warning: static member accessed through instance [readability-static-accessed-through-instance]
app.exit(0 * 1); | |
QApplication::exit(0 * 1); |
tests/src/main.cpp
Outdated
@@ -36,7 +36,7 @@ int main(int argc, char **argv) | |||
|
|||
chatterino::NetworkManager::deinit(); | |||
|
|||
app.exit(res); | |||
app.exit(res * 1); |
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.
warning: static member accessed through instance [readability-static-accessed-through-instance]
app.exit(res * 1); | |
QApplication::exit(res * 1); |
This reverts commit 59c2c1b.
Description
Enables the tests and benchmarks when checking with clang-tidy. This is fine, since they're never compiled there.
I added a change to test if they're actually included.