Pass argument to clangd from LSP for error: clangd cannot parse stl lib header

i need to pass --query-driver=/usr/lib/gcc/arm-none-eabi/8.3.1/ to clangd to suppress an invalid header error message from LSP.


i tried to plug it into .emacs.d/.local/straight/repos/lsp-mode/clients/lsp-clangd.el:

(defcustom lsp-clients-clangd-args '("--header-insertion-decorators=0", "--query-driver=/usr/lib/gcc/arm-none-eabi/8.3.1/")
  "Extra arguments for the clangd executable."
  :group 'lsp-clangd
  :risky t
  :type '(repeat string))

but does nothing… what am i doing wrong?

edit: lsp log:

Command "/home/ajit/.emacs.d/.local/etclsp/clangd/clangd_13.0.0/bin/clangd --header-insertion-decorators=0" is present on the path.

so my edit is not being passed by lsp… how do I update the config?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.