Skip to content

Commit

Permalink
Disable automatic header inclusion for clangd
Browse files Browse the repository at this point in the history
This commonly silently adds wrong relative includes at the wrong places
  • Loading branch information
miscco committed Jan 13, 2025
1 parent c998730 commit 2e4ed35
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .devcontainer/cuda12.0-gcc10/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.0-gcc11/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.0-gcc12/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.0-gcc7/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.0-gcc8/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.0-gcc9/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.0-llvm14/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.5-nvhpc24.7/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6-gcc10/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6-gcc11/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6-gcc12/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6-gcc13/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6-gcc7/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6-gcc8/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6-gcc9/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6-llvm14/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6-llvm15/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6-llvm16/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6-llvm17/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6-llvm18/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/cuda12.6ext-gcc13/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
Expand Down

0 comments on commit 2e4ed35

Please sign in to comment.