[clang] [clang][x86] Support -masm=intel in cpuid.h (PR #127331)

2025-02-15 Thread via cfe-commits
https://github.com/Alcaro updated https://github.com/llvm/llvm-project/pull/127331 >From 90e3f502e582f44cd19e1b8b71d218330b13c9e4 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sat, 15 Feb 2025 16:05:40 +0100 Subject: [PATCH 1/3] [clang][x86] Support -masm=intel in cpuid.h --- clang/lib/Headers/

[clang] [flang] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-15 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/127268 >From a705acfd439e6310648b0ed1ad612eaffc408ad5 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 14 Feb 2025 17:46:25 + Subject: [PATCH 1/5] [CMake][Release] Statically link clang with stage1 runtimes

[clang] 77b309d - [AST] Avoid repeated hash lookups (NFC) (#127299)

2025-02-15 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-02-15T01:35:01-08:00 New Revision: 77b309d0721b70f7e2e646f50317478fa76b1ba5 URL: https://github.com/llvm/llvm-project/commit/77b309d0721b70f7e2e646f50317478fa76b1ba5 DIFF: https://github.com/llvm/llvm-project/commit/77b309d0721b70f7e2e646f50317478fa76b1ba5.diff L

[clang] 8bdc312 - [Index] Avoid repeated hash lookups (NFC) (#127300)

2025-02-15 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-02-15T01:35:33-08:00 New Revision: 8bdc312272543e8fb21868e57a6c1592668b49a4 URL: https://github.com/llvm/llvm-project/commit/8bdc312272543e8fb21868e57a6c1592668b49a4 DIFF: https://github.com/llvm/llvm-project/commit/8bdc312272543e8fb21868e57a6c1592668b49a4.diff L

[clang] [Index] Avoid repeated hash lookups (NFC) (PR #127300)

2025-02-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/127300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [webkit.UncountedLambdaCapturesChecker] Fix a crash in declProtectsThis (PR #127309)

2025-02-15 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/127309 Add a missing nullptr check to declProtectsThis. >From 715da2e5ec5cd64416a5dab9017a9c43a6ca8e78 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sat, 15 Feb 2025 01:33:47 -0800 Subject: [PATCH] [webkit.Uncounted

[clang] [webkit.UncountedLambdaCapturesChecker] Fix a crash in declProtectsThis (PR #127309)

2025-02-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes Add a missing nullptr check to declProtectsThis. --- Full diff: https://github.com/llvm/llvm-project/pull/127309.diff 2 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLambdaC

[clang] 42e0ee4 - [Sema] Avoid repeated hash lookups (NFC) (#127301)

2025-02-15 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-02-15T01:36:16-08:00 New Revision: 42e0ee4d7eaafd86a27418cd8c752229ce90c8e2 URL: https://github.com/llvm/llvm-project/commit/42e0ee4d7eaafd86a27418cd8c752229ce90c8e2 DIFF: https://github.com/llvm/llvm-project/commit/42e0ee4d7eaafd86a27418cd8c752229ce90c8e2.diff L

[clang] [Sema] Avoid repeated hash lookups (NFC) (PR #127301)

2025-02-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/127301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9453b38 - [clang-offload-packager] Avoid repeated hash lookups (NFC) (#127302)

2025-02-15 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-02-15T01:36:39-08:00 New Revision: 9453b38ac74f0d6797f12213996eac40d56537d9 URL: https://github.com/llvm/llvm-project/commit/9453b38ac74f0d6797f12213996eac40d56537d9 DIFF: https://github.com/llvm/llvm-project/commit/9453b38ac74f0d6797f12213996eac40d56537d9.diff L

[clang] [clang-offload-packager] Avoid repeated hash lookups (NFC) (PR #127302)

2025-02-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/127302 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Avoid repeated hash lookups (NFC) (PR #127299)

2025-02-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/127299 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Move conversion builtins to the CLC library (PR #124727)

2025-02-15 Thread Michał Górny via cfe-commits
mgorny wrote: The same failure also happens when SPIRV targets are disabled. https://github.com/llvm/llvm-project/pull/124727 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] Silence -Wunused-parameter warnings in Unwind-wasm.c (PR #125412)

2025-02-15 Thread Yuriy Chernyshov via cfe-commits
georgthegreat wrote: @ldionne, may we proceed with merging this? https://github.com/llvm/llvm-project/pull/125412 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [webkit.UncountedLambdaCapturesChecker] Fix a crash in declProtectsThis (PR #127309)

2025-02-15 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/127309 >From 715da2e5ec5cd64416a5dab9017a9c43a6ca8e78 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sat, 15 Feb 2025 01:33:47 -0800 Subject: [PATCH 1/2] [webkit.UncountedLambdaCapturesChecker] Fix a crash in declPro

[libunwind] Silence -Wunused-parameter warnings in Unwind-wasm.c (PR #125412)

2025-02-15 Thread Louis Dionne via cfe-commits
ldionne wrote: Sure, but I am not certain why you added some newlines though. https://github.com/llvm/llvm-project/pull/125412 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Add code completion for if constexpr (PR #124315)

2025-02-15 Thread via cfe-commits
https://github.com/FantasqueX updated https://github.com/llvm/llvm-project/pull/124315 >From f6558708fe1b4f14fdca9311495082a0fe461866 Mon Sep 17 00:00:00 2001 From: Letu Ren Date: Sat, 25 Jan 2025 01:23:52 +0800 Subject: [PATCH 1/4] [Sema] Add code completion for if constexpr C++17 supports `i

[clang] [Sema] Add code completion for if constexpr (PR #124315)

2025-02-15 Thread via cfe-commits
@@ -6749,6 +6749,21 @@ void SemaCodeCompletion::CodeCompleteInitializer(Scope *S, Decl *D) { CodeCompleteExpression(S, Data); } +void SemaCodeCompletion::CodeCompleteIfConstExpr(Scope *S) const { + ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), +

[clang] [Sema] Add code completion for if constexpr (PR #124315)

2025-02-15 Thread via cfe-commits
@@ -6749,6 +6749,21 @@ void SemaCodeCompletion::CodeCompleteInitializer(Scope *S, Decl *D) { CodeCompleteExpression(S, Data); } +void SemaCodeCompletion::CodeCompleteIfConstExpr(Scope *S) const { + ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), +

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++][ranges] P2542R8: Implement `views::concat` (PR #120920)

2025-02-15 Thread Hristo Hristov via cfe-commits
Zingam wrote: @changkhothuychung The be more specific. You should add the paper entry here: https://github.com/llvm/llvm-project/blob/4887e41055686eede9c155e6b3296b92fe86c2d5/libcxx/docs/ReleaseNotes/21.rst?plain=1#L41 And update the status accordingly: https://github.com/llvm/llvm-project/blob

[clang] 8f3a070 - [Clang] Add new WG21 papers(Hagenberg) papers to the C++ status page

2025-02-15 Thread Corentin Jabot via cfe-commits
Author: Corentin Jabot Date: 2025-02-15T10:54:14+01:00 New Revision: 8f3a070db9bffe78d86d24b583effe4032baa4db URL: https://github.com/llvm/llvm-project/commit/8f3a070db9bffe78d86d24b583effe4032baa4db DIFF: https://github.com/llvm/llvm-project/commit/8f3a070db9bffe78d86d24b583effe4032baa4db.diff

[clang] [Sema] Add code completion for if constexpr (PR #124315)

2025-02-15 Thread via cfe-commits
@@ -6749,6 +6749,21 @@ void SemaCodeCompletion::CodeCompleteInitializer(Scope *S, Decl *D) { CodeCompleteExpression(S, Data); } +void SemaCodeCompletion::CodeCompleteIfConstExpr(Scope *S) const { + ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(), +

[clang] [Sema] Add code completion for if constexpr (PR #124315)

2025-02-15 Thread via cfe-commits
https://github.com/FantasqueX updated https://github.com/llvm/llvm-project/pull/124315 >From f6558708fe1b4f14fdca9311495082a0fe461866 Mon Sep 17 00:00:00 2001 From: Letu Ren Date: Sat, 25 Jan 2025 01:23:52 +0800 Subject: [PATCH 1/3] [Sema] Add code completion for if constexpr C++17 supports `i

[clang] [Sema] Add code completion for if constexpr (PR #124315)

2025-02-15 Thread via cfe-commits
https://github.com/FantasqueX updated https://github.com/llvm/llvm-project/pull/124315 >From f6558708fe1b4f14fdca9311495082a0fe461866 Mon Sep 17 00:00:00 2001 From: Letu Ren Date: Sat, 25 Jan 2025 01:23:52 +0800 Subject: [PATCH 1/3] [Sema] Add code completion for if constexpr C++17 supports `i

[libclc] [libclc] Move conversion builtins to the CLC library (PR #124727)

2025-02-15 Thread Michał Górny via cfe-commits
mgorny wrote: This change broke standalone libclc builds on Gentoo: ``` make -C /tmp/portage/llvm-core/libclc-21.0.0_pre20250215/work/libclc_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DLIBCLC_TARGETS_TO_BUILD=spirv-mesa3d-;spirv64-mesa3d-;r600--;amdgcn--;amdgcn-mes

[libclc] [libclc] [cmake] Fix per-target *_convert.cl dependencies (PR #127315)

2025-02-15 Thread Michał Górny via cfe-commits
https://github.com/mgorny edited https://github.com/llvm/llvm-project/pull/127315 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 88284e4 - [RISCV] Support Zb*/P Shared Instructions (#127160)

2025-02-15 Thread via cfe-commits
Author: realqhc Date: 2025-02-15T22:26:02+08:00 New Revision: 88284e4efce09b0c9f46c3893554481815badf01 URL: https://github.com/llvm/llvm-project/commit/88284e4efce09b0c9f46c3893554481815badf01 DIFF: https://github.com/llvm/llvm-project/commit/88284e4efce09b0c9f46c3893554481815badf01.diff LOG:

[clang] [llvm] [RISCV] Support Zb*/P Shared Instructions (PR #127160)

2025-02-15 Thread via cfe-commits
https://github.com/realqhc closed https://github.com/llvm/llvm-project/pull/127160 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-15 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/127268 >From a705acfd439e6310648b0ed1ad612eaffc408ad5 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 14 Feb 2025 17:46:25 + Subject: [PATCH 1/3] [CMake][Release] Statically link clang with stage1 runtimes

[clang] [flang] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-15 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 6ff8a06de9ce125023e117014ce4dca8fcc391d7 88e8ad406c26c6c65a2a6ed51d8b4696a0acf36e --e

[clang] [Clang] add -Wshift-bool warning to handle shifting of bool (PR #127336)

2025-02-15 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/127336 Fixes #28334 --- This PR introduces the `-Wshift-bool` warning to detect and warn against shifting `bool` values using the `<<` or `>>` operators. Shifting a `bool` implicitly converts it to an `int`, whi

[clang] [Clang] add -Wshift-bool warning to handle shifting of bool (PR #127336)

2025-02-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oleksandr T. (a-tarasyuk) Changes Fixes #28334 --- This PR introduces the `-Wshift-bool` warning to detect and warn against shifting `bool` values using the `<<` or `>>` operators. Shifting a `bool` implicitly converts it to an `int`,

[clang-tools-extra] [clang-tidy] Add support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-15 Thread Vicente Mataix Ferrándiz via cfe-commits
https://github.com/loumalouomega updated https://github.com/llvm/llvm-project/pull/127066 From 6c210298a5aab4eeb0d155534d739e21ba315469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicente=20Mataix=20Ferr=C3=A1ndiz?= Date: Thu, 13 Feb 2025 15:28:30 +0100 Subject: [PATCH 1/4] [tool] Remove legacy ar

[clang-tools-extra] [clang-tidy] Add support for `-ignore-insert-conflict` in `run-clang-tidy.py` (PR #127066)

2025-02-15 Thread Vicente Mataix Ferrándiz via cfe-commits
loumalouomega wrote: > LGTM. Please update release note also. After that, feel free to ping me to > merge it if you do not have permission. Can you help me?, I have no experience in this repository https://github.com/llvm/llvm-project/pull/127066 __

[libclc] [libclc] [cmake] Fix per-target *_convert.cl dependencies (PR #127315)

2025-02-15 Thread Fraser Cormack via cfe-commits
@@ -249,13 +249,19 @@ function(add_libclc_builtin_set) get_filename_component( file_dir ${file} DIRECTORY ) +if( ARG_ARCH STREQUAL spirv OR ARG_ARCH STREQUAL spirv64 ) + set(CONVERT_DEP clspv-generate_convert.cl) +else() + set(CONVERT_DEP generate_conver

[libclc] [libclc] [cmake] Fix per-target *_convert.cl dependencies (PR #127315)

2025-02-15 Thread Sam James via cfe-commits
https://github.com/thesamesam approved this pull request. Please note in the commit message that you're using the same check from `libclc/CMakeLists.txt`. LGTM with that. https://github.com/llvm/llvm-project/pull/127315 ___ cfe-commits mailing list cf

[clang] [clang][x86] Support -masm=intel in cpuid.h (PR #127331)

2025-02-15 Thread via cfe-commits
https://github.com/Alcaro created https://github.com/llvm/llvm-project/pull/127331 Fixes #127271 Testing mostly done in Compiler Explorer https://godbolt.org/z/q1h3ohxr7 >From 90e3f502e582f44cd19e1b8b71d218330b13c9e4 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sat, 15 Feb 2025 16:05:40 +0100

[clang] [clang][x86] Support -masm=intel in cpuid.h (PR #127331)

2025-02-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: None (Alcaro) Changes Fixes #127271 Testing mostly done in Compiler Explorer https://godbolt.org/z/q1h3ohxr7 --- Full diff: https://github.com/llvm/llvm-project/pull/127331.diff 1 Files Affected: - (modified) clang/lib/Headers/cp

[clang] [clang][x86] Support -masm=intel in cpuid.h (PR #127331)

2025-02-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Alcaro) Changes Fixes #127271 Testing mostly done in Compiler Explorer https://godbolt.org/z/q1h3ohxr7 --- Full diff: https://github.com/llvm/llvm-project/pull/127331.diff 1 Files Affected: - (modified) clang/lib/Headers/cpuid.h

[clang-tools-extra] [clang-tidy] Add performance-redundant-lookup check (PR #125420)

2025-02-15 Thread via cfe-commits
EugeneZelenko wrote: @steakhal: Please fix documentation and Release Notes wording that I mentioned already. https://github.com/llvm/llvm-project/pull/125420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [clang][x86] Support -masm=intel in cpuid.h (PR #127331)

2025-02-15 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 21e956df9b2b283c2f2ed710c542ebeebf8473ff 90e3f502e582f44cd19e1b8b71d218330b13c9e4 --e

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-02-15 Thread Owen Pan via cfe-commits
owenca wrote: I prefer that we limit this to breaking after the left parenthesis of a control statement, with true/false or Always, Never, Multiline, BlockIndent, etc. https://github.com/llvm/llvm-project/pull/108332 ___ cfe-commits mailing list cfe-c

[clang-tools-extra] [clang-tidy] Fix false negative `modernize-use-ranges` when using getter function (PR #127377)

2025-02-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy @llvm/pr-subscribers-clang-tools-extra Author: None (Andrewyuan34) Changes This PR fixes issue #124906, where `modernize-use-ranges` failed to detect cases where a `const` member function returning an lvalue was incorrectly assumed to have

[clang-tools-extra] [clang-tidy] Fix false negative `modernize-use-ranges` when using getter function (PR #127377)

2025-02-15 Thread via cfe-commits
https://github.com/Andrewyuan34 created https://github.com/llvm/llvm-project/pull/127377 This PR fixes issue #124906, where `modernize-use-ranges` failed to detect cases where a `const` member function returning an lvalue was incorrectly assumed to have side effects, preventing the transforma

[clang-tools-extra] [clang-tidy] Fix false negative `modernize-use-ranges` when using getter function (PR #127377)

2025-02-15 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] Reapply "[Analyzer][CFG] Correctly handle rebuilt default arg and default init expression" (PR #127338)

2025-02-15 Thread via cfe-commits
@@ -2464,6 +2464,10 @@ CFGBlock *CFGBuilder::VisitCXXDefaultInitExpr(CXXDefaultInitExpr *Init, autoCreateBlock(); appendStmt(Block, Init); } + +// Unlike CXXDefaultArgExpr::getExpr stripped off the top level FullExpr and +// ConstantExpr, CXXDefaultIni

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?Balázs_Kéri?= Message-ID: In-Reply-To: @@ -129,6 +129,8 @@ The ``SuppressAddressSpaces`` option suppresses warnings for null dereferences of all pointers with address spaces. You can disable this behavior with the option ``-analyzer-config core.NullDereference:Supp

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?Bal=C3=A1zs_K=C3=A9ri?= Message-ID: In-Reply-To: @@ -2919,6 +2921,42 @@ Check for assignment of a fixed address to a pointer. p = (int *) 0x1; // warn } +.. _alpha-core-FixedAddressDereference: + +alpha.core.FixedAddressDereference (C, C++, ObjC) +

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?Balázs_Kéri?= Message-ID: In-Reply-To: @@ -1,7 +1,163 @@ // RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core -verify %s -// expected-no-diagnostics -void foo(void) { +extern void __assert_fail (__const char *__assertion, __const char *__file, +unsigned

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?Bal=C3=A1zs_K=C3=A9ri?= Message-ID: In-Reply-To: @@ -2919,6 +2921,42 @@ Check for assignment of a fixed address to a pointer. p = (int *) 0x1; // warn } +.. _alpha-core-FixedAddressDereference: + +alpha.core.FixedAddressDereference (C, C++, ObjC) +

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?Balázs_Kéri?= Message-ID: In-Reply-To: @@ -211,17 +211,15 @@ def DereferenceModeling : Checker<"DereferenceModeling">, Documentation, Hidden; -def NullDereferenceChecker : Checker<"NullDereference">, - HelpText<"Check for dereferences of null pointers">, - C

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?Balázs_Kéri?= Message-ID: In-Reply-To: @@ -155,30 +162,47 @@ static bool isDeclRefExprToReference(const Expr *E) { void DereferenceChecker::reportBug(DerefKind K, ProgramStateRef State, const Stmt *S, CheckerContext &C) const { -

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?Bal=C3=A1zs_K=C3=A9ri?= Message-ID: In-Reply-To: https://github.com/steakhal requested changes to this pull request. Looks pretty good. Thank you! https://github.com/llvm/llvm-project/pull/127191 ___ cfe-commits mailing list cfe-commits@li

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?Balázs_Kéri?= Message-ID: In-Reply-To: @@ -1,6 +1,6 @@ // NOTE: Use '-fobjc-gc' to test the analysis being run twice, and multiple reports are not issued. -// RUN: %clang_analyze_cc1 -triple i386-apple-darwin10 -analyzer-checker=core,alpha.core,osx.cocoa.AtSync -Wn

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?Balázs_Kéri?= Message-ID: In-Reply-To: https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/127191 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?Bal=C3=A1zs_K=C3=A9ri?= Message-ID: In-Reply-To: @@ -285,6 +283,12 @@ def FixedAddressChecker : Checker<"FixedAddr">, HelpText<"Check for assignment of a fixed address to a pointer">, Documentation; +def FixedAddressDereferenceChecker +: Checker<"FixedAddr

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?Bal=C3=A1zs_K=C3=A9ri?= Message-ID: In-Reply-To: @@ -2919,6 +2921,42 @@ Check for assignment of a fixed address to a pointer. p = (int *) 0x1; // warn } +.. _alpha-core-FixedAddressDereference: + +alpha.core.FixedAddressDereference (C, C++, ObjC) +

[clang] [clang][analyzer] Add checker 'alpha.core.FixedAddressDereference' (PR #127191)

2025-02-15 Thread Balazs Benics via cfe-commits
=?utf-8?q?Bal=C3=A1zs_K=C3=A9ri?= Message-ID: In-Reply-To: @@ -31,7 +31,12 @@ class DereferenceChecker : public Checker< check::Location, check::Bind, EventDispatcher > { - enum DerefKind { NullPointer, UndefinedPointerValue,

[clang] Reapply "[Analyzer][CFG] Correctly handle rebuilt default arg and default init expression" (PR #127338)

2025-02-15 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. Well, I don't really know much about these default init exprs but your explanation looks reasonable. I'd say, we should try it and revert it again if there are still some problems. https://github.com/llvm/llvm-project/pull/127338

[clang] [HLSL] Implement HLSL intialization list support (PR #123141)

2025-02-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang` at step 4 "build stage 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/6180 Here is the relevant piece o

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++][ranges] P2542R8: Implement `views::concat` (PR #120920)

2025-02-15 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/120920 error: too big or took too long to generate ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [HLSL] Implement HLSL intialization list support (PR #123141)

2025-02-15 Thread Chris B via cfe-commits
https://github.com/llvm-beanz closed https://github.com/llvm/llvm-project/pull/123141 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [Driver] Fix respecting libdir when locating flang runtime (PR #127345)

2025-02-15 Thread Michał Górny via cfe-commits
mgorny wrote: > But `lib` is used for 32-bit libraries, and `lib64` for 64-bit libraries. …and just to be clear, Flang runtimes are installed into plain system `CMAKE_INSTALL_LIBDIR` rather than `clang/lib/...` path (along with the "host" Flang libraries), and they don't have any arch-suffix,

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++][ranges] P2542R8: Implement `views::concat` (PR #120920)

2025-02-15 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/120920 error: too big or took too long to generate ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [clang][WebAssembly] Support the `-m(no-)red-zone` flag. (PR #119997)

2025-02-15 Thread Alex Rønne Petersen via cfe-commits
alexrp wrote: Ping; would like to get this into LLVM 20. https://github.com/llvm/llvm-project/pull/119997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reapply "[Analyzer][CFG] Correctly handle rebuilt default arg and default init expression" (PR #127338)

2025-02-15 Thread via cfe-commits
yronglin wrote: I don't know whey we stripped off the top level `FullExpr` and `ConstantExpr` in `CXXDefaultArgExpr::getExpr`, but not in `CXXDefaultInitExpr::getExpr`. Do you know about this? @cor3ntin https://github.com/llvm/llvm-project/pull/127338 _

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++][ranges] P2542R8: Implement `views::concat` (PR #120920)

2025-02-15 Thread Nhat Nguyen via cfe-commits
changkhothuychung wrote: > #105419 I think let's address LWG4082 in another PR for better tracking? https://github.com/llvm/llvm-project/pull/120920 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++][ranges] P2542R8: Implement `views::concat` (PR #120920)

2025-02-15 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/120920 error: too big or took too long to generate ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++][ranges] P2542R8: Implement `views::concat` (PR #120920)

2025-02-15 Thread Nhat Nguyen via cfe-commits
changkhothuychung wrote: > @changkhothuychung The be more specific. You should add the paper entry here: > > https://github.com/llvm/llvm-project/blob/4887e41055686eede9c155e6b3296b92fe86c2d5/libcxx/docs/ReleaseNotes/21.rst?plain=1#L41 > > > And update the status accordingly: > https://github.

[clang] [flang] [lld] [llvm] [Flang][NFC] Move runtime library files to flang-rt. (PR #110298)

2025-02-15 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited https://github.com/llvm/llvm-project/pull/110298 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Avoid repeated hash lookups (NFC) (PR #127301)

2025-02-15 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/127301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Index] Avoid repeated hash lookups (NFC) (PR #127300)

2025-02-15 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/127300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-offload-packager] Avoid repeated hash lookups (NFC) (PR #127302)

2025-02-15 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/127302 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Avoid repeated hash lookups (NFC) (PR #127299)

2025-02-15 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/127299 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] [cmake] Fix per-target *_convert.cl dependencies (PR #127315)

2025-02-15 Thread Michał Górny via cfe-commits
https://github.com/mgorny created https://github.com/llvm/llvm-project/pull/127315 Fix `add_libclc_builtin_set` to add an appropriate dependency to either `clspv-generate_convert.cl` or `generate_convert.cl` based on the `ARCH` argument, rather than to both unconditionally. This fixes build f

[libunwind] Silence -Wunused-parameter warnings in Unwind-wasm.c (PR #125412)

2025-02-15 Thread Yuriy Chernyshov via cfe-commits
georgthegreat wrote: I think this is how my clang-format-16 auto-formatted it. I have applied the formatting from the check, it is green now. https://github.com/llvm/llvm-project/pull/125412 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[clang] Fixing the logic issue in TransformTypos::TransformDesignatedInitExpr… (PR #127211)

2025-02-15 Thread via cfe-commits
GS-GOAT wrote: @zyn0217 Made the suggested changes. https://github.com/llvm/llvm-project/pull/127211 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2