Skip to content

Conversation

@sedited
Copy link
Contributor

@sedited sedited commented Mar 5, 2023

Adds a paragraph to the clang-tidy section explaining how to de-noise its output. By default clang-tidy will print errors arrising from included headers in leveldb and other dependencies. By passing --enable-suppress-external-warnings flag to configure, errors arising from external dependencies are suppressed. Additional errors arrising from internal dependencies such as leveldb are suppressed by passing the src/.bear-tidy-config configuration file to bear. This file includes exclusionary rules for leveldb.

@RandyMcMillan
Copy link
Contributor

ConceptACK

@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 6, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK MarcoFalke
Concept ACK RandyMcMillan
Stale ACK fanquake

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Copy link
Member

@fanquake fanquake left a comment

Choose a reason for hiding this comment

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

ACK 6a29f34 - seems fine.

from externally included headers. Additionally a default bear configuration
file can be found in `src/.bear-tidy-config`. It contains rules excluding
in-tree dependency headers and may be passed to bear with `--config
src/.bear-tidy-config`.
Copy link
Member

Choose a reason for hiding this comment

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

Why not just modify the above command to include this? (And then mention that --config can be omitted, if someone really wants to)

I'd suspect that you run into a wall of errors anyway without --config

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't mind either way. I added a separate explainer, because it felt a bit too information-dense otherwise. Also, I only have bear version 3 to test. Does bear version 2 also accept --config?

Copy link
Member

Choose a reason for hiding this comment

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

Seems fine to drop version 2

@sedited sedited force-pushed the dev-notes-clang-tidy branch from 6a29f34 to d880c78 Compare March 10, 2023 15:16
@sedited
Copy link
Contributor Author

sedited commented Mar 10, 2023

Updated 6a29f34 -> d880c78 (dev-notes-clang-tidy_0 -> dev-notes-clang-tidy_1, compare) to address @MarcoFalke's feedback.

@sedited sedited force-pushed the dev-notes-clang-tidy branch 3 times, most recently from 8d4e0e8 to 3d524c9 Compare March 10, 2023 15:30
@sedited
Copy link
Contributor Author

sedited commented Mar 10, 2023

Updated 6a29f34 -> 3d524c9 (dev-notes-clang-tidy_1 -> dev-notes-clang-tidy_2, compare) to fix typos and trailing newline.

@sedited sedited force-pushed the dev-notes-clang-tidy branch from 3d524c9 to 54c4d03 Compare March 10, 2023 15:49
@sedited
Copy link
Contributor Author

sedited commented Mar 10, 2023

Updated 3d524c9 -> 54c4d03 (dev-notes-clang-tidy_2 -> dev-notes-clang-tidy_3, compare) to get rid of the old documentation paragraph @fanquake .

@maflcko
Copy link
Member

maflcko commented Mar 10, 2023

utACK 54c4d03

@DrahtBot DrahtBot requested a review from fanquake March 10, 2023 16:24
@fanquake fanquake merged commit c7f1d95 into bitcoin:master Mar 10, 2023
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Mar 12, 2023
…e achieved

54c4d03 doc: Show how less noisy clang-tidy output can be achieved (TheCharlatan)

Pull request description:

  Adds a paragraph to the clang-tidy section explaining how to de-noise its output. By default clang-tidy will print errors arrising from included headers in leveldb and other dependencies. By passing `--enable-suppress-external-warnings` flag to configure, errors arising from external dependencies are suppressed. Additional errors arrising from internal dependencies such as leveldb are suppressed by passing the `src/.bear-tidy-config` configuration file to bear. This file includes exclusionary rules for leveldb.

ACKs for top commit:
  MarcoFalke:
    utACK 54c4d03

Tree-SHA512: c3dd8fb0600157582a38365a587e02e1d249fb246d6b8b4949a800fd05d3473dee49e2a4a556c60e51d6508feff810024e55fe09f5a0875f560fde30f3b6817c
@bitcoin bitcoin locked and limited conversation to collaborators Mar 9, 2024
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.

5 participants