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

clang-format IndentPPDirectives: BeforeHash #4441

Closed
luni64 opened this issue Oct 16, 2019 · 1 comment
Closed

clang-format IndentPPDirectives: BeforeHash #4441

luni64 opened this issue Oct 16, 2019 · 1 comment

Comments

@luni64
Copy link

luni64 commented Oct 16, 2019

Type: LanguageService

Describe the bug

  • OS and Version: Win10
  • VS Code Version: 1.39.2
  • C/C++ Extension Version: 0.26.0

Using IndentPPDirectives: BeforeHash generates an error:
YAML:21:21: error: unknown enumerated scalar IndentPPDirectives: BeforeHash
The same works using the clang-format extension and disabling formatting in c/c++

Expected behavior
Should support IndentPPDirectives: BeforeHash

@sean-mcmanus
Copy link
Contributor

The version of clang-format we bundle doesn't support that. We're tracking upgrading to 9.0 at #2887. You could set the C_Cpp.clang_format_path to a newer version of clang as a workaround.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants