Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Conversation

im-0
Copy link
Contributor

@im-0 im-0 commented Oct 30, 2020

No description provided.

im-0 added 3 commits October 30, 2020 19:45
This makes more sense because:

* No need in adding it into kernel's .gitignore
* It will not be mistaken with kernel's source files
cmd_parser.add_argument(
'-o', '--output',
type=str, default=default_output,
help="Path to resulting JSON file, default: %s" % (default_output, ))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use ArgumentDefaultsHelpFormatter instead of formatting help strings by hand. It's available even in Python 2. You won't need default_* variables with it.

@amezin
Copy link
Owner

amezin commented Jan 9, 2021

Merged some of your changes by cherry-picking

I'm still not sure about moving compile_commands.json. At least about doing so by default

  1. All c/c++ language servers that I'm aware of are searching for compile_commands.json in the root of the source tree by default
  2. https://github.com/torvalds/linux/blob/master/.gitignore#L154

I'm ok with adding --output option. Could you add the option as a separate commit, please? (without adding defaults to the help string, without moving the output file by default)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants