tidy, format, and resolving tidy warnings #132

Merged
zach merged 26 commits from tidy-warning-fixes into main 2026-06-30 14:46:39 +02:00
Collaborator

Goal

Test & adjust newly updated .clang-tidy rules. Resolve all user fixable warnings/diagnostics. Also format all cpp and hpp files (many were not formatted).

What changed

  • All files are formatted, some snippits have format disabled due to less readable format.
  • Resolve warnings where possible, improved consistency by a lot.
  • Remove/adjust format and tidy rules wherever needed. Some rules were too agressive or not to our liking.
  • Some snippits had improvements left on the table. Some examples are tickingservice.cpp nesting reduction or strokecanvasrenderer.cpp qreal instead of float values.
  • CI/CD ignores compile errors that are not related to user written code.
  • ci-image.yml adjustment requiring node and docker with registry token to access docker build.

Caution

  • Functionality should not change, but verifying if things messed up is important due to large change overal (excluding formatting as well).
  • Take into account other PR's, conflicts could occur.
### Goal Test & adjust newly updated `.clang-tidy` rules. Resolve all user fixable warnings/diagnostics. Also format all cpp and hpp files (many were not formatted). ### What changed - All files are formatted, some snippits have format disabled due to less readable format. - Resolve warnings where possible, improved consistency by a lot. - Remove/adjust format and tidy rules wherever needed. Some rules were too agressive or not to our liking. - Some snippits had improvements left on the table. Some examples are `tickingservice.cpp` nesting reduction or `strokecanvasrenderer.cpp` qreal instead of float values. - CI/CD ignores compile errors that are not related to user written code. - `ci-image.yml` adjustment requiring node and docker with registry token to access docker build. ### Caution - Functionality should not change, but verifying if things messed up is important due to large change overal (excluding formatting as well). - Take into account other PR's, conflicts could occur.
AramJonghu added 1 commit 2026-06-30 01:22:55 +02:00
fix(strokecanvasitem): use qreal instead of float to suppress -Wdouble-promotion
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 16s
Python / lint-format (pull_request) Successful in 23s
Python / test (pull_request) Successful in 48s
C++ / build (pull_request) Successful in 2m20s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m59s
4a18edfc78
AramJonghu force-pushed tidy-warning-fixes from 4023a2fb01 to 4a18edfc78 2026-06-30 01:22:55 +02:00 Compare
AramJonghu added 1 commit 2026-06-30 01:26:26 +02:00
fix(strokecanvasrenderer): use qreal instead of float in drawHoverCursor
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 27s
Python / lint-format (pull_request) Successful in 31s
Python / test (pull_request) Successful in 1m0s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m39s
C++ / build (pull_request) Successful in 2m17s
f439456ff4
AramJonghu added 4 commits 2026-06-30 02:04:28 +02:00
tidy&format(all): all files formatted and relevant warnings resolved
C++ / build (pull_request) Failing after 15s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 28s
Python / lint-format (pull_request) Successful in 45s
Python / test (pull_request) Successful in 38s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m45s
467e44bb9f
AramJonghu added 2 commits 2026-06-30 02:10:43 +02:00
format(remainder): clang-format remainder of files
Python / lint-format (pull_request) Successful in 27s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 48s
Python / test (pull_request) Successful in 1m2s
C++ / build (pull_request) Successful in 2m15s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m25s
1e31e14de8
AramJonghu added 1 commit 2026-06-30 03:08:35 +02:00
tidy(blobmaterial&circularindicatormanager): warning fixes, readability and modernize headers.
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 9s
Python / lint-format (pull_request) Successful in 17s
Python / test (pull_request) Successful in 48s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m41s
C++ / build (pull_request) Successful in 2m29s
944694966b
AramJonghu added 1 commit 2026-06-30 03:18:19 +02:00
fix(clang-tidy/analyzer): resolving false positives
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 9s
Python / lint-format (pull_request) Successful in 26s
Python / test (pull_request) Successful in 47s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m54s
C++ / build (pull_request) Successful in 3m25s
728bdc85bc
AramJonghu added 1 commit 2026-06-30 03:18:48 +02:00
leftover format file
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 19s
Python / lint-format (pull_request) Successful in 25s
Python / test (pull_request) Successful in 46s
C++ / build (pull_request) Successful in 3m19s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m9s
d4e4152bdc
AramJonghu added 2 commits 2026-06-30 03:27:05 +02:00
unused nolint
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 11s
Python / lint-format (pull_request) Successful in 15s
Python / test (pull_request) Successful in 46s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m46s
C++ / build (pull_request) Successful in 2m26s
dcc535d213
AramJonghu added 2 commits 2026-06-30 03:38:44 +02:00
fix(hyprextras): false flag recursion
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 13s
Python / lint-format (pull_request) Successful in 21s
Python / test (pull_request) Successful in 47s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m53s
C++ / build (pull_request) Successful in 2m22s
87c9f85ac7
AramJonghu added 1 commit 2026-06-30 03:44:40 +02:00
CI/CD: updated cpp to reduce false flags, focus on dev tidy check
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 12s
Python / lint-format (pull_request) Successful in 30s
Python / test (pull_request) Successful in 42s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m37s
C++ / build (pull_request) Successful in 2m23s
49a65becff
AramJonghu added 1 commit 2026-06-30 03:54:51 +02:00
CI/CD: updated, should not stop the check now due to diagnostic demotion
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 11s
Python / lint-format (pull_request) Successful in 14s
Python / test (pull_request) Successful in 48s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m46s
C++ / build (pull_request) Successful in 2m26s
25e1610e2b
AramJonghu added 1 commit 2026-06-30 04:02:26 +02:00
CI/CD: updated, researched other CI/CD implementations
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 16s
Python / lint-format (pull_request) Successful in 31s
Python / test (pull_request) Successful in 44s
C++ / build (pull_request) Successful in 2m18s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m47s
b8f79c51ae
AramJonghu added 1 commit 2026-06-30 04:17:54 +02:00
CI/CD: testing warnings as errors for CI/CD only
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 20s
Python / lint-format (pull_request) Successful in 49s
Python / test (pull_request) Successful in 1m11s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m32s
C++ / build (pull_request) Failing after 2m26s
d2368c8c10
AramJonghu added 1 commit 2026-06-30 04:27:51 +02:00
CI/CD: revert
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 25s
Python / lint-format (pull_request) Successful in 29s
Python / test (pull_request) Successful in 41s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m39s
C++ / build (pull_request) Successful in 2m28s
1cdcecae68
AramJonghu added 1 commit 2026-06-30 04:36:28 +02:00
CI/CD: attempt only user tidy warnings
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 16s
Python / lint-format (pull_request) Successful in 29s
Python / test (pull_request) Successful in 46s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m39s
C++ / build (pull_request) Successful in 2m35s
3c9df82594
AramJonghu added 1 commit 2026-06-30 04:42:42 +02:00
force harmless lint warning to check ci/cd
Python / lint-format (pull_request) Successful in 26s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 30s
Python / test (pull_request) Successful in 50s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m43s
C++ / build (pull_request) Successful in 2m25s
85944ec966
AramJonghu added 1 commit 2026-06-30 04:49:59 +02:00
fix&revert(qalculator): unassigned this to calculator pointer fixed, revert of succesful test
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 20s
Python / lint-format (pull_request) Successful in 41s
Python / test (pull_request) Successful in 1m51s
Lint & Format (Rust) / lint-format (pull_request) Successful in 2m0s
C++ / build (pull_request) Successful in 3m41s
45350210cc
AramJonghu self-assigned this 2026-06-30 05:07:30 +02:00
AramJonghu added the enhancement label 2026-06-30 05:07:35 +02:00
AramJonghu marked the pull request as ready for review 2026-06-30 05:07:42 +02:00
AramJonghu requested review from zach 2026-06-30 05:07:42 +02:00
AramJonghu changed title from tidy warning fixes to tidy, format, and resolving tidy warnings 2026-06-30 05:08:34 +02:00
Author
Collaborator

One finding I had is that when building and running feat/settings-revamp branch, config file adds anim. This seems to cause issues on main and tidy-warning-fixes.

On request, I will remove (most) comments in the codebase.

One finding I had is that when building and running `feat/settings-revamp` branch, config file adds anim. This seems to cause issues on `main` and `tidy-warning-fixes`. On request, I will remove (most) comments in the codebase.
Owner

config file adds anim.

What does this mean?

> config file adds anim. What does this mean?
Author
Collaborator

That is unclear indeed.

I wanted to illustrate that I noticed that building feature branch adds/changes config file. The new additions seemingly break compatibility with main and tidy-warning-fixes.

anim refers to the added appearance { anim { block in config.json.

That is unclear indeed. I wanted to illustrate that I noticed that building feature branch adds/changes config file. The new additions seemingly break compatibility with main and tidy-warning-fixes. anim refers to the added `appearance { anim {` block in `config.json`.
zach merged commit 60831de7c5 into main 2026-06-30 14:46:39 +02:00
zach deleted branch tidy-warning-fixes 2026-06-30 14:46:47 +02:00
Sign in to join this conversation.