Skip to contentSkip to conversation

pm: cpupower: gitignore: Add compile_commands.json

PATCH In review John B. Wyatt IV 2 participants 2 messages Sep 30, 2024 CPU power monitoring

lore
Share & tools
lore

John B. Wyatt IV

author maintainer
#0 lore raw

PATCH 1/1 pm: cpupower: gitignore: Add compile_commands.json

A compile_commands.json file is used by the LSP in tools like VSCode and Neovim to look up function and type information. The file is specific to the state of the current system; add it to the gitignore.

Note: the kernel root's gitignore has a similar entry:

/compile_commands.json

I am not sure why they use '/' for a file as it is used for directories.

---
 tools/power/cpupower/.gitignore | 3 +++
 1 file changed, 3 insertions(+)
tools/power/cpupower/.gitignore +3 -0
index 7677329c42a6..5113d5a7aee0 100644
@@ -27,3 +27,6 @@ debug/i386/intel_gsic
 debug/i386/powernow-k8-decode
 debug/x86_64/centrino-decode
 debug/x86_64/powernow-k8-decode
+
+# Clang's compilation database file
+compile_commands.json
Signature · 1 line
2.46.2
maintainer
#1 lore raw
Quoted 21 lines · John B. Wyatt IV

A compile_commands.json file is used by the LSP in tools like VSCode and Neovim to look up function and type information. The file is specific to the state of the current system; add it to the gitignore.

Note: the kernel root's gitignore has a similar entry:

/compile_commands.json

I am not sure why they use '/' for a file as it is used for directories.

---
  tools/power/cpupower/.gitignore | 3 +++
  1 file changed, 3 insertions(+)
tools/power/cpupower/.gitignore +0 -0
index 7677329c42a6..5113d5a7aee0 100644

tools/power/cpupower/.gitignore debug/i386/intel_gsic · line 32

Quoted 6 lines
tools/power/cpupower/.gitignore +3 -0
@@ -27,3 +27,6 @@ debug/i386/intel_gsic
  debug/i386/powernow-k8-decode
  debug/x86_64/centrino-decode
  debug/x86_64/powernow-k8-decode
+
+# Clang's compilation database file
+compile_commands.json

Thank you. Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux.git/log/?h=cpupower

It will be included in my next pull request to PM maintainer.

thanks,
-- Shuah