ci: Run iwyu on all src files #27571

pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2305-ci-iwyu- changing 2 files +9 −44
  1. maflcko commented at 10:57 am on May 4, 2023: member
    This makes it easier to look at the CI output of a file without having to manually add it first to the list.
  2. DrahtBot commented at 10:57 am on May 4, 2023: contributor

    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 hebasto
    Concept ACK fanquake, jonatack

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

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #27636 (kernel: Remove interface_ui, util/system from kernel library by TheCharlatan)
    • #27576 (kernel: Remove args, chainparams, chainparamsbase from kernel library by TheCharlatan)
    • #27425 (test: move remaining rand code from util/setup_common to util/random by jonatack)
    • #27385 (net, refactor: extract Network and BIP155Network logic to node/network by jonatack)

    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.

  3. DrahtBot added the label Tests on May 4, 2023
  4. DrahtBot added the label CI failed on May 4, 2023
  5. maflcko force-pushed on May 4, 2023
  6. maflcko marked this as a draft on May 4, 2023
  7. fanquake commented at 2:31 pm on May 9, 2023: member
    Is this dependant on #27573
  8. maflcko commented at 2:55 pm on May 9, 2023: member
    Yes, I can’t figure out how to fight bash -c, so I removed it there
  9. fanquake commented at 3:25 pm on May 9, 2023: member
    Concept ACK on removing the continual manual updating of this list
  10. maflcko marked this as ready for review on May 10, 2023
  11. maflcko force-pushed on May 10, 2023
  12. maflcko force-pushed on May 10, 2023
  13. maflcko force-pushed on May 10, 2023
  14. fanquake commented at 11:41 am on May 10, 2023: member

    (qt/qrc_bitcoin_locale.cpp has correct #includes/fwd-decls)

    Looks like it’s mostly working, except GUI stuff is still being dragged in

  15. hebasto commented at 12:31 pm on May 10, 2023: member

    (qt/qrc_bitcoin_locale.cpp has correct #includes/fwd-decls)

    Looks like it’s mostly working, except GUI stuff is still being dragged in

    And qt/qrc_bitcoin.cpp as well.

  16. maflcko force-pushed on May 10, 2023
  17. maflcko force-pushed on May 10, 2023
  18. maflcko marked this as a draft on May 10, 2023
  19. maflcko added the label Up for grabs on May 10, 2023
  20. jonatack commented at 10:02 am on May 11, 2023: contributor
    Concept ACK. I’ve been adding sources files to this list while working on each pull.
  21. DrahtBot added the label Needs rebase on May 11, 2023
  22. maflcko force-pushed on May 12, 2023
  23. DrahtBot removed the label Needs rebase on May 12, 2023
  24. ci: Run iwyu on all src files
    This makes it easier to look at the CI output of a file without having
    to manually add it first.
    ddddf4957b
  25. maflcko force-pushed on May 13, 2023
  26. maflcko removed the label Up for grabs on May 13, 2023
  27. maflcko marked this as ready for review on May 13, 2023
  28. DrahtBot removed the label CI failed on May 13, 2023
  29. maflcko commented at 3:02 pm on May 15, 2023: member
    Should be ready for review
  30. in ci/test/06_script_b.sh:49 in ddddf4957b
    41@@ -42,51 +42,16 @@ if [ "${RUN_TIDY}" = "true" ]; then
    42   set -eo pipefail
    43   cd "${BASE_BUILD_DIR}/bitcoin-$HOST/src/"
    44   ( run-clang-tidy-16 -quiet "${MAKEJOBS}" ) | grep -C5 "error"
    45+  # Filter out files by regex here, because regex may not be
    46+  # accepted in src/.bear-tidy-config
    47+  # Filter out:
    48+  # * qt qrc and moc generated files
    49+  # * walletutil (temporarily)
    


    hebasto commented at 2:11 pm on May 16, 2023:
    Mind elaborating about skipping walletutil?

    maflcko commented at 5:41 pm on May 16, 2023:

    because it crashes. See:

     0# python3 "/include-what-you-use/iwyu_tool.py" -p . ./src/wallet/walletutil.cpp -j 9 -- -Xiwyu --cxx17ns -Xiwyu --mapping_file="$PWD/contrib/devtools/iwyu/bitcoin.core.imp"  
     1In file included from wallet/walletutil.cpp:5:
     2In file included from ./wallet/walletutil.h:8:
     3In file included from ./script/descriptor.h:8:
     4In file included from ./outputtype.h:9:
     5In file included from ./script/signingprovider.h:10:
     6In file included from ./key.h:10:
     7In file included from ./pubkey.h:10:
     8In file included from ./hash.h:10:
     9In file included from ./crypto/common.h:12:
    10In file included from /usr/lib64/clang/16/include/stdint.h:52:
    11In file included from /usr/include/stdint.h:26:
    12In file included from /usr/include/bits/libc-header-start.h:33:
    13/usr/include/features.h:413:4: warning: _FORTIFY_SOURCE requires compiling with optimization (-O) [-W#warnings]
    14#  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    15   ^
    16In file included from wallet/walletutil.cpp:5:
    17In file included from ./wallet/walletutil.h:8:
    18In file included from ./script/descriptor.h:8:
    19In file included from ./outputtype.h:9:
    20In file included from ./script/signingprovider.h:10:
    21In file included from ./key.h:10:
    22In file included from ./pubkey.h:10:
    23In file included from ./hash.h:14:
    24In file included from ./serialize.h:17:
    25In file included from /usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/memory:78:
    26/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/unique_ptr.h:97:16: error: invalid application of 'sizeof' to an incomplete type 'wallet::DescriptorScriptPubKeyMan'
    27        static_assert(sizeof(_Tp)>0,
    28                      ^~~~~~~~~~~
    29/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/unique_ptr.h:404:4: note: in instantiation of member function 'std::default_delete<wallet::DescriptorScriptPubKeyMan>::operator()' requested here
    30          get_deleter()(std::move(__ptr));
    31          ^
    32/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/stl_construct.h:151:19: note: in instantiation of member function 'std::unique_ptr<wallet::DescriptorScriptPubKeyMan>::~unique_ptr' requested here
    33      __pointer->~_Tp();
    34                  ^
    35/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/stl_construct.h:196:2: note: in instantiation of function template specialization 'std::_Destroy_aux<false>::__destroy<std::unique_ptr<wallet::DescriptorScriptPubKeyMan> *>' requested here
    36        __destroy(__first, __last);
    37        ^
    38/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/alloc_traits.h:947:7: note: in instantiation of function template specialization 'std::_Destroy<std::unique_ptr<wallet::DescriptorScriptPubKeyMan> *>' requested here
    39      _Destroy(__first, __last);
    40      ^
    41/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/stl_vector.h:732:7: note: in instantiation of function template specialization 'std::_Destroy<std::unique_ptr<wallet::DescriptorScriptPubKeyMan> *, std::unique_ptr<wallet::DescriptorScriptPubKeyMan>>' requested here
    42        std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
    43             ^
    44./wallet/walletutil.h:122:8: note: in instantiation of member function 'std::vector<std::unique_ptr<wallet::DescriptorScriptPubKeyMan>>::~vector' requested here
    45struct MigrationData
    46       ^
    47./wallet/walletutil.h:119:7: note: forward declaration of 'wallet::DescriptorScriptPubKeyMan'
    48class DescriptorScriptPubKeyMan;
    49      ^
    
  31. hebasto approved
  32. hebasto commented at 6:04 pm on May 16, 2023: member
    ACK ddddf4957b02c83ed9b6c46b35d8ae1e137889d2
  33. fanquake merged this on May 17, 2023
  34. fanquake closed this on May 17, 2023

  35. maflcko deleted the branch on May 17, 2023
  36. sidhujag referenced this in commit 352ed46608 on May 17, 2023
  37. fanquake referenced this in commit dfe658009d on May 29, 2023
  38. bitcoin locked this on May 16, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-07-08 19:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me