[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-14 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/148337 >From 8343c946e874ee27e71781ac1bd10fb680b08fbf Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 11 Jul 2025 18:23:10 -0700 Subject: [PATCH 1/2] [clang] Add -Wuninitialized-const-pointer This option is s

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-14 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/148337 >From 8343c946e874ee27e71781ac1bd10fb680b08fbf Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 11 Jul 2025 18:23:10 -0700 Subject: [PATCH 1/2] [clang] Add -Wuninitialized-const-pointer This option is s

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-12 Thread Richard Smith via cfe-commits
https://github.com/zygoloid approved this pull request. https://github.com/llvm/llvm-project/pull/148337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-11 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/148337 >From 8343c946e874ee27e71781ac1bd10fb680b08fbf Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 11 Jul 2025 18:23:10 -0700 Subject: [PATCH 1/2] [clang] Add -Wuninitialized-const-pointer This option is s

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-11 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp,h,c -- clang/test/SemaCXX/warn-uninitialized-const-point

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-11 Thread Igor Kudrin via cfe-commits
igorkudrin wrote: This fixes an additional case reported by @rnapier in #37460 https://github.com/llvm/llvm-project/pull/148337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Igor Kudrin (igorkudrin) Changes This option is similar to -Wuninitialized-const-reference, but diagnoses the passing of an uninitialized value via a const pointer, like in the following code: ``` void foo(const int *); void test() { in

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Igor Kudrin (igorkudrin) Changes This option is similar to -Wuninitialized-const-reference, but diagnoses the passing of an uninitialized value via a const pointer, like in the following code: ``` void foo(const int *); void test

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-11 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/148337 This option is similar to -Wuninitialized-const-reference, but diagnoses the passing of an uninitialized value via a const pointer, like in the following code: ``` void foo(const int *); void test() { int