Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] Update libc namespace clang-tidy checks #98088

Closed
wants to merge 1 commit into from
Closed

Conversation

Prabhuk
Copy link
Contributor

@Prabhuk Prabhuk commented Jul 8, 2024

Namespace macro that should be used to declare a new namespace is
updated from LIBC_NAMESPACE to LIBC_NAMESPACE_DECL which by default has
hidden visibility (#97109). This commit updates the clang-tidy checks to
match the new policy.

@@ -11,6 +11,8 @@
namespace clang::tidy::llvm_libc {

const static llvm::StringRef RequiredNamespaceStart = "__llvm_libc";
const static llvm::StringRef RequiredNamespaceHiddenMacroName =
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better to call this one "...NamespaceDecl" and the other one "...NamespaceRef".

Namespace macro that should be used to declare a new namespace is
updated from LIBC_NAMESPACE to LIBC_NAMESPACE_DECL which by default has
hidden visibility (llvm#97109). This commit updates the clang-tidy checks to
match the new policy.
@Prabhuk
Copy link
Contributor Author

Prabhuk commented Jul 11, 2024

New version of this PR is uploaded by Paul Kirth here: #98424

Closing this pull request.

@Prabhuk Prabhuk closed this Jul 11, 2024
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.

2 participants