-
Notifications
You must be signed in to change notification settings - Fork 63
Add HeaderInsertion config option
#129
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
Conversation
HighCommander4
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the doc patch. Looks good with two corrections.
config.md
Outdated
| Completion: | ||
| AllScopes: Yes | ||
| ArgumentLists: FullPlaceholders | ||
| HeaderInsertion: Never |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume by "sample block (default)" you mean that you want to list the defaults here.
The default for HeaderInsertion is IWYU.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah whoops! Fixed it.
config.md
Outdated
| the delimiters are `<>`. | ||
|
|
||
| ### HeaderInsertion | ||
| {:.v20} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This config option will actually first appear in clangd 21. (llvm 20 has branched in January, so any commits more recent than that target llvm 21 unless they are explicitly backported to the llvm 20 branch.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I didn't realize, 20 had already released, thanks! Should be fixed now.
|
I just now noticed that the default blocks use 2 spaces for indent, whereas my commit has 4 😅 . Should I update the PR with a fix, for consistency? |
Sure (but note that you can't reopen a merged PR, you need to submit a new one) |
|
Done, sorry for the trouble and thank you for your time! |
Add config documentation for
HeaderInsertion, introduced in this PR.Also added a commit for the default sample block. If this needs to go in a separate PR, let me know!