[clang-tools-extra] ae25e2f - [clang-tidy] Extract string header from redundant-string-cstr checker

2023-03-05 Thread Carlos Galvez via cfe-commits
Author: Mike Crowe Date: 2023-03-05T17:16:20Z New Revision: ae25e2f19decb94198301f0726ee613f945cc405 URL: https://github.com/llvm/llvm-project/commit/ae25e2f19decb94198301f0726ee613f945cc405 DIFF: https://github.com/llvm/llvm-project/commit/ae25e2f19decb94198301f0726ee613f945cc405.diff LOG: [c

[clang-tools-extra] 9fda832 - [clang-tidy] altera-id-dependent-backward-branch: refactor test

2023-03-05 Thread Carlos Galvez via cfe-commits
Author: Egor Suvorov Date: 2023-03-05T18:22:10Z New Revision: 9fda8322243168cbfcb78c4cf80afa838473a573 URL: https://github.com/llvm/llvm-project/commit/9fda8322243168cbfcb78c4cf80afa838473a573 DIFF: https://github.com/llvm/llvm-project/commit/9fda8322243168cbfcb78c4cf80afa838473a573.diff LOG:

[clang-tools-extra] efda335 - [clang-tidy] Make readability-container-data-pointer use header

2023-03-11 Thread Carlos Galvez via cfe-commits
Author: Mike Crowe Date: 2023-03-11T13:59:42Z New Revision: efda335bf5be11b5ad4f94f3319d859563542553 URL: https://github.com/llvm/llvm-project/commit/efda335bf5be11b5ad4f94f3319d859563542553 DIFF: https://github.com/llvm/llvm-project/commit/efda335bf5be11b5ad4f94f3319d859563542553.diff LOG: [c

[clang-tools-extra] 2469bd9 - [clang-tidy] Disable misc-definitions-in-headers for declarations in anonymous namespaces

2023-04-01 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-04-01T19:19:00Z New Revision: 2469bd98a77242606426f8a5a8a797054c932bf0 URL: https://github.com/llvm/llvm-project/commit/2469bd98a77242606426f8a5a8a797054c932bf0 DIFF: https://github.com/llvm/llvm-project/commit/2469bd98a77242606426f8a5a8a797054c932bf0.diff LOG:

[clang-tools-extra] 712dfec - [clang-tidy] Deprecate cert-dcl21-cpp

2023-04-04 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-04-05T06:33:40Z New Revision: 712dfec1781db8aa92782b98cac5517db548b7f9 URL: https://github.com/llvm/llvm-project/commit/712dfec1781db8aa92782b98cac5517db548b7f9 DIFF: https://github.com/llvm/llvm-project/commit/712dfec1781db8aa92782b98cac5517db548b7f9.diff LOG:

[clang-tools-extra] 132f1d3 - [clang-tidy] Support specifying checks as a list in the config file

2023-04-10 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-04-10T19:31:33Z New Revision: 132f1d31fd66c30baf9773bf8f37b36a40fa7039 URL: https://github.com/llvm/llvm-project/commit/132f1d31fd66c30baf9773bf8f37b36a40fa7039 DIFF: https://github.com/llvm/llvm-project/commit/132f1d31fd66c30baf9773bf8f37b36a40fa7039.diff LOG:

[clang-tools-extra] eedbe81 - [clang-tidy] Apply cppcoreguidelines-avoid-capture-default-when-capturin-this only to by-value capture default

2023-04-15 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-04-15T10:10:04Z New Revision: eedbe81b1c6dfbd85c2a46093e9e862335ad6516 URL: https://github.com/llvm/llvm-project/commit/eedbe81b1c6dfbd85c2a46093e9e862335ad6516 DIFF: https://github.com/llvm/llvm-project/commit/eedbe81b1c6dfbd85c2a46093e9e862335ad6516.diff LOG:

[clang-tools-extra] fa3de2e - [clang-tidy][NFC] Improve doc of cppcoreguidelines-misleading-capture-default-by-value

2023-04-15 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-04-15T12:07:18Z New Revision: fa3de2ed2964d18dd0b7457e77416fb4e688c8bd URL: https://github.com/llvm/llvm-project/commit/fa3de2ed2964d18dd0b7457e77416fb4e688c8bd DIFF: https://github.com/llvm/llvm-project/commit/fa3de2ed2964d18dd0b7457e77416fb4e688c8bd.diff LOG:

[clang-tools-extra] d69c362 - [clang-tidy][NFC] Fix format of header file comment in MisleadingCaptureDefaultByValueCheck.h

2023-04-15 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-04-15T14:49:20Z New Revision: d69c362dfdc09d9b866cbce007e6342c17af2b2a URL: https://github.com/llvm/llvm-project/commit/d69c362dfdc09d9b866cbce007e6342c17af2b2a DIFF: https://github.com/llvm/llvm-project/commit/d69c362dfdc09d9b866cbce007e6342c17af2b2a.diff LOG:

[clang-tools-extra] 4530c3b - [clang-tidy] Fix cppcoreguidelines-narrowing-conversions false positive

2023-04-15 Thread Carlos Galvez via cfe-commits
Author: Nathan James Date: 2023-04-15T15:07:44Z New Revision: 4530c3bc4897f6633577de07b61ceb1bf7e79f50 URL: https://github.com/llvm/llvm-project/commit/4530c3bc4897f6633577de07b61ceb1bf7e79f50 DIFF: https://github.com/llvm/llvm-project/commit/4530c3bc4897f6633577de07b61ceb1bf7e79f50.diff LOG:

[clang-tools-extra] b507bda - [clang-tidy] Add alias cppcoreguidelines-use-default-member-init

2023-04-16 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-04-17T06:09:59Z New Revision: b507bda4552347e00197032526c7ab4a80a853c2 URL: https://github.com/llvm/llvm-project/commit/b507bda4552347e00197032526c7ab4a80a853c2 DIFF: https://github.com/llvm/llvm-project/commit/b507bda4552347e00197032526c7ab4a80a853c2.diff LOG:

[clang-tools-extra] 2706919 - [clang-tidy][doc] Improve clang-tidy documentation

2023-02-09 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-02-09T12:19:36Z New Revision: 2706919f91977f3859ad625d4fb624fb04857e4f URL: https://github.com/llvm/llvm-project/commit/2706919f91977f3859ad625d4fb624fb04857e4f DIFF: https://github.com/llvm/llvm-project/commit/2706919f91977f3859ad625d4fb624fb04857e4f.diff LOG:

[clang-tools-extra] a543d84 - Fix handling of -> calls for modernize-use-emplace

2023-02-10 Thread Carlos Galvez via cfe-commits
Author: BigPeet Date: 2023-02-10T18:52:56Z New Revision: a543d840ee0ac53ef9df70c0e2a996e1a222064b URL: https://github.com/llvm/llvm-project/commit/a543d840ee0ac53ef9df70c0e2a996e1a222064b DIFF: https://github.com/llvm/llvm-project/commit/a543d840ee0ac53ef9df70c0e2a996e1a222064b.diff LOG: Fix h

[clang-tools-extra] 45ddc15 - [clang-tidy][NFC] Remove ModernizeTidyModule::getModuleOptions

2023-02-15 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-02-15T10:38:36Z New Revision: 45ddc157ca7c464ebbea627da0f682b1554e2390 URL: https://github.com/llvm/llvm-project/commit/45ddc157ca7c464ebbea627da0f682b1554e2390 DIFF: https://github.com/llvm/llvm-project/commit/45ddc157ca7c464ebbea627da0f682b1554e2390.diff LOG:

[clang-tools-extra] 5b37cdd - [clang-tidy] Introduce HeaderFileExtensions and ImplementationFileExtensions options

2023-02-19 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-02-19T13:44:11Z New Revision: 5b37cddff8e0140420ad776066529cf8f41d64d2 URL: https://github.com/llvm/llvm-project/commit/5b37cddff8e0140420ad776066529cf8f41d64d2 DIFF: https://github.com/llvm/llvm-project/commit/5b37cddff8e0140420ad776066529cf8f41d64d2.diff LOG:

[clang-tools-extra] 14fee3d - Fix clang-tools-extra docs build

2023-02-19 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-02-19T13:58:31Z New Revision: 14fee3d7d36927d3e8940cbcaab70fa4e99e2ec2 URL: https://github.com/llvm/llvm-project/commit/14fee3d7d36927d3e8940cbcaab70fa4e99e2ec2 DIFF: https://github.com/llvm/llvm-project/commit/14fee3d7d36927d3e8940cbcaab70fa4e99e2ec2.diff LOG:

[clang-tools-extra] dc43f71 - [clang-tidy] update docs for new hungarian identifier-naming types (unsigned char and void)

2023-02-20 Thread Carlos Galvez via cfe-commits
Author: Alexis Murzeau Date: 2023-02-21T07:37:42Z New Revision: dc43f7107e2916035b3503a10977182b03203046 URL: https://github.com/llvm/llvm-project/commit/dc43f7107e2916035b3503a10977182b03203046 DIFF: https://github.com/llvm/llvm-project/commit/dc43f7107e2916035b3503a10977182b03203046.diff LOG

[clang-tools-extra] 2928746 - [clang-tidy][doc] Remove unused variable

2023-02-23 Thread Carlos Galvez via cfe-commits
Author: Björn Svensson Date: 2023-02-23T20:07:50Z New Revision: 2928746ac3f1aabbecbe8da1525127443ebec2cf URL: https://github.com/llvm/llvm-project/commit/2928746ac3f1aabbecbe8da1525127443ebec2cf DIFF: https://github.com/llvm/llvm-project/commit/2928746ac3f1aabbecbe8da1525127443ebec2cf.diff LOG

[clang-tools-extra] 87447be - [clang-tidy] Fix readability-identifer-naming Hungarian CString options

2023-02-23 Thread Carlos Galvez via cfe-commits
Author: Alexis Murzeau Date: 2023-02-24T07:15:19Z New Revision: 87447bedac341f023569f1b444f9b3b62bba5aa6 URL: https://github.com/llvm/llvm-project/commit/87447bedac341f023569f1b444f9b3b62bba5aa6 DIFF: https://github.com/llvm/llvm-project/commit/87447bedac341f023569f1b444f9b3b62bba5aa6.diff LOG

[clang-tools-extra] 26f4762 - [clang-tidy] Support SystemHeaders in .clang-tidy

2023-05-07 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-05-07T16:36:30Z New Revision: 26f476286fbcb5cde51176abb2d3c6c0986bc410 URL: https://github.com/llvm/llvm-project/commit/26f476286fbcb5cde51176abb2d3c6c0986bc410 DIFF: https://github.com/llvm/llvm-project/commit/26f476286fbcb5cde51176abb2d3c6c0986bc410.diff LOG:

[clang-tools-extra] 0d6d8a8 - [clang-tidy] Fix bugprone-assert-side-effect to actually give warnings

2023-05-09 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2023-05-09T16:45:02Z New Revision: 0d6d8a853a6ea29b5f461a475a8f8eb7e7ba18e2 URL: https://github.com/llvm/llvm-project/commit/0d6d8a853a6ea29b5f461a475a8f8eb7e7ba18e2 DIFF: https://github.com/llvm/llvm-project/commit/0d6d8a853a6ea29b5f461a475a8f8eb7e7ba18e2.diff LOG:

[clang-tools-extra] 7fd8387 - [clang-tidy] Do not warn about redundant static in misc-use-anonymous-namespace

2022-12-08 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2022-12-08T11:40:50Z New Revision: 7fd8387917167d9cb4bab14a8548f0f78b0eaa79 URL: https://github.com/llvm/llvm-project/commit/7fd8387917167d9cb4bab14a8548f0f78b0eaa79 DIFF: https://github.com/llvm/llvm-project/commit/7fd8387917167d9cb4bab14a8548f0f78b0eaa79.diff LOG:

[clang-tools-extra] d3c3de6 - [clang-tidy][NFC] Simply match processing in misc-use-anonymous-namespace

2022-12-12 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2022-12-12T14:05:19Z New Revision: d3c3de63ce8416ab2dee7f784e54b00a2aa8ed85 URL: https://github.com/llvm/llvm-project/commit/d3c3de63ce8416ab2dee7f784e54b00a2aa8ed85 DIFF: https://github.com/llvm/llvm-project/commit/d3c3de63ce8416ab2dee7f784e54b00a2aa8ed85.diff LOG:

[clang-tools-extra] dabda23 - [clang-tidy][NFC] Fix compiler warning in GlobListTest.cpp

2022-12-12 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2022-12-12T14:49:09Z New Revision: dabda23f1991f7c4e5a840ee6cf1290e18fa2e88 URL: https://github.com/llvm/llvm-project/commit/dabda23f1991f7c4e5a840ee6cf1290e18fa2e88 DIFF: https://github.com/llvm/llvm-project/commit/dabda23f1991f7c4e5a840ee6cf1290e18fa2e88.diff LOG:

[clang-tools-extra] 35d9f87 - [clang-tidy] Fix a couple additional cases in misc-use-anonymous-namespace only

2022-12-12 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2022-12-12T15:26:14Z New Revision: 35d9f873e3f21846de1b8f07271feedbbe8518ed URL: https://github.com/llvm/llvm-project/commit/35d9f873e3f21846de1b8f07271feedbbe8518ed DIFF: https://github.com/llvm/llvm-project/commit/35d9f873e3f21846de1b8f07271feedbbe8518ed.diff LOG:

[clang-tools-extra] 66bf54a - [clang-tidy] Use Python3 for add_new_check.py and rename_check.py

2022-12-15 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2022-12-16T06:54:16Z New Revision: 66bf54abb54e6eafb08fcece87cf5d9d32fedcd3 URL: https://github.com/llvm/llvm-project/commit/66bf54abb54e6eafb08fcece87cf5d9d32fedcd3 DIFF: https://github.com/llvm/llvm-project/commit/66bf54abb54e6eafb08fcece87cf5d9d32fedcd3.diff LOG:

[clang-tools-extra] [clang-tidy][readability-identifier-naming] Resolve symlinks for checking style for file (PR #81985)

2024-02-16 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: This problem seems like it should be handled globally, not in a single specific check. IIUC any check that reads options from the .cñsng-tidy file is affected. What build system are you using, bazel? We use it and don't have any problems. If your build system creates a san

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-20 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > Why "ignore" instead of "filter"? Why can't we make "filter" use a full regex that supports negative expressions instead? https://github.com/llvm/llvm-project/pull/82416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Carlos Galvez via cfe-commits
@@ -97,6 +97,9 @@ The improvements are... Improvements to clang-tidy -- +- Improved :program:`run-clang-tidy.py` script. Added argument `-source-filter` + to filter out source files from the compilation database. carlosgalvezp wrote:

[clang-tools-extra] [clang-tidy] Do not warn on const variables in misc-use-internal-linkage (PR #97969)

2024-07-07 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp created https://github.com/llvm/llvm-project/pull/97969 Since in C++ they already have implicit internal linkage. Fixes #97947 >From 07bd62f97d203bbdb865cd4b1e14cef3ead70c80 Mon Sep 17 00:00:00 2001 From: Carlos Galvez Date: Sun, 7 Jul 2024 21:11:54 +0200 Subj

[clang-tools-extra] [clang-tidy] Do not warn on const variables in misc-use-internal-linkage (PR #97969)

2024-07-08 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Thanks! Btw is the check intended to be used in C code as well? (I do not see C tests for it). If not, then i can move the logic to the matcher to keep it a bit cleaner, and restrict the check to C++ code. The warning text mentions anonymous namespaces which would not be

[clang-tools-extra] [clang-tidy] Do not warn on const variables in misc-use-internal-linkage (PR #97969)

2024-07-08 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/97969 >From a1fec907b5d3920d5dda8761b6e173e153b7f281 Mon Sep 17 00:00:00 2001 From: Carlos Galvez Date: Sun, 7 Jul 2024 21:11:54 +0200 Subject: [PATCH] [clang-tidy] Do not warn on const variables in misc-use-int

[clang-tools-extra] [clang-tidy] Do not warn on const variables in misc-use-internal-linkage (PR #97969)

2024-07-08 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/97969 >From 07bd62f97d203bbdb865cd4b1e14cef3ead70c80 Mon Sep 17 00:00:00 2001 From: Carlos Galvez Date: Sun, 7 Jul 2024 21:11:54 +0200 Subject: [PATCH] [clang-tidy] Do not warn on const variables in misc-use-int

[clang-tools-extra] [clang-tidy] Do not warn on const variables in misc-use-internal-linkage (PR #97969)

2024-07-08 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > When check were created with C++ in mind, it could work also for C. Would be > good to support both, or mention in documentation that check is limited to > C++, and maybe if there will be requests in future, it could be expanded to C. Thanks for the input, in that case I

[clang-tools-extra] [clang-tidy] Suggest using reinterpret_cast in bugprone-casting-thro… (PR #106784)

2024-09-04 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/106784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] remove autosar link in documents (PR #107412)

2024-09-05 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. LGTM, thanks for the quick fix! https://github.com/llvm/llvm-project/pull/107412 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang-tools-extra] [clang-tidy] Create bugprone-bit-cast-pointers check (PR #108083)

2024-09-10 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp created https://github.com/llvm/llvm-project/pull/108083 To detect unsafe use of bit_cast that should be reinterpret_cast instead. Otherwise, bit_cast bypasses all checks done by compilers and linters. Fixes #106987 >From 6916d5ecdc327b2771fbbca226095bd99d394d

[clang-tools-extra] [clang-tidy] Create bugprone-bit-cast-pointers check (PR #108083)

2024-09-11 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Perhaps we can start with only pointer-to-pointer, yes. The original intention was to forbid that: https://www.open-std.org/jtc1/sc22/WG21/docs/papers/2016/p0476r0.html#det ```cpp https://github.com/llvm/llvm-project/pull/108083 __

[clang-tools-extra] [clang-tidy] Create bugprone-bit-cast-pointers check (PR #108083)

2024-09-11 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Perhaps we can start with pointer-to-pointer only, yes. Pointer-int conversions are still implementation-defined, but I guess it's less of a problem than UB. The original paper only checked that both inputs are not pointers: ```cpp !(is_pointer_v && is_pointer_v) &&

[clang-tools-extra] [clang-tidy] Create bugprone-bit-cast-pointers check (PR #108083)

2024-09-11 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/108083 >From c4d85703ee004522746df940f7b08cabaa0f4eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= Date: Tue, 10 Sep 2024 13:46:51 + Subject: [PATCH] [clang-tidy] Create bugprone-bit-cast-p

[clang] [clang] Turn -Wenum-constexpr-conversion into a hard error (PR #102364)

2024-08-09 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Thanks for the review and the info @thesamesam ! AFAICS the MPL issue is fixed on trunk, targeting release 1.86. About Pycuda, it's also stemming from MPL according to the build logs. So it seems to me the solution to these projects is too "just" bump to the newer MPL ver

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-11 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp requested changes to this pull request. There might be people who don't want uppercase suffix, so this will cause problems to them. This should be put into a configuration option instead. https://github.com/llvm/llvm-project/pull/102831 _

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-12 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > Is it possible to check whether is other check enable? It might be technically possible, but it's undesirable as it makes the whole infrastructure more complex and doubles the amount of testing. Checks should be independent of each other. https://github.com/llvm/llvm-pr

[clang] [clang] Turn -Wenum-constexpr-conversion into a hard error (PR #102364)

2024-08-12 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Since boost/mpl is at the core of issues and many projects depend directly or transitively on it, I think it might be good to wait until version 1.86 is released, so people can bump to a release version instead of trunk. It should be around the corner, [AFAICS](https://ww

[clang] [clang] Turn -Wenum-constexpr-conversion into a hard error (PR #102364)

2024-08-13 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > How soon after 1.86 landing do you plan to submit this? I was thinking as soon as it's released, I don't see a reason for waiting any longer. The sooner we merge the sooner we can collect feedback and re-adjust if needed. But of course it's up to the Clang owners to deci

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-14 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: A bit of nitpick, but would it make sense to have some consistency with `readability-identifier-naming`? Instead of `UseUpperCase`, I'm thinking of: `LiteralSuffixCase: LowerCase/UpperCase` Like I said, not a big deal, I'm just posting as suggestion in case you like it b

[clang] [clang] Turn -Wenum-constexpr-conversion into a hard error (PR #102364)

2024-08-14 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Boost/MPL 1.86.0 is now released! https://github.com/boostorg/mpl/releases/tag/boost-1.86.0 Thus I'm merging this patch, thanks for the reviews! I will keep an eye in case there's need for a revert. https://github.com/llvm/llvm-project/pull/102364 ___

[clang] [clang] Turn -Wenum-constexpr-conversion into a hard error (PR #102364)

2024-08-14 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/102364 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Allow renaming macro arguments (PR #87792)

2024-04-08 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > the user may not have the ability to change the definition of the macro to be > able to appease the check My understanding of this PR is that the user would only need to change what they pass into the macro, not the macro itself, or? E.g. ```cpp -MY_MACRO(foo) +MY_MACRO

[clang-tools-extra] [clang-tidy] Allow renaming macro arguments (PR #87792)

2024-04-09 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Nice! Should we add this example as a test case? https://github.com/llvm/llvm-project/pull/87792 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Allow renaming macro arguments (PR #87792)

2024-04-10 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Great! Nothing else from my side https://github.com/llvm/llvm-project/pull/87792 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] fix false positives for the functions with the same name as standard library functions in misc-include-cleaner (PR #94923)

2024-06-10 Thread Carlos Galvez via cfe-commits
@@ -15,3 +15,5 @@ std::string HelloString; // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: no header providing "std::string" is directly included [misc-include-cleaner] int FooBarResult = foobar(); // CHECK-MESSAGES: :[[@LINE-1]]:20: warning: no header providing "foobar" is direc

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() (PR #90043)

2024-06-10 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: To be clear and reiterate my previous comment: this check should NOT require users to use at(). That behavior should be opt-in. It should only warn about using operator[]. It's up to the users to figure out what the best replacement is. https://github.com/llvm/llvm-projec

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() (PR #90043)

2024-06-11 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > I don't think it is a good solution. Can you elaborate? As I wrote above, the C++ Core Guidelines do not require using `at()`. Therefore the check would be doing something different than what the guidelines require. The reason they don't require it is that there's multi

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

2024-06-12 Thread Carlos Galvez via cfe-commits
Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= Message-ID: In-Reply-To: carlosgalvezp wrote: > Rename the analysis from AvoidBoundsErrorsCheck to > PreferAtOverSubscriptOperatorCheck as r

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

2024-06-12 Thread Carlos Galvez via cfe-commits
Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= Message-ID: In-Reply-To: carlosgalvezp wrote: The check certainly doesn't need to fully implement the guideline right now, it can be done in

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

2024-06-12 Thread Carlos Galvez via cfe-commits
Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= Message-ID: In-Reply-To: carlosgalvezp wrote: >

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

2024-06-16 Thread Carlos Galvez via cfe-commits
Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= Message-ID: In-Reply-

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

2024-06-17 Thread Carlos Galvez via cfe-commits
Paul =?utf-8?q?Heidekr=C3=BCger?= , Paul =?utf-8?q?Heidekr=C3=BCger?= , Paul =?utf-8?q?Heidekr=C3=BCger?= , Paul =?utf-8?q?Heidekr=C3=BCger?= , Paul =?utf-8?q?Heidekr=C3=BCger?= , Paul =?utf-8?q?Heidekr=C3=BCger?= , Paul =?utf-8?q?Heidekr=C3=BCger?= , Paul =?utf-8?q?Heidekr=C3=BCger?= , Paul =?utf-

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

2024-06-18 Thread Carlos Galvez via cfe-commits
Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heide

[clang-tools-extra] [clang-tidy] Option to ignore anonymous namespaces in avoid-non-const-global-variables (PR #93827)

2024-05-30 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: I have a bit the feeling that users should use NOLINT* here instead of having a global option that is not seen in the code. Anonymous namespaces do not solve many of the remaining issues. A NOLINT in the code can grab the attention of a future developer and prompt a refact

[clang-tools-extra] [clang-tidy][cppcoreguidelines-missing-std-forward] Do not warn when the parameter is used in a `static_cast`. (PR #99477)

2024-07-18 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: This is not allowed by the relevant rule of the C++ Core Guidelines. We must be careful to implement exactly only what the rules say, nothing more. You can on course open a ticket to the C++ Core Guidelines asking them to change the rule text. IMHO this case seems too nic

[clang-tools-extra] [clang-tidy] Add modernize-use-cpp-style-comments check (PR #99713)

2024-07-19 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Good check idea! A couple of comments: - This is not really a "modernize"check. Both styles are equally valid and it's a matter of taste. Modernize is typically for checks that bump from one standard to a newer one. - Instead I think this check fits better in "readabili

[clang-tools-extra] [clang-tidy] Add modernize-use-cpp-style-comments check (PR #99713)

2024-07-20 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp requested changes to this pull request. Good check idea! A couple of comments: - This is not really a "modernize"check. Both styles are equally valid and it's a matter of taste. Modernize is typically for checks that bump from one standard to a newer one. - In

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() (PR #90043)

2024-04-25 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Please note: the guidelines do not require one to replace [] with at(), that's just one of the possible solutions. Actually at() is banned in many codebases where exceptions are banned. It would be good to make this fix-it opt-in, configurable via option, so the check on

[clang-tools-extra] [clang-tidy] Use upper case letters for bool conversion suffix (PR #104882)

2024-08-26 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: @Da-Viper I believe there's some merge conflicts to fix before being able to merge :) https://github.com/llvm/llvm-project/pull/104882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang-tools-extra] [clang-tidy] Use upper case letters for bool conversion suffix (PR #104882)

2024-08-27 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/104882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Use upper case letters for bool conversion suffix (PR #104882)

2024-08-27 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Thanks, merged! I've edited the commit message a bit to better reflect the content of the patch, as well as mark a related issue as fixed. https://github.com/llvm/llvm-project/pull/104882 ___ cfe-commits mailing list cfe-commits@l

[clang-tools-extra] [clang-tidy] Suggest using reinterpret_cast in bugprone-casting-thro… (PR #106784)

2024-08-30 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp created https://github.com/llvm/llvm-project/pull/106784 …ugh-void reinterpret_cast is the equivalent construct, and more clearly expresses intent. >From d3f0a650d7e3ad5bc8134e4c1fbb84ccb82d5105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= D

[clang-tools-extra] [clang-tidy] Add option to cppcoreguidelines-pro-type-reinterpret-cas… (PR #106922)

2024-09-01 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp created https://github.com/llvm/llvm-project/pull/106922 …t to allow casts to byte types These casts are safe according to the Standard, so add an option to allow them and not emit a warning. This helps silencing some noise and focusing on the unsafe casts. >

[clang-tools-extra] [NFC][clang-tidy] reword diagnostic note in definitions-in-headers (PR #106862)

2024-08-31 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: I suppose it doesn't hurt to mention it. Don't tests need to be updated too? https://github.com/llvm/llvm-project/pull/106862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang-tools-extra] [clang-tidy] Add option to cppcoreguidelines-pro-type-reinterpret-cas… (PR #106922)

2024-09-02 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: On another thought, the use case is quite niche and it's probably best for people to create their own `safe_reinterpret_cast` wrapper. Let's keep the check simple. https://github.com/llvm/llvm-project/pull/106922 ___ cfe-commits

[clang-tools-extra] [clang-tidy] Add option to cppcoreguidelines-pro-type-reinterpret-cas… (PR #106922)

2024-09-02 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/106922 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Suggest using reinterpret_cast in bugprone-casting-thro… (PR #106784)

2024-09-03 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/106784 >From d88a21655116da6ce8fed558ed9d7ea1ceb5e862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= Date: Fri, 30 Aug 2024 19:17:16 + Subject: [PATCH] [clang-tidy] Suggest using reinterpret_

[clang-tools-extra] [clang-tidy] Do not warn on const variables in misc-use-internal-linkage (PR #97969)

2024-07-09 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/97969 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] new check readability-mark-static (PR #90830)

2024-05-02 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: - I'm not sure this is so much a readability check, I'd put it in `misc`. The main problem that it solves is avoiding ODR violations. I'd call it `misc-prefer-internal-linkage`. - The auto-fix should be configurable to choose `static` or anonymous namespace. https://git

[clang-tools-extra] [clang-tidy] new check readability-mark-static (PR #90830)

2024-05-04 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > Should I implement auto-fix for this check? As a first step we can have it without auto-fix and add that as a second step once we figure out a good way to do it. https://github.com/llvm/llvm-project/pull/90830 ___ cfe-commits m

[clang-tools-extra] [clang-tidy] Add `modernize-use-uniform-initializer` check (PR #91124)

2024-05-05 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Regarding the problem of {} initialization and std::vector, I believe we could restrict this check to not warn on classes that have a constructor taking a `std:: initializer_list`. I believe AUTOSAR has an exception for that. https://github.com/llvm/llvm-project/pull/91124

[clang-tools-extra] [clang-tidy] Add `modernize-use-uniform-initializer` check (PR #91124)

2024-05-05 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Consider also that this check should probably not apply to variables of type `auto`, see AUTOSAR rule A8-5-3. https://github.com/llvm/llvm-project/pull/91124 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[clang-tools-extra] [clang-tidy] Add `bugprone-virtual-arithmetic` check (PR #91951)

2024-05-13 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: I'm not very happy about the name, there's no such thing as "virtual arithmetic". What about "bugprone-pointer-arithmetic-polymorphic-object"? I rather have a long descriptive name than a short ambiguous name. https://github.com/llvm/llvm-project/pull/91951 __

[clang-tools-extra] [clang-tidy] Add `bugprone-virtual-arithmetic` check (PR #91951)

2024-05-13 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Otherwise since this is a problem also on non-polymorphic objects, maybe "bugprone-pointer-arithmetic-base-class"? https://github.com/llvm/llvm-project/pull/91951 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[clang-tools-extra] [clang-tidy] Add `bugprone-virtual-arithmetic` check (PR #91951)

2024-05-13 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: I realize it's probably very hard (if not impossible) to detect whether a class is a base class unless it has virtual functions. That's why the corresponding AUTOSAR rule bans only non-final classes. But that is a bit overkill and leads to some pain. https://github.com

[clang-tools-extra] [clang-tidy] Rename out-of-line function definitions (PR #91954)

2024-05-16 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: A bit late for the review but would have been nice to name the test "out-of-line" instead of "ool", so it's easier to understand what it's about. https://github.com/llvm/llvm-project/pull/91954 ___ cfe-commits mailing list cfe-com

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

2024-08-03 Thread Carlos Galvez via cfe-commits
Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heide

[clang] [clang] Turn -Wenum-constexpr-conversion into a hard error (PR #102364)

2024-08-07 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp created https://github.com/llvm/llvm-project/pull/102364 The warning has been active for a few releases now, first only in user code, later in system headers, and finally as an error by default. Therefore, we believe it is now time to transition into a hard err

[clang] [clang] Turn -Wenum-constexpr-conversion into a hard error (PR #102364)

2024-08-08 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/102364 >From 88f1a873d6c6ef06ad9a1847d098d65845cf1469 Mon Sep 17 00:00:00 2001 From: Carlos Galvez Date: Tue, 6 Aug 2024 22:50:10 +0200 Subject: [PATCH 1/2] [clang] Turn -Wenum-constexpr-conversion into a hard e

[clang] [clang] Turn -Wenum-constexpr-conversion into a hard error (PR #102364)

2024-08-08 Thread Carlos Galvez via cfe-commits
@@ -49,6 +49,9 @@ C++ Specific Potentially Breaking Changes few users and can be written as ``__is_same(__remove_cv(T), decltype(nullptr))``, which GCC supports as well. +- The warning `-Wenum-constexpr-conversion` has been upgraded into a hard + compiler error that cann

[clang] [clang] Turn -Wenum-constexpr-conversion into a hard error (PR #102364)

2024-08-08 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: By the way, the latest revision of the GDB patch (improved after the first round of review) can be found here: https://sourceware.org/pipermail/gdb-patches/2024-June/210252.html https://github.com/llvm/llvm-project/pull/102364 __

[clang-tools-extra] eb3f20e - [clang-tidy] Remove gsl::at suggestion from cppcoreguidelines-pro-bounds-constant-array-index

2022-01-23 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2022-01-23T15:52:42Z New Revision: eb3f20e8fa4b76e0103f15623a2fc3b27fb03f85 URL: https://github.com/llvm/llvm-project/commit/eb3f20e8fa4b76e0103f15623a2fc3b27fb03f85 DIFF: https://github.com/llvm/llvm-project/commit/eb3f20e8fa4b76e0103f15623a2fc3b27fb03f85.diff LOG:

[clang-tools-extra] 670de10 - Disable clang-tidy warnings from system macros

2022-01-06 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2022-01-06T20:27:28Z New Revision: 670de10f9deaa83f4d1db6e793c74cbfd18c65c1 URL: https://github.com/llvm/llvm-project/commit/670de10f9deaa83f4d1db6e793c74cbfd18c65c1 DIFF: https://github.com/llvm/llvm-project/commit/670de10f9deaa83f4d1db6e793c74cbfd18c65c1.diff LOG:

[clang-tools-extra] c4db521 - [clang] Introduce support for disabling warnings in system macros

2022-01-12 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2022-01-12T08:18:19Z New Revision: c4db521cea32fcfb714d1a622e0efce69a564a28 URL: https://github.com/llvm/llvm-project/commit/c4db521cea32fcfb714d1a622e0efce69a564a28 DIFF: https://github.com/llvm/llvm-project/commit/c4db521cea32fcfb714d1a622e0efce69a564a28.diff LOG:

[clang-tools-extra] f071110 - [clang-tidy] Fix false positive in cppcoreguidelines-virtual-class-destructor

2021-10-16 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2021-10-16T08:27:08Z New Revision: f0711106dc6c14dcaf06437a0467043e983bf9dc URL: https://github.com/llvm/llvm-project/commit/f0711106dc6c14dcaf06437a0467043e983bf9dc DIFF: https://github.com/llvm/llvm-project/commit/f0711106dc6c14dcaf06437a0467043e983bf9dc.diff LOG:

[clang-tools-extra] bf6b0d1 - [clang-tidy] Support globbing in NOLINT* expressions

2021-10-19 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2021-10-19T16:30:51Z New Revision: bf6b0d16747f6d1107de1a51d42ae3b0bf904537 URL: https://github.com/llvm/llvm-project/commit/bf6b0d16747f6d1107de1a51d42ae3b0bf904537 DIFF: https://github.com/llvm/llvm-project/commit/bf6b0d16747f6d1107de1a51d42ae3b0bf904537.diff LOG:

[clang-tools-extra] 7812cb7 - Use reference type in for loop

2021-10-19 Thread Carlos Galvez via cfe-commits
Author: Carlos Galvez Date: 2021-10-19T16:37:56Z New Revision: 7812cb72a321c392a3b91b45b4780a0987818a36 URL: https://github.com/llvm/llvm-project/commit/7812cb72a321c392a3b91b45b4780a0987818a36 DIFF: https://github.com/llvm/llvm-project/commit/7812cb72a321c392a3b91b45b4780a0987818a36.diff LOG:

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-16 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > An inconsistency is that readability-uppercase-literal-suffix only handles l > and u by default whereas the check here also handles f Then that check should be updated to handle the F suffix as well. It doesn't make sense to have different style for different suffixes:

[clang-tools-extra] [clang-tidy] Consider `readability-uppercase-literal-suffix` when dealing with `readability-implicit-bool-conversion`. (PR #104694)

2024-08-18 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp requested changes to this pull request. We have explicitly said in the other PR that we do *not* want checks to depend on each other. Checks must remain independent of each other. https://github.com/llvm/llvm-project/pull/104694 _

[clang-tools-extra] [clang-tidy] Consider `readability-uppercase-literal-suffix` when dealing with `readability-implicit-bool-conversion`. (PR #104694)

2024-08-18 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp edited https://github.com/llvm/llvm-project/pull/104694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Consider `readability-uppercase-literal-suffix` when dealing with `readability-implicit-bool-conversion`. (PR #104694)

2024-08-18 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp edited https://github.com/llvm/llvm-project/pull/104694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Consider `readability-uppercase-literal-suffix` when dealing with `readability-implicit-bool-conversion`. (PR #104694)

2024-08-18 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: No problem, thanks for the initiative! We should probably clarify this in the developer documentation. https://github.com/llvm/llvm-project/pull/104694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-18 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > An inconsistency is that readability-uppercase-literal-suffix only handles l > and u by default whereas the check here also handles f Actually `readability-uppercase-literal-suffix` does handle `f` as well so I'm not sure I understand this comment. https://github.com/ll

<    1   2   3   4   5   6   >