Skip to content

Add clang-tidy misc-definitions-in-headers check#164959

Closed
janeyx99 wants to merge 2 commits intogh/janeyx99/313/basefrom
gh/janeyx99/313/head
Closed

Add clang-tidy misc-definitions-in-headers check#164959
janeyx99 wants to merge 2 commits intogh/janeyx99/313/basefrom
gh/janeyx99/313/head

Conversation

@janeyx99
Copy link
Contributor

@janeyx99 janeyx99 commented Oct 8, 2025

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 8, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/164959

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 294ab31 with merge base ab82456 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

janeyx99 added a commit that referenced this pull request Oct 8, 2025
ghstack-source-id: e30f85f
Pull Request resolved: #164959
InheritParentConfig: true
Checks: '
google-global-names-in-headers,
misc-definitions-in-headers,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Pretty sure this clang-tidy check does nothing unless any compilation targets on in the folder, but go ahead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

haha when I develop it shows underlines, which is better than not having underlines

Copy link
Contributor

Choose a reason for hiding this comment

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

yea I think it's good to add, and I'll test if turning on warnings-as-errors does anything in CI in #164963

@janeyx99
Copy link
Contributor Author

@pytorchbot merge -r

I'm merging this stack to get our from/to out of the global namespace asap. There is still ongoing discussion about inline vs anon namespaces, and I'll take responsibility in correcting the files if needed.

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 21, 2025
@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

[ghstack-poisoned]
pytorchmergebot pushed a commit that referenced this pull request Oct 21, 2025
ghstack-source-id: c13ebe4
Pull Request resolved: #164959
@pytorchmergebot
Copy link
Collaborator

Successfully rebased gh/janeyx99/313/orig onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via ghstack checkout https://github.com/pytorch/pytorch/pull/164959)

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
zhudada0120 pushed a commit to zhudada0120/pytorch that referenced this pull request Oct 22, 2025
@github-actions github-actions bot deleted the gh/janeyx99/313/head branch November 21, 2025 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants