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

Setup include path in vscode with clangd #140

Open
aben20807 opened this issue Jan 5, 2023 · 0 comments
Open

Setup include path in vscode with clangd #140

aben20807 opened this issue Jan 5, 2023 · 0 comments

Comments

@aben20807
Copy link
Owner

Ref: https://stackoverflow.com/questions/61206703/is-there-includepath-option-in-clangd#comment126291138_69269142

  1. Add .clangd in the root of repo with contents:
CompileFlags: # Tweak the parse settings
Add: 
  - "--include-directory=/path/to/include/"
  - "--include-directory=/anothor/path/to/include/"
  1. Add config in .vscode/settings.json ({} is the outer one)
{
  "clangd.fallbackFlags": [
      "--enable-config",
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant