[clang-tools-extra] [clang-tidy] support static analyzer checker configuration in `--verify-config` (PR #109523)

2024-09-21 Thread via cfe-commits
@@ -98,6 +98,10 @@ Improvements to clang-tidy - Improved :program:`run-clang-tidy.py` script. Fixed minor shutdown noise happening on certain platforms when interrupting the script. +- Improved :program:`clang-tidy`'s `--verify-config` flag by adding support for

[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)

2024-09-21 Thread Rainer Orth via cfe-commits
rorth wrote: No, that doesn't exist. The failure will occur on any non-x86 build configure with `-DLLVM_TARGETS_TO_BUILD=`. AFAICS the tests just need ``` // REQUIRES: x86-registered-target ``` https://github.com/llvm/llvm-project/pull/108949 ___ cf

[clang] [C++20][Modules] Restore inliness of constexpr/consteval functions defined in-class (PR #109470)

2024-09-21 Thread via cfe-commits
@@ -9760,8 +9760,8 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC, if (getLangOpts().CPlusPlus) { // The rules for implicit inlines changed in C++20 for methods and friends // with an in-class definition (when such a definition is not attac

[clang] [C++20][Modules] Restore inliness of constexpr/consteval functions defined in-class (PR #109470)

2024-09-21 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/109470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Restore inliness of constexpr/consteval functions defined in-class (PR #109470)

2024-09-21 Thread via cfe-commits
https://github.com/cor3ntin commented: I think this looks reasonable but I'd like @iains or @ChuanqiXu9 to review too. Can you add a changelog entry? https://github.com/llvm/llvm-project/pull/109470 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [clang] fix the unexpected control flow in ParseTentative.cpp (PR #109298)

2024-09-21 Thread via cfe-commits
cor3ntin wrote: > @cor3ntin See the discussion on #95917. This is likely effectively dead code, > but nobody is certain enough of that to delete it outright... The original issue seems to suggest the code path can be used on invalid code such as struct X { }; void foo() { X; } ``` (ie

[clang] f5f61c8 - Updated and renamed README.txt to README.md (#106198)

2024-09-21 Thread via cfe-commits
Author: Tarık Çelik Date: 2024-09-21T09:58:42+02:00 New Revision: f5f61c802e9bb9504082f9e0f41926f5d2ab7115 URL: https://github.com/llvm/llvm-project/commit/f5f61c802e9bb9504082f9e0f41926f5d2ab7115 DIFF: https://github.com/llvm/llvm-project/commit/f5f61c802e9bb9504082f9e0f41926f5d2ab7115.diff L

[clang] [C++20][Modules] Restore inliness of constexpr/consteval functions defined in-class (PR #109470)

2024-09-21 Thread via cfe-commits
https://github.com/tomasz-kaminski-sonarsource updated https://github.com/llvm/llvm-project/pull/109470 >From 6ff9964b7180cc9279c2742b14f69cc966a027a1 Mon Sep 17 00:00:00 2001 From: Tomasz Kaminski Date: Fri, 20 Sep 2024 17:21:33 +0200 Subject: [PATCH 1/2] [C++20][Modules] Restore inliness of c

[clang] [llvm] [clang][wasm] Replace the target integer sub saturate intrinsics with the equivalent generic `__builtin_elementwise_sub_sat` intrinsics (PR #109405)

2024-09-21 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/109405 >From 657f1c0369a2befecdca26235f231bfd9ab55e9b Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 20 Sep 2024 12:36:27 +0100 Subject: [PATCH 1/2] [clang][wasm] Replace the target integer sub saturate intri

[clang-tools-extra] [modularize] Avoid repeated hash lookups (NFC) (PR #109508)

2024-09-21 Thread Nikita Popov via cfe-commits
@@ -508,13 +508,11 @@ class EntityMap : public std::map> { // Sort contents. llvm::sort(H->second); - // Check whether we've seen this header before. - auto KnownH = AllHeaderContents.find(H->first); - if (KnownH == AllHeaderContents.end()) { -

[clang] [CLANG][AArch64] Add the modal 8 bit floating-point scalar type (PR #97277)

2024-09-21 Thread via cfe-commits
https://github.com/CarolineConcatto updated https://github.com/llvm/llvm-project/pull/97277 >From edf2f6c977d06627f7a752a0128ffcb04c082c38 Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Mon, 24 Jun 2024 09:59:24 + Subject: [PATCH] [CLANG][AArch64] Add the modal 8 bit floating-point

[clang] [clang-format] Fix regression with BlockIndent of Braced Initializers (PR #108717)

2024-09-21 Thread Owen Pan via cfe-commits
@@ -9395,6 +9398,9 @@ TEST_F(FormatTest, AlignsAfterOpenBracket) { "fooo(new FOO::BA(\n" "XXXZ()));", Style); + verifyFormat("aaa const aa{\n" + "a(a

[clang] [clang-format] Fix regression with BlockIndent of Braced Initializers (PR #108717)

2024-09-21 Thread Owen Pan via cfe-commits
@@ -9336,6 +9336,9 @@ TEST_F(FormatTest, AlignsAfterOpenBracket) { "ccc(a, //\n" "b));", Style); + verifyFormat("aaa const aa{\n" + "a(aaa, aa

[clang] [clang-format] Fix regression with BlockIndent of Braced Initializers (PR #108717)

2024-09-21 Thread Owen Pan via cfe-commits
@@ -348,6 +348,13 @@ bool ContinuationIndenter::canBreak(const LineState &State) { } } + // Don't allow breaking before a closing right brace of a block-indented + // braced list initializer if there was not already a break. owenca wrote: ```suggesti

[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)

2024-09-21 Thread Rainer Orth via cfe-commits
rorth wrote: Seems so, yes. Could also be an endianess thing. I know nothing about this test, though. https://github.com/llvm/llvm-project/pull/108949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)

2024-09-21 Thread Timm Baeder via cfe-commits
tbaederr wrote: But if that was the entire problem, the one in `test/SemaCXX/` would've failed before or not? https://github.com/llvm/llvm-project/pull/108949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[clang] [libclang/python] Fix evaluation of the unsigned enumeration values, #108766 (PR #108769)

2024-09-21 Thread Vlad Serebrennikov via cfe-commits
@@ -1952,6 +1952,8 @@ def enum_value(self): underlying_type = self.type if underlying_type.kind == TypeKind.ENUM: underlying_type = underlying_type.get_declaration().enum_type +if underlying_type.kind == TypeKind.ELABORATED: -

[clang] [BoundsSafety][NFC] Specify taking address of a variable referred to by '__counted_by' is forbidden (PR #106147)

2024-09-21 Thread Henrik G. Olsson via cfe-commits
@@ -759,7 +759,24 @@ relationship must hold even after any of these related variables are updated. To this end, the model requires that assignments to ``buf`` and ``count`` must be side by side, with no side effects between them. This prevents ``buf`` and ``count`` from tempor

[clang] [BoundsSafety][NFC] Specify taking address of a variable referred to by '__counted_by' is forbidden (PR #106147)

2024-09-21 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn edited https://github.com/llvm/llvm-project/pull/106147 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [BoundsSafety][NFC] Specify taking address of a variable referred to by '__counted_by' is forbidden (PR #106147)

2024-09-21 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn commented: Overall looks good, just a small clarification https://github.com/llvm/llvm-project/pull/106147 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Refactor collection of multi-level template argument lists (PR #106585)

2024-09-21 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: This change broke building Qt. A small standalone reproducer: https://martin.st/temp/qtgui-preproc2.cpp To inspect: ``` $ clang -target armv7-w64-mingw32 -w -c qtgui-preproc2.cpp -o out.o -std=gnu++17 $ llvm-nm out.o | grep _ZN19QWindowSystemHelperIN22QWindowSystemInterface20Asy

[clang] 1818ca5 - Revert "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585)"

2024-09-21 Thread Martin Storsjö via cfe-commits
Author: Martin Storsjö Date: 2024-09-21T23:24:49+03:00 New Revision: 1818ca5c4ae87ed222a18177caa7c8dde6c67efa URL: https://github.com/llvm/llvm-project/commit/1818ca5c4ae87ed222a18177caa7c8dde6c67efa DIFF: https://github.com/llvm/llvm-project/commit/1818ca5c4ae87ed222a18177caa7c8dde6c67efa.diff

[libclc] [llvm] [libclc] Refactor build system to allow in-tree builds (PR #87622)

2024-09-21 Thread Aaron Puchert via cfe-commits
@@ -167,12 +181,14 @@ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libclc.pc DESTINATION "${CMAKE_INSTAL install( DIRECTORY generic/include/clc DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" ) if( ENABLE_RUNTIME_SUBNORMAL ) - add_library( subnormal_use_default STATIC -generic/

[clang-tools-extra] [modularize] Avoid repeated hash lookups (NFC) (PR #109508)

2024-09-21 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/109508 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] da38e1d - [modularize] Avoid repeated hash lookups (NFC) (#109508)

2024-09-21 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-09-21T14:01:16-07:00 New Revision: da38e1d5a962b45fd95034fc0a00f26526ec3c70 URL: https://github.com/llvm/llvm-project/commit/da38e1d5a962b45fd95034fc0a00f26526ec3c70 DIFF: https://github.com/llvm/llvm-project/commit/da38e1d5a962b45fd95034fc0a00f26526ec3c70.diff L

[clang-tools-extra] [modularize] Avoid repeated hash lookups (NFC) (PR #109508)

2024-09-21 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/109508 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] issue-63565: community requested small QoL fix for more configurabili… (PR #108005)

2024-09-21 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > `FlagConfigProvider` is pushed in the vector after `.clangd` config in > [CLangdMain.cpp](https://github.com/llvm/llvm-project/blob/a4586bd2d4fa7d6c0100893496a9383fd581e2e9/clang-tools-extra/clangd/tool/ClangdMain.cpp#L926) > Then > [ConfigProvider.cpp](https://github.c

[clang-tools-extra] issue-63565: community requested small QoL fix for more configurabili… (PR #108005)

2024-09-21 Thread Nathan Ridge via cfe-commits
@@ -230,6 +230,10 @@ class Parser { if (auto AllScopes = boolValue(N, "AllScopes")) F.AllScopes = *AllScopes; }); +Dict.handle("ArgumentLists", [&](Node &N) { + if (auto ArgumentLists = scalarValue(N, "ArgumentLists")) HighCommander4

[clang-tools-extra] issue-63565: community requested small QoL fix for more configurabili… (PR #108005)

2024-09-21 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 requested changes to this pull request. Thanks, this is looking pretty good. My only remaining request is to please split the formatting changes out. I know it's the fault of the code not being clang-format clean, and I'm happy to merge them in a separate PR, b

[clang-tools-extra] issue-63565: community requested small QoL fix for more configurabili… (PR #108005)

2024-09-21 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 925b220ee424f8489bc8d7b1a247f2c5f3edde5d 49ca6ddee1003aaf58f076da5c2ee6767acbf939 --e

[clang-tools-extra] issue-63565: community requested small QoL fix for more configurabili… (PR #108005)

2024-09-21 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/108005 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] issue-63565: community requested small QoL fix for more configurabili… (PR #108005)

2024-09-21 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/108005 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bbca451 - [CMake] Preserve clang-prebolt

2024-09-21 Thread via cfe-commits
Author: Amir Ayupov Date: 2024-09-21T20:56:21-07:00 New Revision: bbca451be01fb02d05c2d0586b061fd5611d80ba URL: https://github.com/llvm/llvm-project/commit/bbca451be01fb02d05c2d0586b061fd5611d80ba DIFF: https://github.com/llvm/llvm-project/commit/bbca451be01fb02d05c2d0586b061fd5611d80ba.diff L

[clang] [llvm] [CMake] Preserve clang-prebolt (PR #109351)

2024-09-21 Thread Amir Ayupov via cfe-commits
https://github.com/aaupov closed https://github.com/llvm/llvm-project/pull/109351 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CMake] Preserve clang-prebolt (PR #109351)

2024-09-21 Thread Amir Ayupov via cfe-commits
https://github.com/aaupov edited https://github.com/llvm/llvm-project/pull/109351 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [modularize] Avoid repeated hash lookups (NFC) (PR #109508)

2024-09-21 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/109508 >From d50b829fd1277736b7e65886879fcfe9a45714f2 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 20 Sep 2024 13:31:12 -0700 Subject: [PATCH 1/2] [modularize] Avoid repeated hash lookups (NFC) --- cl

[clang-tools-extra] [modularize] Avoid repeated hash lookups (NFC) (PR #109508)

2024-09-21 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: Revised the patch. Please take a look. Thanks! https://github.com/llvm/llvm-project/pull/109508 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Remove __is_nullptr from the list of type traits (PR #109533)

2024-09-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nikolas Klauser (philnik777) Changes Support for `__is_nullptr` was removed in #99038, but I forgot to remove it from the list of type traits, resulting in Clang crashing when one tries to use it. --- Full diff: https://github.com/llvm/

[clang-tools-extra] [modularize] Avoid repeated hash lookups (NFC) (PR #109508)

2024-09-21 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/109508 >From d50b829fd1277736b7e65886879fcfe9a45714f2 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 20 Sep 2024 13:31:12 -0700 Subject: [PATCH 1/3] [modularize] Avoid repeated hash lookups (NFC) --- cl

[clang] [Clang] Remove __is_nullptr from the list of type traits (PR #109533)

2024-09-21 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/109533 Support for `__is_nullptr` was removed in #99038, but I forgot to remove it from the list of type traits, resulting in Clang crashing when one tries to use it. >From db8690cdbc2a218692d8fc83398beecf8853bae

[clang-tools-extra] [modularize] Avoid repeated hash lookups (NFC) (PR #109508)

2024-09-21 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 0cab475d1126305dc1bbb2ba269e40d704dfb90f 39dea55ef4af49f1d855d78a70a5b5f535e44405 --e

[clang] d296902 - [Clang] Remove __is_nullptr from the list of type traits

2024-09-21 Thread Nikolas Klauser via cfe-commits
Author: Nikolas Klauser Date: 2024-09-21T18:38:15+02:00 New Revision: d2969022640a94b26b7324241e13d67080554d9f URL: https://github.com/llvm/llvm-project/commit/d2969022640a94b26b7324241e13d67080554d9f DIFF: https://github.com/llvm/llvm-project/commit/d2969022640a94b26b7324241e13d67080554d9f.dif

[clang] [llvm] [KCFI][NFC] Rename the !kcfi_type Function metadata to !cfi_type (PR #109080)

2024-09-21 Thread Fangrui Song via cfe-commits
MaskRay wrote: I understand the intention to generalize naming, but I feel that there is significance chance that the over-generalization may not work with the alternative CFI schemes, and this change could turn out to be needed when the other schemes go with different IR constructs. I feel t

[clang] [llvm] [KCFI][NFC] Rename the !kcfi_type Function metadata to !cfi_type (PR #109080)

2024-09-21 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay requested changes to this pull request. . https://github.com/llvm/llvm-project/pull/109080 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SPARC] Align i128 to 16 bytes in SPARC datalayouts (PR #106951)

2024-09-21 Thread via cfe-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/106951 >From 3eb96009b0b483553c2255893d26e59b8c4f6574 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Mon, 2 Sep 2024 12:01:04 +0700 Subject: [PATCH 1/3] [SPARC] Align i128 to 16 bytes in SPARC datalayouts Align i128s to

[clang] [clang][bytecode] Create dummy pointers for ObjCStringLiterals (PR #109520)

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

[clang] [lld] [llvm] Stablefunctest2 (PR #109522)

2024-09-21 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 8527861179ac7771bae09e2fcb0eece4b589d747 e5ace714e5424afd855c678344bce0aca13ba2ac --e

[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)

2024-09-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/108949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Retain the expanding index for unevaluated type constraints (PR #109518)

2024-09-21 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/109518 >From 1deb74f00b518eb595dbe49be3234a05c3753c6f Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sat, 21 Sep 2024 12:48:27 +0800 Subject: [PATCH 1/2] [Clang][Sema] Retain the expanding index for unevaluated typ

[clang] [Driver][Sparc] Default to -mcpu=v9 for 32-bit Linux/sparc64 (PR #109278)

2024-09-21 Thread Rainer Orth via cfe-commits
rorth wrote: Good, that considerably simplifies non-native testing: - The original patch ignored the issue because I had no idea how to handle it. - The first version of this one used the hack of checking `uname -v`. While this works, it's still wrong since this checks the host distro, not the

[clang] 39e3050 - [Driver][Sparc] Default to -mcpu=v9 for 32-bit Linux/sparc64 (#109278)

2024-09-21 Thread via cfe-commits
Author: Rainer Orth Date: 2024-09-21T19:53:35+02:00 New Revision: 39e30508a7f6ec5477b11611946a491af5ebdeda URL: https://github.com/llvm/llvm-project/commit/39e30508a7f6ec5477b11611946a491af5ebdeda DIFF: https://github.com/llvm/llvm-project/commit/39e30508a7f6ec5477b11611946a491af5ebdeda.diff L

[clang] [Driver][Sparc] Default to -mcpu=v9 for 32-bit Linux/sparc64 (PR #109278)

2024-09-21 Thread Rainer Orth via cfe-commits
https://github.com/rorth closed https://github.com/llvm/llvm-project/pull/109278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Don't call checkLiteralType() in visitInitializer() (PR #109530)

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

[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)

2024-09-21 Thread Rainer Orth via cfe-commits
rorth wrote: This patch broke the [Solaris/sparcv9 buildbot](https://lab.llvm.org/buildbot/#/builders/13/builds/2437). The two affected tests use `-triple x86_64-linux-gnu` without requiring x86 support. https://github.com/llvm/llvm-project/pull/108949

[clang] f86050d - [clang][bytecode] Don't call checkLiteralType() in visitInitializer() (#109530)

2024-09-21 Thread via cfe-commits
Author: Timm Baeder Date: 2024-09-21T20:01:21+02:00 New Revision: f86050de738385ecc27e7ce827f72296be8def36 URL: https://github.com/llvm/llvm-project/commit/f86050de738385ecc27e7ce827f72296be8def36 DIFF: https://github.com/llvm/llvm-project/commit/f86050de738385ecc27e7ce827f72296be8def36.diff L

[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)

2024-09-21 Thread Timm Baeder via cfe-commits
tbaederr wrote: Is x86-solaris11-sparcv9 the right triple to use to reproduce issues for that builder? https://github.com/llvm/llvm-project/pull/108949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [Clang][Sema] Retain the expanding index for unevaluated type constraints (PR #109518)

2024-09-21 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/109518 Fixes #101754 >From f09bb393dc173ba47af49ecf4da6ecfcf969adb1 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sat, 21 Sep 2024 12:48:27 +0800 Subject: [PATCH] [Clang][Sema] Retain the expanding index for uneva

[clang] [Clang][Sema] Retain the expanding index for unevaluated type constraints (PR #109518)

2024-09-21 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 c28e268c32a6840d08e3a4dbc9eeb8a0f564d6c0 f09bb393dc173ba47af49ecf4da6ecfcf969adb1 --e

[clang] [Clang][Sema] Retain the expanding index for unevaluated type constraints (PR #109518)

2024-09-21 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/109518 >From 1deb74f00b518eb595dbe49be3234a05c3753c6f Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sat, 21 Sep 2024 12:48:27 +0800 Subject: [PATCH] [Clang][Sema] Retain the expanding index for unevaluated type co

[clang-tools-extra] [clang-tidy] support static analyzer checker configuration in `--verify-config` (PR #109523)

2024-09-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Julian Schmidt (5chmidti) Changes Previously the configuration options for the Clang Static Analyzer checkers were not recognized for the verification of the configuration with `--verify-config`. Add all available configuration

[clang-tools-extra] [clang-tidy] support static analyzer checker configuration in `--verify-config` (PR #109523)

2024-09-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Julian Schmidt (5chmidti) Changes Previously the configuration options for the Clang Static Analyzer checkers were not recognized for the verification of the configuration with `--verify-config`. Add all available configuration options

[clang-tools-extra] [clang-tidy] support static analyzer checker configuration in `--verify-config` (PR #109523)

2024-09-21 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti created https://github.com/llvm/llvm-project/pull/109523 Previously the configuration options for the Clang Static Analyzer checkers were not recognized for the verification of the configuration with `--verify-config`. Add all available configuration options of CSA ch

[clang] f5a65d8 - [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (#108949)

2024-09-21 Thread via cfe-commits
Author: yronglin Date: 2024-09-21T17:05:24+08:00 New Revision: f5a65d8752f26245744ae3e1365cc3ac283c2638 URL: https://github.com/llvm/llvm-project/commit/f5a65d8752f26245744ae3e1365cc3ac283c2638 DIFF: https://github.com/llvm/llvm-project/commit/f5a65d8752f26245744ae3e1365cc3ac283c2638.diff LOG:

[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)

2024-09-21 Thread via cfe-commits
https://github.com/yronglin closed https://github.com/llvm/llvm-project/pull/108949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Create dummy pointers for ObjCStringLiterals (PR #109520)

2024-09-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 10 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/5901 Here is the r

[clang-tools-extra] [clang-tidy] modernize-use-nullptr matches "NULL" in templates (PR #109169)

2024-09-21 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti approved this pull request. https://github.com/llvm/llvm-project/pull/109169 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [mlir] Make MMIWP not have ownership over MMI + Make MMI Only Use an External MCContext (PR #105541)

2024-09-21 Thread Matin Raayai via cfe-commits
matinraayai wrote: @aeubanks @arsenm after looking into this in more detail, I realized that the `getContext` method of `MMI` is heavily used in the `AsmPrinter` to create symbols. Also not having it makes it harder for the `MMI` to create machine functions using `getOrCreateMachineFunction`.

[clang] [Clang][Sema] Retain the expanding index for unevaluated type constraints (PR #109518)

2024-09-21 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/109518 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Retain the expanding index for unevaluated type constraints (PR #109518)

2024-09-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes (This continues the effort of #86265, fixing another piece of issue in constraint evaluation on variadic lambdas.) We need the depth of the primary template parameters for constraint substitution. To that e

[clang] [Clang][Sema] Retain the expanding index for unevaluated type constraints (PR #109518)

2024-09-21 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 ready_for_review https://github.com/llvm/llvm-project/pull/109518 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Retain the expanding index for unevaluated type constraints (PR #109518)

2024-09-21 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/109518 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Retain the expanding index for unevaluated type constraints (PR #109518)

2024-09-21 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/109518 >From 1deb74f00b518eb595dbe49be3234a05c3753c6f Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sat, 21 Sep 2024 12:48:27 +0800 Subject: [PATCH 1/3] [Clang][Sema] Retain the expanding index for unevaluated typ

[clang] [clang-offload-bundler] Avoid repeated hash lookups (NFC) (PR #109507)

2024-09-21 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/109507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5b4c80f - [clang][bytecode] Create dummy pointers for ObjCStringLiterals (#109520)

2024-09-21 Thread via cfe-commits
Author: Timm Baeder Date: 2024-09-21T10:33:02+02:00 New Revision: 5b4c80f1234f176c19bdbe687861e7f076ec189a URL: https://github.com/llvm/llvm-project/commit/5b4c80f1234f176c19bdbe687861e7f076ec189a DIFF: https://github.com/llvm/llvm-project/commit/5b4c80f1234f176c19bdbe687861e7f076ec189a.diff L

[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)

2024-09-21 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/108949 >From 3601f708847f70485fae640c5b5d96fed965e7c3 Mon Sep 17 00:00:00 2001 From: yronglin Date: Tue, 17 Sep 2024 17:39:47 +0800 Subject: [PATCH 1/5] [clang][bytecode] Implement arithmetic, bitwise and compound as

[clang] [clang][bytecode] Fix reporting non-constant variables in C (PR #109516)

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

[clang] Updated and renamed README.txt to README.md (PR #106198)

2024-09-21 Thread via cfe-commits
github-actions[bot] wrote: @tarik-celik 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 bu

[clang] [clang][bytecode] Create dummy pointers for ObjCStringLiterals (PR #109520)

2024-09-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/109520 We need to have the final APValue point to the ObjCStringLiteral expression, not the StringLiteral itself. >From ca2960bcb2307c415547ef12fa3628aec4d4d702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4

[clang] [clang][bytecode] Create dummy pointers for ObjCStringLiterals (PR #109520)

2024-09-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We need to have the final APValue point to the ObjCStringLiteral expression, not the StringLiteral itself. --- Full diff: https://github.com/llvm/llvm-project/pull/109520.diff 2 Files Affected: - (modifie

[clang] c57b9f5 - [clang][bytecode] Fix reporting non-constant variables in C (#109516)

2024-09-21 Thread via cfe-commits
Author: Timm Baeder Date: 2024-09-21T09:58:56+02:00 New Revision: c57b9f5a138d9a7ce0744e4fdb85ff31dc5f2cac URL: https://github.com/llvm/llvm-project/commit/c57b9f5a138d9a7ce0744e4fdb85ff31dc5f2cac DIFF: https://github.com/llvm/llvm-project/commit/c57b9f5a138d9a7ce0744e4fdb85ff31dc5f2cac.diff L

[clang] Updated and renamed README.txt to README.md (PR #106198)

2024-09-21 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/106198 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Diagnose weak reads in final load (PR #109515)

2024-09-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot8` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/4125 Here is the relevant piece of the

[clang] [C++20][Modules] Restore inliness of constexpr/consteval functions defined in-class (PR #109470)

2024-09-21 Thread via cfe-commits
@@ -9760,8 +9760,8 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC, if (getLangOpts().CPlusPlus) { // The rules for implicit inlines changed in C++20 for methods and friends // with an in-class definition (when such a definition is not attac

[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)

2024-09-21 Thread via cfe-commits
https://github.com/yronglin edited https://github.com/llvm/llvm-project/pull/108949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)

2024-09-21 Thread via cfe-commits
@@ -10,11 +10,229 @@ using FourI128VecSize __attribute__((vector_size(64))) = __int128; using FourCharsExtVec __attribute__((ext_vector_type(4))) = char; using FourIntsExtVec __attribute__((ext_vector_type(4))) = int; +using FourLongLongsExtVec __attribute__((ext_vector_type(

[clang-tools-extra] [clangd] Implement simple folding of preprocessor branches (PR #80592)

2024-09-21 Thread Ruihua Dong via cfe-commits
https://github.com/144026 closed https://github.com/llvm/llvm-project/pull/80592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix reporting non-constant variables in C (PR #109516)

2024-09-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We need to call FFDiag() to get the usual "invalid subexpression" diagnostic. --- Full diff: https://github.com/llvm/llvm-project/pull/109516.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Inte

[clang] [clang][bytecode] Fix reporting non-constant variables in C (PR #109516)

2024-09-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/109516 We need to call FFDiag() to get the usual "invalid subexpression" diagnostic. >From 568f6ecc3540fca57d2a7abaae99c9f07c737714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 21 Sep 2024

[clang] 97aa8cc - [clang][bytecode] Diagnose weak reads in final load (#109515)

2024-09-21 Thread via cfe-commits
Author: Timm Baeder Date: 2024-09-21T09:10:31+02:00 New Revision: 97aa8cc94d94e8f0adc85489f7832ba7c0a9b577 URL: https://github.com/llvm/llvm-project/commit/97aa8cc94d94e8f0adc85489f7832ba7c0a9b577 DIFF: https://github.com/llvm/llvm-project/commit/97aa8cc94d94e8f0adc85489f7832ba7c0a9b577.diff L

[clang] [clang][bytecode] Diagnose weak reads in final load (PR #109515)

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

[clang-tools-extra] fc5de0a - [clang-tools-extra] Use {} instead of std::nullopt to initialize empty ArrayRef (#109400)

2024-09-21 Thread via cfe-commits
Author: Jay Foad Date: 2024-09-21T10:57:26+01:00 New Revision: fc5de0af33b7fb9b9f745e70dcd351f2de4211cb URL: https://github.com/llvm/llvm-project/commit/fc5de0af33b7fb9b9f745e70dcd351f2de4211cb DIFF: https://github.com/llvm/llvm-project/commit/fc5de0af33b7fb9b9f745e70dcd351f2de4211cb.diff LOG:

[clang-tools-extra] [clang-tools-extra] Use {} instead of std::nullopt to initialize empty ArrayRef (PR #109400)

2024-09-21 Thread Jay Foad via cfe-commits
https://github.com/jayfoad closed https://github.com/llvm/llvm-project/pull/109400 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Don't call checkLiteralType() in visitInitializer() (PR #109530)

2024-09-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We were calling checkLiteralType() too many time and rejecting some things we shouldn't. Add The calls manually when handling MaterializeTemporaryExprs. Maybe we should call it in other places as well, but a

[clang] [libclang/python] Fix evaluation of the unsigned enumeration values, #108766 (PR #108769)

2024-09-21 Thread Dmitry Fursov via cfe-commits
https://github.com/fursov edited https://github.com/llvm/llvm-project/pull/108769 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Don't call checkLiteralType() in visitInitializer() (PR #109530)

2024-09-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/109530 We were calling checkLiteralType() too many time and rejecting some things we shouldn't. Add The calls manually when handling MaterializeTemporaryExprs. Maybe we should call it in other places as well, but add

[clang] [libclang/python] Fix evaluation of the unsigned enumeration values, #108766 (PR #108769)

2024-09-21 Thread Dmitry Fursov via cfe-commits
@@ -1952,6 +1952,8 @@ def enum_value(self): underlying_type = self.type if underlying_type.kind == TypeKind.ENUM: underlying_type = underlying_type.get_declaration().enum_type +if underlying_type.kind == TypeKind.ELABORATED: -

[clang] [clang-offload-bundler] Avoid repeated hash lookups (NFC) (PR #109507)

2024-09-21 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/109507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8d0336c - [clang-offload-bundler] Avoid repeated hash lookups (NFC) (#109507)

2024-09-21 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-09-21T09:10:49-07:00 New Revision: 8d0336c14be9d1f99e5c2b5791d8f4df35725ff2 URL: https://github.com/llvm/llvm-project/commit/8d0336c14be9d1f99e5c2b5791d8f4df35725ff2 DIFF: https://github.com/llvm/llvm-project/commit/8d0336c14be9d1f99e5c2b5791d8f4df35725ff2.diff L