Skip to content

modernize-return-braced-init-list#8458

Open
Jacobfaib wants to merge 1 commit intoNVIDIA:mainfrom
Jacobfaib:jacobf/2026-04-15/modernize-return-braced-init-list
Open

modernize-return-braced-init-list#8458
Jacobfaib wants to merge 1 commit intoNVIDIA:mainfrom
Jacobfaib:jacobf/2026-04-15/modernize-return-braced-init-list

Conversation

@Jacobfaib
Copy link
Copy Markdown
Contributor

Description

closes

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@Jacobfaib Jacobfaib self-assigned this Apr 15, 2026
@Jacobfaib Jacobfaib requested review from a team as code owners April 15, 2026 16:05
@Jacobfaib Jacobfaib requested review from gonidelis and leofang April 15, 2026 16:05
@Jacobfaib Jacobfaib requested a review from fbusato April 15, 2026 16:05
@github-project-automation github-project-automation bot moved this to Todo in CCCL Apr 15, 2026
@Jacobfaib Jacobfaib requested a review from elstehle April 15, 2026 16:05
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Apr 15, 2026
Copy link
Copy Markdown
Contributor

@fbusato fbusato left a comment

Choose a reason for hiding this comment

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

don't have a strong opinion on that, slightly in favor. My concern is that I'm 100% that all compilers accept the new style

@Jacobfaib Jacobfaib requested a review from fbusato April 15, 2026 19:45
@github-actions
Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 5h 31m: Pass: 100%/381 | Total: 18d 12h | Max: 4h 18m | Hits: 19%/529350

See results here.

Copy link
Copy Markdown
Contributor

@miscco miscco left a comment

Choose a reason for hiding this comment

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

I am not in favor of this. IN our heavily templated code this might trigger especially the older compilers like GCC-7 which are not fully tested in PR CI

I am all for using {} for constructors, but we should retain the type

@github-project-automation github-project-automation bot moved this from In Review to In Progress in CCCL Apr 16, 2026
@Jacobfaib
Copy link
Copy Markdown
Contributor Author

I am not in favor of this. IN our heavily templated code this might trigger especially the older compilers like GCC-7 which are not fully tested in PR CI

I am all for using {} for constructors, but we should retain the type

clang-tidy will only suggest replacement with {} when the return-type is unambiguously clear, i.e. when it is spelled out explicitly in the return type. If you take a look at the changes in this PR, you'll note that it does not specify a replacement for any templated types, only when the type is fully resolved.

Is there a mechanism where we can test older compilers in CI?

@Jacobfaib Jacobfaib requested a review from miscco April 16, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants