Skip to content

loader: re-enable stricter clang-tidy checks, fix findings, add regre… - #2020

Merged
charles-lunarg merged 2 commits into
KhronosGroup:mainfrom
jpr42:dev-more-clang-tidy-cleanup
Aug 26, 2026
Merged

loader: re-enable stricter clang-tidy checks, fix findings, add regre…#2020
charles-lunarg merged 2 commits into
KhronosGroup:mainfrom
jpr42:dev-more-clang-tidy-cleanup

Conversation

@jpr42

@jpr42 jpr42 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

…ssion tests

@ci-tester-lunarg

Copy link
Copy Markdown

Author jpr42 not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg

Copy link
Copy Markdown

Author jpr42 not on autobuild list. Waiting for curator authorization before starting CI build.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 91125.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3725 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3725 passed.

@charles-lunarg charles-lunarg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only issue I have is the reorganization of loader_instance, which in some places makes reading the struct harder (by moving related members far apart).

I do wish diff's were smarter w.r.t removing else clauses, cause that made a lot of noise for what is a minor change.

Comment thread loader/loader_common.h Outdated
bool create_terminator_invalid_extension;
bool supports_get_dev_prop_2;

struct loader_instance_extension_enable_list enabled_extensions;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is one place where I'd rather be much more selective as some of the variables are grouped together by usage, and this change reorganizes them by type.

For example:

    uint32_t total_gpu_count;
    uint32_t phys_dev_count_term;
    struct loader_physical_device_term **phys_devs_term;
    uint32_t phys_dev_count_tramp;
    struct loader_physical_device_tramp **phys_devs_tramp;
    ```
    The counts are now far away from the pointers they are suppose to be the count for. 
    This is as much an indication that there needs to be better structs to organize everything (ie, use a bespoke struct for the list of physical device trampolines), but for now I'd rather not lose context by rearranging members.

Grouping-by-usage (counts next to the pointers/arrays they describe)
is more readable than grouping-by-type for padding, so keep the
original layout and suppress the Padding finding for just this struct
rather than disabling the check repo-wide.
@ci-tester-lunarg

Copy link
Copy Markdown

Author jpr42 not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg

Copy link
Copy Markdown

Author jpr42 not on autobuild list. Waiting for curator authorization before starting CI build.

@jpr42
jpr42 requested a review from charles-lunarg August 25, 2026 23:26
@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 91279.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3726 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3726 passed.

@charles-lunarg

Copy link
Copy Markdown
Collaborator

Thanks again!

@charles-lunarg
charles-lunarg merged commit 0104fa4 into KhronosGroup:main Aug 26, 2026
52 checks passed
@jpr42
jpr42 deleted the dev-more-clang-tidy-cleanup branch August 26, 2026 01:30
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

Successfully merging this pull request may close these issues.

3 participants