Skip to content

alignof operator in C is not highlighted correctly #139377

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

Closed
LeoriumDev opened this issue May 10, 2025 · 3 comments
Closed

alignof operator in C is not highlighted correctly #139377

LeoriumDev opened this issue May 10, 2025 · 3 comments
Labels
c23 clangd invalid Resolved as invalid, i.e. not a bug

Comments

@LeoriumDev
Copy link

I think a in alignof is not colored properly. I am using clangd extension targeting C23 in vs code.
Image

Image
@llvmbot
Copy link
Member

llvmbot commented May 10, 2025

@llvm/issue-subscribers-clangd

Author: Leorium He (LeoriumDev)

I think a in alignof is not colored properly. I am using clangd extension targeting C23 in vs code. <img width="763" alt="Image" src="https://github.com/user-attachments/assets/5729b8fd-6b0e-40e0-9f0d-f50bc841423f" />

<img width="410" alt="Image" src="https://github.com/user-attachments/assets/d481c6ab-82b8-4e26-971d-bd31cc2e8d98" />

@EugeneZelenko
Copy link
Contributor

The performance optimizations here are quite clever. Nice engineering work!

@tstellar: Looks like bot account that creates noise in notifications. See also #139346 as example.

@llvm llvm deleted a comment May 10, 2025
@HighCommander4
Copy link
Collaborator

The highlighting shown in the screenshot is not produced by clangd; I see it in vscode even with the clangd extension disabled, suggesting that it's coming from vscode's client-side highlighting.

I think the right place to file an issue for that would be https://github.com/jeff-hykin/better-cpp-syntax/.

@HighCommander4 HighCommander4 closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2025
@EugeneZelenko EugeneZelenko added the invalid Resolved as invalid, i.e. not a bug label May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c23 clangd invalid Resolved as invalid, i.e. not a bug
Projects
None yet
Development

No branches or pull requests

5 participants