Skip to content

Preserve a format of RPC command definitions#14008

Merged
laanwj merged 1 commit into
bitcoin:masterfrom
kostyantyn:preserve_format_of_rpc_command_definitions
Sep 10, 2018
Merged

Preserve a format of RPC command definitions#14008
laanwj merged 1 commit into
bitcoin:masterfrom
kostyantyn:preserve_format_of_rpc_command_definitions

Conversation

@kostyantyn

Copy link
Copy Markdown
Contributor

Currently, RPC commands are formatted in a way that it's easy to read
and that test/lint/check-rpc-mappings.py can parse it.

To void breaking test/lint/check-rpc-mappings.py script by running
clang-format, RPC command definitions should be disabled for clang-format.

Comment thread src/coins.h Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

for reviewers: I replaced tabs with spaces because if this block is moved, the test/lint/lint-whitespace.sh will fail.

Currently RPC commands are formatted in a way that it's easy to read
and that test/lint/check-rpc-mappings.py can parse it.

To void breaking test/lint/check-rpc-mappings.py script by running
clang-format, RPC command definitions should be disabled for clang-format.
@kostyantyn
kostyantyn force-pushed the preserve_format_of_rpc_command_definitions branch from f378b89 to d9d7957 Compare August 20, 2018 13:19
@DrahtBot

DrahtBot commented Aug 20, 2018

Copy link
Copy Markdown
Contributor
Note to reviewers: This pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@scravy

scravy commented Aug 21, 2018

Copy link
Copy Markdown
Contributor

ACK, looks good to me

@laanwj

laanwj commented Sep 10, 2018

Copy link
Copy Markdown
Member

yes, this makes sense, otherwise clang-format will mess up the tables
utACK d9d7957

@laanwj
laanwj merged commit d9d7957 into bitcoin:master Sep 10, 2018
laanwj added a commit that referenced this pull request Sep 10, 2018
d9d7957 Preserve a format of RPC command definitions (Kostiantyn Stepaniuk)

Pull request description:

  Currently, RPC commands are formatted in a way that it's easy to read
  and that `test/lint/check-rpc-mappings.py` can parse it.

  To void breaking `test/lint/check-rpc-mappings.py` script by running
  `clang-format`, RPC command definitions should be disabled for clang-format.

Tree-SHA512: e17d20ec0e6c4e19410198b55687ebbe6fa01654d214d4578cd16c00b872bf8b0b306594a45523685cd2e9d9280702e00471d9366e87954428e8bbeacd8cad60
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants