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

ccls does not recognize C attributes #965

Open
computerscience-person opened this issue Jun 8, 2024 · 0 comments
Open

ccls does not recognize C attributes #965

computerscience-person opened this issue Jun 8, 2024 · 0 comments

Comments

@computerscience-person
Copy link

computerscience-person commented Jun 8, 2024

Observed behavior

ccls gives an error on C attributes (feature was standardized in C23 and is supported by clang 9 and gcc 10).

Minimal example:

[[nodiscard]] void* identity(void* item) {
  return item;
}

Expected behavior

No error (feature standardized in C23).

Steps to reproduce

Minimal example:

[[nodiscard]] void* identity(void* item) {
  return item;
}

System information

  • ccls version (git describe --tags --long): 0.20240202
  • clang version: 14.0.6
  • OS: Linux nixos 6.6.32
  • Editor: Neovim
  • Language client (and version):
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

No branches or pull requests

1 participant