Documentation about .clangd configuration file feels a bit incomplete
I am struggling to figure out how to write a config file, because the documentation about the .clangd configuration file found here https://clangd.llvm.org/config.html feels a bit incomplete. Here is the things that I missed: 1. No useful example for `If` in combination with something else. Can I change the Index settings inside an `If`? How does that look like, especially if I want to globally enable it but then disable it on some files? I'm not sure 2. Where are these "clangd logs" that are mentioned but not linked to some article for their location to check for config errors? Isn't there some tool like `clangd --config-test ...path.../.clangd` that can just tell me if the config is faulty? 3. Can I exclude files from errors in general, even when opened directly? I have some files that do not compile as singled out object files, so when I open them in VS Code I get a christmas tree of irrelevant errors. While the config documentation shows how to specify different flags for a file, it neither shows an example of how to exclude it from the background index nor from "foreground" errors when opened 4. There is no example for a more complex example config file given, with maybe some more complex real world examples of `If` conditional blocks and such. It is a bit challenging to figure out if what I have in mind to possibly combine is actually possible or not.
Posted by ell1e on Jan 17, 2021, 5:06 AM
Tags
Related issues
- struct's lifetime requirements can be bypassed via covariant field assignment
- Proposal to Reorganize the Moderation Team and Review Moderation Policies
- Progressive FPS degradation appears to be related to dota2.com — blocking the domain prevents the performance loss
- proposal: container/...: generic collection types
- Better Custom Endpoint BYOK
- A concrete policy for backward compatibility until Godot 5.0
Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments
github (Other)
struct's lifetime requirements can be bypassed via covariant field assignment
Proposal to Reorganize the Moderation Team and Review Moderation Policies
Progressive FPS degradation appears to be related to dota2.com — blocking the domain prevents the performance loss
proposal: container/...: generic collection types
Better Custom Endpoint BYOK
A concrete policy for backward compatibility until Godot 5.0
New MTP models not supported
Tracking: 429 / Capacity Issues
Documentation about .clangd configuration file feels a bit incomplete
I am struggling to figure out how to write a config file, because the documentation about the .clangd configuration file found here https://clangd.llvm.org/config.html feels a bit incomplete. Here is the things that I missed: 1. No useful example for `If` in combination with something else. Can I change the Index settings inside an `If`? How does that look like, especially if I want to globally enable it but then disable it on some files? I'm not sure 2. Where are these "clangd logs" that are mentioned but not linked to some article for their location to check for config errors? Isn't there some tool like `clangd --config-test ...path.../.clangd` that can just tell me if the config is faulty? 3. Can I exclude files from errors in general, even when opened directly? I have some files that do not compile as singled out object files, so when I open them in VS Code I get a christmas tree of irrelevant errors. While the config documentation shows how to specify different flags for a file, it neither shows an example of how to exclude it from the background index nor from "foreground" errors when opened 4. There is no example for a more complex example config file given, with maybe some more complex real world examples of `If` conditional blocks and such. It is a bit challenging to figure out if what I have in mind to possibly combine is actually possible or not.
Comments (0)
No comments yet. Start the discussion.