[llvm-branch-commits] [clang-tools-extra] [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (PR #134870)

2025-04-12 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: ### Merge activity * **Apr 12, 11:58 PM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/134870). https://github.com/llvm/llvm-project/pull/134870 ___

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (PR #134870)

2025-04-10 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/134870 Add `AllowedTypes` options to support custom defined char like type. treat `unsigned char` and `signed char` as char like type by default. The allowed types only effect when the var decl or explicit cast to t

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] `matchesAnyListedTypeName` support non canonical types (PR #134869)

2025-04-10 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 ready_for_review https://github.com/llvm/llvm-project/pull/134869 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (PR #134870)

2025-04-09 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/134870 >From 9d29fd3792be9ae10eb58cecaaba313a0eaf85f1 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 8 Apr 2025 15:27:54 + Subject: [PATCH 1/2] [clang-tidy] treat unsigned char and signed char as char

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] `matchesAnyListedTypeName` support non canonical types (PR #134869)

2025-04-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/134869 None >From 164409da8177cc5343a053a610095a6da335a126 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 8 Apr 2025 15:26:44 + Subject: [PATCH] [clang-tidy] `matchesAnyListedTypeName` support non cano

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (PR #134870)

2025-04-08 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/134870?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] `matchesAnyListedTypeName` support non canonical types (PR #134869)

2025-04-08 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/134869?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (PR #134870)

2025-04-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/134870 >From 9d29fd3792be9ae10eb58cecaaba313a0eaf85f1 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 8 Apr 2025 15:27:54 + Subject: [PATCH] [clang-tidy] treat unsigned char and signed char as char type

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (PR #134870)

2025-04-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 ready_for_review https://github.com/llvm/llvm-project/pull/134870 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (PR #134870)

2025-04-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/134870 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [YAML] fix output incorrect format for block scalar string (PR #131694)

2025-03-23 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: ping @thurstond https://github.com/llvm/llvm-project/pull/131694 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [YAML] fix output incorrect format for block scalar string (PR #131694)

2025-03-18 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/131694 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [AstMatcher]`templateArgumentCountIs` support `FunctionDecl` (PR #130416)

2025-03-11 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: dump-ast-matchers has some bug. I will fix it after https://github.com/llvm/llvm-project/pull/130726 merging https://github.com/llvm/llvm-project/pull/130416 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org ht

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] support to detect conversion in `make_optional` for `bugprone-optional-value-conversion` (PR #130417)

2025-03-10 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/130417 >From 1706e3fc5819602febf9dfa554e98eb1e1fea365 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sat, 8 Mar 2025 21:50:19 +0800 Subject: [PATCH] [clang-tidy] support to detect conversion in `make_optional`

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] support pointee mutation check in misc-const-correctness (PR #130494)

2025-03-09 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/130494 None >From 4c1a7915fca1933773d3e9f3cf0b8c07916f1dcf Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sun, 9 Mar 2025 15:43:37 + Subject: [PATCH] [clang-tidy] support pointee mutation check in misc-con

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] support pointee mutation check in misc-const-correctness (PR #130494)

2025-03-09 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 ready_for_review https://github.com/llvm/llvm-project/pull/130494 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] support pointee mutation check in misc-const-correctness (PR #130494)

2025-03-09 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/130494?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] support to detect conversion in `make_optional` for `bugprone-optional-value-conversion` (PR #130417)

2025-03-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/130417 >From 1747df81cf0bf83838777a71ec577b083a66d85d Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sat, 8 Mar 2025 21:50:19 +0800 Subject: [PATCH] [clang-tidy] support to detect conversion in `make_optional`

[llvm-branch-commits] [clang] [AstMatcher]`templateArgumentCountIs` support `FunctionDecl` (PR #130416)

2025-03-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 ready_for_review https://github.com/llvm/llvm-project/pull/130416 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] support to detect conversion in `make_optional` for `bugprone-optional-value-conversion` (PR #130417)

2025-03-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 ready_for_review https://github.com/llvm/llvm-project/pull/130417 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] support to detect conversion in `make_optional` for `bugprone-optional-value-conversion` (PR #130417)

2025-03-08 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/130417?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] [clang] [AstMatcher]`templateArgumentCountIs` support `FunctionDecl` (PR #130416)

2025-03-08 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/130416?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] support to detect conversion in `make_optional` for `bugprone-optional-value-conversion` (PR #130417)

2025-03-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/130417 Fixes: #119554 >From 51d2bd7e75426ee5c34bda94ff212d82da3354b7 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sat, 8 Mar 2025 21:50:19 +0800 Subject: [PATCH] [clang-tidy] support to detect conversion in `

[llvm-branch-commits] [clang] [AstMatcher]`templateArgumentCountIs` support `FunctionDecl` (PR #130416)

2025-03-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/130416 `hasTemplateArgument` and `templateArgumentCountIs` are always used together. It is more convenient to make then support `FunctionDecl`. >From 97ea31513d00893e797ff3c97ac441e54a11bbb8 Mon Sep 17 00:00:00 20

[llvm-branch-commits] [clang-tools-extra] [clang-tidy][NFC] refactor modernize-raw-string-literal fix hint (PR #122909)

2025-01-17 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: ### Merge activity * **Jan 17, 8:39 AM EST**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/122909). https://github.com/llvm/llvm-project/pull/122909

[llvm-branch-commits] [clang-tools-extra] [clang-tidy][NFC] refactor modernize-raw-string-literal fix hint (PR #122909)

2025-01-14 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/122909 >From 9e5c5eb96a65d9bdec47566c9bf5ae95c57107f0 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 14 Jan 2025 22:24:46 +0800 Subject: [PATCH] [clang-tidy][NFC] refactor modernize-raw-string-literal fix

[llvm-branch-commits] [clang-tools-extra] [clang-tidy][NFC] refactor modernize-raw-string-literal fix hint (PR #122909)

2025-01-14 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/122909 >From 9e5c5eb96a65d9bdec47566c9bf5ae95c57107f0 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 14 Jan 2025 22:24:46 +0800 Subject: [PATCH] [clang-tidy][NFC] refactor modernize-raw-string-literal fix

[llvm-branch-commits] [clang-tools-extra] [clang-tidy][NFC] refactor modernize-raw-string-literal fix hint (PR #122909)

2025-01-14 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 ready_for_review https://github.com/llvm/llvm-project/pull/122909 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy][NFC] refactor modernize-raw-string-literal fix hint (PR #122909)

2025-01-14 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/122909?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] [clang-tools-extra] [clang-tidy][NFC] refactor modernize-raw-string-literal fix hint (PR #122909)

2025-01-14 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/122909 None >From c413bd7b5f8d8524335ad50a71bc986d8bdca2a8 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 14 Jan 2025 22:24:46 +0800 Subject: [PATCH] [clang-tidy][NFC] refactor modernize-raw-string-literal

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] fix wrong float to float conversion check when floating point type is not standard type (PR #122637)

2025-01-12 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/122637 >From ecfe551759c7b741e6cabe07daf60257c3c9eaeb Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sun, 12 Jan 2025 21:47:02 +0800 Subject: [PATCH] [clang-tidy] fix wrong float to float conversion check when

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] fix wrong float to float conversion check when floating point type is not standard type (PR #122637)

2025-01-12 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/122637 >From d138b3de06de410f063319ca08e33087e1bdeeb8 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sun, 12 Jan 2025 21:47:02 +0800 Subject: [PATCH] [clang-tidy] fix wrong float to float conversion check when

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] fix wrong float to float conversion check when floating point type is not standard type (PR #122637)

2025-01-12 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 ready_for_review https://github.com/llvm/llvm-project/pull/122637 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] fix wrong float to float conversion check when floating point type is not standard type (PR #122637)

2025-01-12 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/122637?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] fix wrong float to float conversion check when floating point type is not standard type (PR #122637)

2025-01-12 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/122637 compare type kind is the wrong way to compare floating point type compatibility. more generic compatibility check is needed. >From 31b602beadf57764e9138276cfd8b0a187ba9fb7 Mon Sep 17 00:00:00 2001 From: Cong

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] use correct template type in ``std::min`` and ``std::max`` when operand is integer literal for readability-use-std-min-max (PR #122296)

2025-01-09 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/122296 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] use correct template type in ``std::min`` and ``std::max`` when operand is integer literal for readability-use-std-min-max (PR #122296)

2025-01-09 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 ready_for_review https://github.com/llvm/llvm-project/pull/122296 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] use correct template type in ``std::min`` and ``std::max`` when operand is integer literal for readability-use-std-min-max (PR #122296)

2025-01-09 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/122296 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] use correct template type in ``std::min`` and ``std::max`` when operand is integer literal for readability-use-std-min-max (PR #122296)

2025-01-09 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/122296?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] use correct template type in ``std::min`` and ``std::max`` when operand is integer literal for readability-use-std-min-max (PR #122296)

2025-01-09 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/122296 None >From 7958e403f1a7bbba383f8a4ed5c1dbdbadba18d4 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Thu, 9 Jan 2025 23:15:18 +0800 Subject: [PATCH] [clang-tidy] use correct template type in ``std::min`` a

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] fix false positive in lambda expr for return-const-ref-from-parameter (PR #118990)

2024-12-06 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/118990 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] fix false positive in lambda expr for return-const-ref-from-parameter (PR #118990)

2024-12-06 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/118990 None >From 2fb6e21f63a16b5bde5401a4e1cb68af1405a258 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Fri, 6 Dec 2024 23:45:56 +0800 Subject: [PATCH] [clang-tidy] fix false positive in lambda expr for retu