Skip to content

[libcu++] harden the preprocessor machinery to avoid user defined tokens#9407

Merged
miscco merged 2 commits into
NVIDIA:mainfrom
miscco:harden_preprocessor
Jun 12, 2026
Merged

[libcu++] harden the preprocessor machinery to avoid user defined tokens#9407
miscco merged 2 commits into
NVIDIA:mainfrom
miscco:harden_preprocessor

Conversation

@miscco

@miscco miscco commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

We should not use non reserved identifiers.

Fixes #9406

@miscco miscco requested a review from a team as a code owner June 11, 2026 15:57
@miscco miscco requested a review from pciolkosz June 11, 2026 15:57
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Jun 11, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Jun 11, 2026
@coderabbitai

This comment was marked as outdated.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: c95d9b5b-46e9-43df-ba00-8bcff57dc9de

📥 Commits

Reviewing files that changed from the base of the PR and between aa4a271 and fb55dc9.

📒 Files selected for processing (2)
  • libcudacxx/include/cuda/std/__cccl/preprocessor.h
  • libcudacxx/include/cuda/std/__concepts/concept_macros.h

Comment thread libcudacxx/include/cuda/std/__concepts/concept_macros.h Outdated

@davebayer davebayer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's prefix everything that is not an immediate macro parameter with _CCCL to prevent this happening again because of some _-prefixed macros

@github-project-automation github-project-automation Bot moved this from In Review to In Progress in CCCL Jun 11, 2026
@github-actions

This comment has been minimized.

@miscco miscco force-pushed the harden_preprocessor branch from fb55dc9 to bb1f8d4 Compare June 12, 2026 06:52
@github-project-automation github-project-automation Bot moved this from In Progress to In Review in CCCL Jun 12, 2026
@miscco

miscco commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test

@miscco miscco enabled auto-merge (squash) June 12, 2026 10:57
@miscco miscco force-pushed the harden_preprocessor branch from bb1f8d4 to 62fdd29 Compare June 12, 2026 11:34

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 4c47dd11-ad15-4a65-8af0-f18f4c3d4080

📥 Commits

Reviewing files that changed from the base of the PR and between bb1f8d4 and 62fdd29.

📒 Files selected for processing (2)
  • libcudacxx/include/cuda/std/__cccl/preprocessor.h
  • libcudacxx/include/cuda/std/__concepts/concept_macros.h
🚧 Files skipped from review as they are similar to previous changes (1)
  • libcudacxx/include/cuda/std/__cccl/preprocessor.h

Comment thread libcudacxx/include/cuda/std/__concepts/concept_macros.h Outdated
Comment thread libcudacxx/include/cuda/std/__concepts/concept_macros.h Outdated
@miscco miscco force-pushed the harden_preprocessor branch from 62fdd29 to 74b76ac Compare June 12, 2026 12:10
@miscco

miscco commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

@CodeRabbit full review

@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 4h 26m: Pass: 100%/118 | Total: 6d 09h | Max: 4h 26m | Hits: 35%/3202046

See results here.

@miscco miscco merged commit 61493f8 into NVIDIA:main Jun 12, 2026
138 checks passed
@miscco miscco deleted the harden_preprocessor branch June 12, 2026 16:40
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Jun 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG]: Compile failure when -DDEFAULT is set in nvcc

3 participants