mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pm: cpupower: gitignore: Add compile_commands.json
@ 2024-09-30 17:22 John B. Wyatt IV
  2024-09-30 19:55 ` Shuah Khan
  0 siblings, 1 reply; 2+ messages in thread
From: John B. Wyatt IV @ 2024-09-30 17:22 UTC (permalink / raw)
  To: Shuah Khan, Thomas Renninger
  Cc: John B. Wyatt IV, linux-pm, Shuah Khan, Rafael J. Wysocki,
	linux-kernel, John Kacur, 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.

Signed-off-by: "John B. Wyatt IV" <jwyatt@redhat.com>
Signed-off-by: "John B. Wyatt IV" <sageofredondo@gmail.com>
---
 tools/power/cpupower/.gitignore | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/power/cpupower/.gitignore b/tools/power/cpupower/.gitignore
index 7677329c42a6..5113d5a7aee0 100644
--- a/tools/power/cpupower/.gitignore
+++ b/tools/power/cpupower/.gitignore
@@ -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
-- 
2.46.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] pm: cpupower: gitignore: Add compile_commands.json
  2024-09-30 17:22 [PATCH] pm: cpupower: gitignore: Add compile_commands.json John B. Wyatt IV
@ 2024-09-30 19:55 ` Shuah Khan
  0 siblings, 0 replies; 2+ messages in thread
From: Shuah Khan @ 2024-09-30 19:55 UTC (permalink / raw)
  To: John B. Wyatt IV, Thomas Renninger
  Cc: linux-pm, Shuah Khan, Rafael J. Wysocki, linux-kernel,
	John Kacur, John B. Wyatt IV, Shuah Khan

On 9/30/24 11:22, John B. Wyatt IV wrote:
> 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.
> 
> Signed-off-by: "John B. Wyatt IV" <jwyatt@redhat.com>
> Signed-off-by: "John B. Wyatt IV" <sageofredondo@gmail.com>
> ---
>   tools/power/cpupower/.gitignore | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/tools/power/cpupower/.gitignore b/tools/power/cpupower/.gitignore
> index 7677329c42a6..5113d5a7aee0 100644
> --- a/tools/power/cpupower/.gitignore
> +++ b/tools/power/cpupower/.gitignore
> @@ -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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-30 19:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-30 17:22 [PATCH] pm: cpupower: gitignore: Add compile_commands.json John B. Wyatt IV
2024-09-30 19:55 ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®