[clang-tools-extra] [clangd] Add CodePatterns config option under Completion (PR #137613)

via cfe-commits cfe-commits at lists.llvm.org
Sun May 4 23:44:36 PDT 2025


Noustaa wrote:

There is 2 different features involved here.
1) The fact that if i type "inc" it will suggest me both includes snippets
Like the below image the ones tagged LSP on the right side
![image](https://github.com/user-attachments/assets/a21e1db2-f057-4460-921e-d62d25efb794)

2) The fact that if i type "#include <str" it is supposed to search my library path to suggest "string" as autocompletion for headers.

In the feature i'm trying to implement, number 1 should be OFF if CodePatterns is set to None but number 2 should still be working.
Are these 2 features (num 1 & 2) coupled or can they be managed separately as the current state ?

https://github.com/llvm/llvm-project/pull/137613


More information about the cfe-commits mailing list