[clang] [clang][ASTMatcher] Add `matchesString` for `StringLiteral` which matches literals on given `RegExp` (PR #102152)

2024-08-08 Thread via cfe-commits
https://github.com/Gitspike updated https://github.com/llvm/llvm-project/pull/102152 >From 0d8191b5d205c811364cf1f1b184bcbc9bbeda7f Mon Sep 17 00:00:00 2001 From: hehouhua Date: Wed, 7 Aug 2024 11:55:30 +0800 Subject: [PATCH 1/4] [clang][ASTMatcher] Add matches for StringLiteral which matches

[clang] Add flag to suppress overflow errors in C++ constant expressions. (PR #102390)

2024-08-08 Thread Mike Hommey via cfe-commits
glandium wrote: > and the fix is already applied from looking at > https://android.googlesource.com/platform/frameworks/native/+/master/libs/nativewindow/include/android/hardware_buffer.h#329 it's not part of any released NDK, and it's common to be stuck with older NDKs. Most people are probab

[clang] [Doc] [C++20] [Modules] Clarify the reachability of internal partition units (PR #102572)

2024-08-08 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/102572 Motivated by https://github.com/llvm/llvm-project/issues/101348 Although I don't want the tool's doc to explain the standard's wording, the wording itself has some unspecified thing. So I feel it will be hel

[clang] [Doc] [C++20] [Modules] Clarify the reachability of internal partition units (PR #102572)

2024-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules @llvm/pr-subscribers-clang Author: Chuanqi Xu (ChuanqiXu9) Changes Motivated by https://github.com/llvm/llvm-project/issues/101348 Although I don't want the tool's doc to explain the standard's wording, the wording itself has some unspeci

[clang] [PAC] Add support for __ptrauth type qualifier (PR #100830)

2024-08-08 Thread Anton Korobeynikov via cfe-commits
@@ -1758,6 +1758,34 @@ Also see the documentation for `@available }]; } +def PtrAuthDocs : Documentation { + let Category = DocCatVariable; + let Heading = "__ptrauth, __ptrauth_restricted_intptr"; asl wrote: `__ptrauth_restricted_intptr` is not here yet.

[clang] [PAC] Add support for __ptrauth type qualifier (PR #100830)

2024-08-08 Thread Anton Korobeynikov via cfe-commits
@@ -956,6 +956,25 @@ def err_ptrauth_indirect_goto_addrlabel_arithmetic : Error< "%select{subtraction|addition}0 of address-of-label expressions is not " "supported with ptrauth indirect gotos">; +// __ptrauth qualifier +def err_ptrauth_qualifier_invalid : Error< + "%sele

[clang] [clang][ASTMatcher] Add `matchesString` for `StringLiteral` which matches literals on given `RegExp` (PR #102152)

2024-08-08 Thread via cfe-commits
https://github.com/Gitspike updated https://github.com/llvm/llvm-project/pull/102152 >From 869b955eb55bc53e445a8809b56c702d7c312b46 Mon Sep 17 00:00:00 2001 From: hehouhua Date: Wed, 7 Aug 2024 11:55:30 +0800 Subject: [PATCH] [clang][ASTMatcher] Add matches for StringLiteral which matches lite

[clang] [llvm] [Sanitizer] Make sanitizer passes idempotent (PR #99439)

2024-08-08 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > > @vitalybuka @nikic Let me know if anything needs to be changed in this PR? > > Else, will merge the PR after approval. > > Please review. you should click "re-request review" button next to review. https://github.com/llvm/llvm-project/pull/99439 _

[clang] [C++20] [Moduels] Correct the linkage of const variable in language linkage from module interfaces (PR #102574)

2024-08-08 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/102574 Close https://github.com/llvm/llvm-project/issues/99825 The root cause of the issue is that I didn't realize the things in implicit global module (the language linkage in module interfaces) should be conside

[clang] [C++20] [Moduels] Correct the linkage of const variable in language linkage from module interfaces (PR #102574)

2024-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes Close https://github.com/llvm/llvm-project/issues/99825 The root cause of the issue is that I didn't realize the things in implicit global module (the language linkage in module interfaces) should b

[clang] 16dadec - Fix clang flags in the SystemZ zos-mixed-ptr-sizes-malloc.c test

2024-08-08 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2024-08-09T08:19:49+02:00 New Revision: 16dadecc05fa4986d4522c2c3a09a7628feb0fd4 URL: https://github.com/llvm/llvm-project/commit/16dadecc05fa4986d4522c2c3a09a7628feb0fd4 DIFF: https://github.com/llvm/llvm-project/commit/16dadecc05fa4986d4522c2c3a09a7628feb0fd4.diff LO

[clang] [llvm] [Sanitizer] Make sanitizer passes idempotent (PR #99439)

2024-08-08 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: I will take another look tomorrow. https://github.com/llvm/llvm-project/pull/99439 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8410bab - [C++20] [Moduels] Correct the linkage of const variable in language linkage from module interfaces (#102574)

2024-08-08 Thread via cfe-commits
Author: Chuanqi Xu Date: 2024-08-09T14:48:56+08:00 New Revision: 8410babc2b69ccb2259e77262ad2baaa17644bea URL: https://github.com/llvm/llvm-project/commit/8410babc2b69ccb2259e77262ad2baaa17644bea DIFF: https://github.com/llvm/llvm-project/commit/8410babc2b69ccb2259e77262ad2baaa17644bea.diff LO

[clang] [C++20] [Moduels] Correct the linkage of const variable in language linkage from module interfaces (PR #102574)

2024-08-08 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/102574 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ASTMatcher] Add `matchesString` for `StringLiteral` which matches literals on given `RegExp` (PR #102152)

2024-08-08 Thread via cfe-commits
@@ -2503,6 +2503,25 @@ TEST_P(ASTMatchersTest, IsDelegatingConstructor) { cxxConstructorDecl(isDelegatingConstructor(), parameterCountIs(1; } +TEST_P(ASTMatchersTest, MatchesString) { + StatementMatcher Literal = stringLiteral(matchesString("foo.*")); + EXPECT_TRUE

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-08 Thread Nathan James via cfe-commits
njames93 wrote: Actually an ASTVisitor approach could be better here, this way you could create a set of all the `CXXRecordDecls` that publicly inherit from or transitively inherit from `::std::enable_shared_from_this` during traversal https://github.com/llvm/llvm-project/pull/102299 _

[clang] [clang] Fix crash when #embed used in a compound literal (PR #102304)

2024-08-08 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#102428 https://github.com/llvm/llvm-project/pull/102304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20] [Modules] Enable -fmodules-embed-all-files by default for named modules (PR #74419)

2024-08-08 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/74419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20] [Modules] Enable -fmodules-embed-all-files by default for named modules (PR #74419)

2024-08-08 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: I just found the implementation is not good since all the tests (they use %clang_cc1) won't use the new enabled feature but we decided to enable them all the time. So I'd like to find a better solution. https://github.com/llvm/llvm-project/pull/74419 _

[clang] 876cbf9 - [clang][Interp] Properly abort on reads from non-const variables (#102426)

2024-08-08 Thread via cfe-commits
Author: Timm Baeder Date: 2024-08-08T09:36:03+02:00 New Revision: 876cbf9a127b0a18374dcf91c969c7ba152e048c URL: https://github.com/llvm/llvm-project/commit/876cbf9a127b0a18374dcf91c969c7ba152e048c DIFF: https://github.com/llvm/llvm-project/commit/876cbf9a127b0a18374dcf91c969c7ba152e048c.diff L

[clang] [clang][Interp] Properly abort on reads from non-const variables (PR #102426)

2024-08-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/102426 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Split out the ROV attribute from the resource attribute, make it a new spellable attribute. (PR #102414)

2024-08-08 Thread Justin Bogner via cfe-commits
https://github.com/bogner commented: It'd be better to make the attribute take no arguments, and we can tell if something is ROV by its presence alone, so: ```hlsl [[hlsl::is_rov]] __hlsl_resource_t handle; ``` would be an ROV resource, but ```hlsl __hlsl_resource_t handle; ``` would not. I thi

[clang] [clang][driver][clang-cl] Fix unused argument warning for `/std:c++20` for precompiled module inputs to `clang-cl` (PR #99300)

2024-08-08 Thread Sharadh Rajaraman via cfe-commits
sharadhr wrote: Just to clarify—you'd like me to open another PR to `release/19.X`? I can do that. In fact I'm a little more ambitious because this and #98761 are honestly very simple PRs—I'd like them to be backported as far as Clang 16 (which is when modules support first appeared) if possi

[clang] [clang][analyzer] Add more notes to PointerSubChecker (PR #102432)

2024-08-08 Thread Balázs Kéri via cfe-commits
https://github.com/balazske created https://github.com/llvm/llvm-project/pull/102432 Notes appear at out-of-range array index for index value and array size. From b9753a79654b1428f753a2fad865eacdf0250ac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Thu, 8 Aug 2024 0

[clang] [clang][analyzer] Add more notes to PointerSubChecker (PR #102432)

2024-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Balázs Kéri (balazske) Changes Notes appear at out-of-range array index for index value and array size. --- Full diff: https://github.com/llvm/llvm-project/pull/102432.diff 2 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checker

[clang] [clang][analyzer] Add more notes to PointerSubChecker (PR #102432)

2024-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balázs Kéri (balazske) Changes Notes appear at out-of-range array index for index value and array size. --- Full diff: https://github.com/llvm/llvm-project/pull/102432.diff 2 Files Affected: - (modified) clang/lib/Stat

[clang] [clang][driver][clang-cl] Fix unused argument warning for `/std:c++20` for precompiled module inputs to `clang-cl` (PR #99300)

2024-08-08 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > Just to clarify—you'd like me to open another PR to `release/19.X`? I can do > that. Yes. You can find the automated generated example in https://github.com/llvm/llvm-project/pull/102159 > > In fact I'm a little more ambitious because this and #98761 are honestly very >

[clang] 182e1c7 - [NFC] Update test for clang/test/Modules/cxx20-force-check-input.cppm

2024-08-08 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2024-08-08T15:52:29+08:00 New Revision: 182e1c773421e097d42415fc4d9aee1fb431819a URL: https://github.com/llvm/llvm-project/commit/182e1c773421e097d42415fc4d9aee1fb431819a DIFF: https://github.com/llvm/llvm-project/commit/182e1c773421e097d42415fc4d9aee1fb431819a.diff LO

[clang] [clang][driver][clang-cl] Fix unused argument warning for `/std:c++20` for precompiled module inputs to `clang-cl` (PR #99300)

2024-08-08 Thread Sharadh Rajaraman via cfe-commits
sharadhr wrote: Ah. That's a pity but no problem. I'll create the PR now. Thanks! https://github.com/llvm/llvm-project/pull/99300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-08 Thread via cfe-commits
@@ -0,0 +1,45 @@ +//===--- PublicEnableSharedFromThisCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identif

[clang-tools-extra] [clang-tidy] Add new check bugprone-tagged-union-member-count (PR #89925)

2024-08-08 Thread via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= Message-ID: In-Reply-To:

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-08-08 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL requested changes to this pull request. Matchers need simplification, mainly that hasDescendant and declRefExpr need to go https://github.com/llvm/llvm-project/pull/67467 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-08-08 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,142 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-08-08 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/67467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-08-08 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,142 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-08-08 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,142 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2024-08-08 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/70621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2024-08-08 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,220 @@ +// RUN: %check_clang_tidy %s readability-use-explicit-namespaces %t + +namespace foo { +void doSomething() {} + +template void doTemplateThing(T &value) { value = value * 2; } + +struct StructTest { + int StructIntMember; +}; + +class ClassTest { +public: + i

[clang-tools-extra] create new clang-tidy check to add namespaces to symbol references (PR #70621)

2024-08-08 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL requested changes to this pull request. Bump. Please rebase. And please remove unnecessary diagnostic, its makes harder to understand what is part of a check, and what isn't https://github.com/llvm/llvm-project/pull/70621 _

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

2024-08-08 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL requested changes to this pull request. storeOptions method is missing, and please rebase. Except that looks fine. https://github.com/llvm/llvm-project/pull/99477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[clang] [clang][analyzer] Add more notes to PointerSubChecker (PR #102432)

2024-08-08 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. The change LGTM, it makes these reports somewhat easier to understand. However, note that I'll delete all array bounds checking logic from this checker when I'll bring `alpha.security.ArrayBoundsV2` out of alpha, because there is no reas

[clang-tools-extra] clang-tidy: readability-redundant-smartptr-get does not remove (#97964) (PR #100177)

2024-08-08 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. https://github.com/llvm/llvm-project/pull/100177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] clang-tidy: readability-redundant-smartptr-get does not remove (#97964) (PR #100177)

2024-08-08 Thread Piotr Zegar via cfe-commits
@@ -104,6 +104,10 @@ New check aliases Changes in existing checks ^^ +- Improved :doc:`readability-redundant-smartptr-get + ` check to + remove '->', when reduntant get() is removed. PiotrZSL wrote: ```suggestion remove `->`, when

[clang] [clang-tools-extra] [clang-tidy] bugprone-implicit-widening ignores unsigned consts (PR #101073)

2024-08-08 Thread Piotr Zegar via cfe-commits
PiotrZSL wrote: Thats a good question. @njames93 What do you thing, current tests are sufficient ? https://github.com/llvm/llvm-project/pull/101073 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang-tools-extra] [clang-tidy] Add new check bugprone-tagged-union-member-count (PR #89925)

2024-08-08 Thread via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= , =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= Message-ID: In-Reply-To:

[clang] [clang][analyzer] Add more notes to PointerSubChecker (PR #102432)

2024-08-08 Thread Balázs Kéri via cfe-commits
balazske wrote: If the `ArrayBoundsV2` checker is finished it should find all of the cases in the test of `PointerSubChecker` that have out-of-bound indexing, and including the cases where a single variable is handled like an 1-element array? If yes the bounds check is not needed in this check

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-08 Thread via cfe-commits
https://github.com/MichelleCDjunaidi updated https://github.com/llvm/llvm-project/pull/102299 >From 75306bd83eb43d0606630f9f059fc04ad1b20b06 Mon Sep 17 00:00:00 2001 From: Michelle C Djunaidi Date: Wed, 7 Aug 2024 13:10:02 +0800 Subject: [PATCH 1/4] [clang-tidy] Add bugprone-public-enable-share

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-08 Thread via cfe-commits
@@ -0,0 +1,45 @@ +//===--- PublicEnableSharedFromThisCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identif

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-08 Thread via cfe-commits
@@ -0,0 +1,45 @@ +//===--- PublicEnableSharedFromThisCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identif

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-08 Thread via cfe-commits
@@ -0,0 +1,45 @@ +// RUN: %check_clang_tidy %s bugprone-public-enable-shared-from-this %t -- -- + +namespace std { + +template class enable_shared_from_this {}; + +class BadExample : enable_shared_from_this {}; +// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: class BadExa

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-08 Thread via cfe-commits
https://github.com/MichelleCDjunaidi updated https://github.com/llvm/llvm-project/pull/102299 >From 75306bd83eb43d0606630f9f059fc04ad1b20b06 Mon Sep 17 00:00:00 2001 From: Michelle C Djunaidi Date: Wed, 7 Aug 2024 13:10:02 +0800 Subject: [PATCH 1/5] [clang-tidy] Add bugprone-public-enable-share

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-08 Thread via cfe-commits
MichelleCDjunaidi wrote: > How are classes that derive other classes that implement > `enable_shared_from_this` > > ```c++ > class A : public std::enable_shared_from_this {}; > class B : private A{}; > ``` Looking at the AST dump that clang-check gives, it seems that B doesn't have any knowle

[clang] 635d20e - [RISCV] full support for riscv_rvv_vector_bits attribute (#100110)

2024-08-08 Thread via cfe-commits
Author: Vladislav Belov Date: 2024-08-08T12:45:20+03:00 New Revision: 635d20e9e72e25966b196bb012a90e750ae00c6d URL: https://github.com/llvm/llvm-project/commit/635d20e9e72e25966b196bb012a90e750ae00c6d DIFF: https://github.com/llvm/llvm-project/commit/635d20e9e72e25966b196bb012a90e750ae00c6d.dif

[clang] [RISCV] full support for riscv_rvv_vector_bits attribute (PR #100110)

2024-08-08 Thread Anton Sidorenko via cfe-commits
https://github.com/asi-sc closed https://github.com/llvm/llvm-project/pull/100110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] full support for riscv_rvv_vector_bits attribute (PR #100110)

2024-08-08 Thread via cfe-commits
github-actions[bot] wrote: @vbe-sc Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build,

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-08 Thread via cfe-commits
@@ -0,0 +1,45 @@ +//===--- PublicEnableSharedFromThisCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identif

[clang] [C++20] [Modules] Embed all source files for C++20 Modules (PR #102444)

2024-08-08 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/102444 Close https://github.com/llvm/llvm-project/issues/72383 The implementation rationale is, I don't want to pass `-fmodules-embed-all-files` all the time since we can't test it in lit tests (we're using `clang

[clang] [C++20] [Modules] Embed all source files for C++20 Modules (PR #102444)

2024-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes Close https://github.com/llvm/llvm-project/issues/72383 The implementation rationale is, I don't want to pass `-fmodules-embed-all-files` all the time since we can't test it in lit tests (we're usi

[clang] [llvm] [MC] Emit a jump table size section (PR #101962)

2024-08-08 Thread Nabeel Omer via cfe-commits
omern1 wrote: > The `.debug_` prefix is for DEARF content, is this being proposed to the > DWARF standard? No, this isn't being proposed for the DWARF standard. Though, searching through the DWARF standard I couldn't find anywhere saying that the `.debug_` section name prefix is reserved for

[clang] [llvm] [MC] Emit a jump table size section (PR #101962)

2024-08-08 Thread Nabeel Omer via cfe-commits
https://github.com/omern1 updated https://github.com/llvm/llvm-project/pull/101962 >From 14f3cb82f0d7e69261bd7e1317bd66392e9a2c2b Mon Sep 17 00:00:00 2001 From: Nabeel Omer Date: Mon, 5 Aug 2024 11:50:18 +0100 Subject: [PATCH 1/4] [MC] Emit a jump table size section This patch will make LLVM e

[clang] [C++20] [Modules] Embed all source files for C++20 Modules (PR #102444)

2024-08-08 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 182e1c773421e097d42415fc4d9aee1fb431819a 71e93c68dd186d70f2c922963897ffb1dce70179 --e

[clang] [clang][analyzer] Add more notes to PointerSubChecker (PR #102432)

2024-08-08 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/102432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add more notes to PointerSubChecker (PR #102432)

2024-08-08 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/102432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add more notes to PointerSubChecker (PR #102432)

2024-08-08 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/102432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [MC] Emit a jump table size section (PR #101962)

2024-08-08 Thread Nabeel Omer via cfe-commits
https://github.com/omern1 updated https://github.com/llvm/llvm-project/pull/101962 >From 14f3cb82f0d7e69261bd7e1317bd66392e9a2c2b Mon Sep 17 00:00:00 2001 From: Nabeel Omer Date: Mon, 5 Aug 2024 11:50:18 +0100 Subject: [PATCH 1/5] [MC] Emit a jump table size section This patch will make LLVM e

[clang] [clang][PowerPC] Add flag to enable compatibility with GNU for complex arguments (PR #77732)

2024-08-08 Thread Kishan Parmar via cfe-commits
https://github.com/Long5hot updated https://github.com/llvm/llvm-project/pull/77732 >From 2d4ae4906117adcdcd7d08e95ae42ead29bcc9a6 Mon Sep 17 00:00:00 2001 From: Kishan Parmar Date: Thu, 8 Aug 2024 15:29:56 +0530 Subject: [PATCH] [clang][PowerPC] Add flag to enable compatibility with GNU for c

[clang] [clang][analyzer] Add more notes to PointerSubChecker (PR #102432)

2024-08-08 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > If the `ArrayBoundsV2` checker is finished it should find all of the cases in > the test of `PointerSubChecker` that have out-of-bound indexing, and > including the cases where a single variable is handled like an 1-element > array? Yes, `ArrayBoundV2` will handle the cases

[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)

2024-08-08 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: I think this can be prevented by addition testing. Feel free to submit your suggestion as an additional test. I also saw declared, but unused symbols in `functionList`, e.g. `clang_getTemplateCursorKind`. That might be worth loo https://github.com/llvm/llvm-project/pull/101941 _

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

2024-08-08 Thread Paul Heidekrüger via cfe-commits
@@ -0,0 +1,124 @@ +//===--- ProBoundsAvoidUncheckedContainerAccesses.cpp - clang-tidy ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[libunwind] 3952910 - [libunwind] Fix problems caused by combining BTI and GCS (#102322)

2024-08-08 Thread via cfe-commits
Author: John Brawn Date: 2024-08-08T11:20:09+01:00 New Revision: 39529107b46032ef0875ac5b809ab5b60cd15a40 URL: https://github.com/llvm/llvm-project/commit/39529107b46032ef0875ac5b809ab5b60cd15a40 DIFF: https://github.com/llvm/llvm-project/commit/39529107b46032ef0875ac5b809ab5b60cd15a40.diff LO

[libunwind] [libunwind] Fix problems caused by combining BTI and GCS (PR #102322)

2024-08-08 Thread John Brawn via cfe-commits
https://github.com/john-brawn-arm closed https://github.com/llvm/llvm-project/pull/102322 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-08-08 Thread Paul Heidekrüger via cfe-commits
@@ -0,0 +1,124 @@ +//===--- ProBoundsAvoidUncheckedContainerAccesses.cpp - clang-tidy ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

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

2024-08-08 Thread Paul Heidekrüger via cfe-commits
https://github.com/PBHDK edited https://github.com/llvm/llvm-project/pull/95220 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-08-08 Thread Paul Heidekrüger via cfe-commits
@@ -0,0 +1,40 @@ +//===--- ProBoundsAvoidUncheckedContainerAccesses.h - clang-tidy *- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [Clang] Reuse tail-padding for more types that are not POD for the purpose of layout (PR #90462)

2024-08-08 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/90462 >From 96ff21d5126ebb4b9a538b8eef11f8ac9e2194c5 Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Mon, 29 Apr 2024 12:27:04 +0100 Subject: [PATCH 1/4] [Clang] Reuse tail-padding for more types that are not POD

[clang] [Clang] Reuse tail-padding for more types that are not POD for the purpose of layout (PR #90462)

2024-08-08 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok edited https://github.com/llvm/llvm-project/pull/90462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reuse tail-padding for more types that are not POD for the purpose of layout (PR #90462)

2024-08-08 Thread Mital Ashok via cfe-commits
MitalAshok wrote: @hubert-reinterpretcast There were none, now I've added some: https://github.com/llvm/llvm-project/blob/cf8be1bac0eb37caaaecd47cb463ca58ee0fbe59/clang/test/Layout/itanium-padded-bit-field.cpp https://github.com/llvm/llvm-project/pull/90462 _

[clang] [clang] Remove dead incremental Parser code (PR #102450)

2024-08-08 Thread Jonas Hahnfeld via cfe-commits
https://github.com/hahnjo created https://github.com/llvm/llvm-project/pull/102450 When incremental processing is enabled, the Parser will never report `tok::eof` but `tok::annot_repl_input_end`. However, that case is already taken care of in `IncrementalParser::ParseOrWrapTopLevelDecl()` so t

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

2024-08-08 Thread Paul Heidekrüger via cfe-commits
@@ -0,0 +1,137 @@ +//===--- ProBoundsAvoidUncheckedContainerAccesses.cpp - clang-tidy ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [clang] Remove dead incremental Parser code (PR #102450)

2024-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jonas Hahnfeld (hahnjo) Changes When incremental processing is enabled, the Parser will never report `tok::eof` but `tok::annot_repl_input_end`. However, that case is already taken care of in `IncrementalParser::ParseOrWrapTopLevelDecl()`

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

2024-08-08 Thread Paul Heidekrüger via cfe-commits
@@ -160,6 +160,11 @@ New checks Replaces nested ``std::min`` and ``std::max`` calls with an initializer list where applicable. +- New :doc:`cppcoreguidelines-pro-bounds-avoid-unchecked-container-accesses PBHDK wrote: Are you referring to a double "it" som

[clang] [clang] Remove dead incremental Parser code (PR #102450)

2024-08-08 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: Your reasoning sounds right to me. Can we make sure we are not breaking `clang -fincremental-extensions`, too? https://github.com/llvm/llvm-project/pull/102450 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] [clang] Remove dead incremental Parser code (PR #102450)

2024-08-08 Thread Jonas Hahnfeld via cfe-commits
hahnjo wrote: > Your reasoning sounds right to me. Can we make sure we are not breaking > `clang -fincremental-extensions`, too? As far as I can tell, `-fincremental-extensions` should set the language option `IncrementalExtensions` which in turn is the default for `Preprocessor::IncrementalP

[clang] [Clang] Reuse tail-padding for more types that are not POD for the purpose of layout (PR #90462)

2024-08-08 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/90462 >From 96ff21d5126ebb4b9a538b8eef11f8ac9e2194c5 Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Mon, 29 Apr 2024 12:27:04 +0100 Subject: [PATCH 1/6] [Clang] Reuse tail-padding for more types that are not POD

[clang] [Clang] Reuse tail-padding for more types that are not POD for the purpose of layout (PR #90462)

2024-08-08 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/90462 >From 96ff21d5126ebb4b9a538b8eef11f8ac9e2194c5 Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Mon, 29 Apr 2024 12:27:04 +0100 Subject: [PATCH 1/6] [Clang] Reuse tail-padding for more types that are not POD

[clang] [libcxx] [Clang] Implement CWG2137 (list-initialization from objects of the same type) (PR #94355)

2024-08-08 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok updated https://github.com/llvm/llvm-project/pull/94355 >From ac803f979f2779da35a006988d2d42cdabbad252 Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Sat, 22 Jul 2023 20:07:00 +0100 Subject: [PATCH 1/7] [SemaCXX] Implement CWG2137 (list-initialization from objec

[clang] 8f0c865 - Fix a crash with empty escape sequences when lexing (#102339)

2024-08-08 Thread via cfe-commits
Author: Aaron Ballman Date: 2024-08-08T07:32:39-04:00 New Revision: 8f0c865d1024a9ff7f3f1b0d3e47a6c9f5f672c2 URL: https://github.com/llvm/llvm-project/commit/8f0c865d1024a9ff7f3f1b0d3e47a6c9f5f672c2 DIFF: https://github.com/llvm/llvm-project/commit/8f0c865d1024a9ff7f3f1b0d3e47a6c9f5f672c2.diff

[clang] Fix a crash with empty escape sequences when lexing (PR #102339)

2024-08-08 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/102339 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add flag to suppress overflow errors in C++ constant expressions. (PR #102390)

2024-08-08 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: CC @zygoloid @hubert-reinterpretcast @cor3ntin @shafik for more opinions regarding diagnostic behavior > Not sure if this is really worth doing if it only affects the Android NDK; > Android trunk has been fixed. And presumably most people will use the > compiler from the N

[clang] [Bounds Safety][NFC] Add some missing coverage for `-fexperimental-late-parse-attributes` (PR #102236)

2024-08-08 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/102236 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Remove dead incremental Parser code (PR #102450)

2024-08-08 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev approved this pull request. Lgtm! https://github.com/llvm/llvm-project/pull/102450 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Hazard3 CPU (PR #102452)

2024-08-08 Thread Sam Elliott via cfe-commits
https://github.com/lenary created https://github.com/llvm/llvm-project/pull/102452 Luke Wren's Hazard3 is an open-source 32-bit RISC-V core. The core's source code and docs are available on github: https://github.com/wren6991/hazard3 The core has just hit 1.0 today, which seems to me to be a g

[clang] [llvm] [RISCV] Add Hazard3 CPU (PR #102452)

2024-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Sam Elliott (lenary) Changes Luke Wren's Hazard3 is an open-source 32-bit RISC-V core. The core's source code and docs are available on github: https://github.com/wren6991/hazard3 The core has just hit 1.

[clang] [clang][Interp] Don't diagnose indexing arrays with index 0 (PR #102454)

2024-08-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/102454 Even if the array is of unknown bounds, index 0 is fine. >From cd0c548bda43321089d2fc4a6c7853a18b932690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 8 Aug 2024 14:19:25 +0200 Subject

[clang] [clang][Interp] Don't diagnose indexing arrays with index 0 (PR #102454)

2024-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Even if the array is of unknown bounds, index 0 is fine. --- Full diff: https://github.com/llvm/llvm-project/pull/102454.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/Interp.h (+2-2) - (modifie

[clang] [llvm] [RISCV] Add Syntacore SCR5 RV32/64 processors definition (PR #102285)

2024-08-08 Thread Anton Sidorenko via cfe-commits
https://github.com/asi-sc updated https://github.com/llvm/llvm-project/pull/102285 >From aeae8cfd59de3e0898e3e70882dc1ef566d6f021 Mon Sep 17 00:00:00 2001 From: Anton Sidorenko Date: Thu, 4 Jul 2024 18:09:26 +0300 Subject: [PATCH] [RISCV] Add Syntacore SCR5 RV32/64 processors definition Syntac

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS (PR #101696)

2024-08-08 Thread Abhina Sree via cfe-commits
abhina-sree wrote: Enabling __ptr32 keyword to support in Clang for z/OS. It is represented by addrspace(1) in LLVM IR. Unlike existing implementation, __ptr32 is not mangled into symbol names for z/OS. https://github.com/llvm/llvm-project/pull/101696 __

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS (PR #101696)

2024-08-08 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree closed https://github.com/llvm/llvm-project/pull/101696 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 135fecd - [SystemZ][z/OS] __ptr32 support for z/OS (#101696)

2024-08-08 Thread via cfe-commits
Author: Abhina Sree Date: 2024-08-08T08:35:22-04:00 New Revision: 135fecd4441068667ef23f56098befd0c42f89f2 URL: https://github.com/llvm/llvm-project/commit/135fecd4441068667ef23f56098befd0c42f89f2 DIFF: https://github.com/llvm/llvm-project/commit/135fecd4441068667ef23f56098befd0c42f89f2.diff L

[clang] [llvm] [RISCV] Add Hazard3 CPU (PR #102452)

2024-08-08 Thread Sam Elliott via cfe-commits
https://github.com/lenary converted_to_draft https://github.com/llvm/llvm-project/pull/102452 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   >