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

Include Tests and Benchmarks in clang-tidy CI #4653

Merged
merged 3 commits into from
May 24, 2023

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented May 24, 2023

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.

Copy link
Contributor

@github-actions github-actions bot left a 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

@@ -18,7 +18,7 @@ int main(int argc, char **argv)
QtConcurrent::run([&app] {
::benchmark::RunSpecifiedBenchmarks();

app.exit(0);
app.exit(0 * 1);
Copy link
Contributor

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]

Suggested change
app.exit(0 * 1);
QApplication::exit(0 * 1);

@@ -36,7 +36,7 @@ int main(int argc, char **argv)

chatterino::NetworkManager::deinit();

app.exit(res);
app.exit(res * 1);
Copy link
Contributor

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]

Suggested change
app.exit(res * 1);
QApplication::exit(res * 1);

This reverts commit 59c2c1b.
@pajlada pajlada enabled auto-merge (squash) May 24, 2023 20:48
@pajlada pajlada merged commit 2264c44 into Chatterino:master May 24, 2023
@Nerixyz Nerixyz deleted the ci/clangtidy-test-benchmark branch May 25, 2023 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants