LLVM/project cce2b5aclang-tools-extra/clang-tidy/readability RedundantParenthesesCheck.cpp, clang-tools-extra/docs ReleaseNotes.rst

[clang-tidy] Support parentheses around subscript operators in readability-redundant-parentheses (#208759)

Subscript operators have the same operator procedure as function calls.

Treat overloaded `()` as built-in operators as a drive-by. I missed this
case when reviewing #192254.
DeltaFile
+21-0clang-tools-extra/test/clang-tidy/checkers/readability/redundant-parentheses.cpp
+4-1clang-tools-extra/clang-tidy/readability/RedundantParenthesesCheck.cpp
+2-0clang-tools-extra/docs/ReleaseNotes.rst
+27-13 files

LLVM/project 72af746clang/include/clang/Sema DeclSpec.h, clang/lib/Parse ParseDecl.cpp

Reject auto combined with type specifiers in C++ (#208552)

Follow-up of https://github.com/llvm/llvm-project/pull/166004

- Diagnose C++ declarations that combine `auto` with another type
specifier, such as `auto int` .
- Preserve C/C23 handling where `auto` can still be interpreted as a
storage-class specifier in valid combinations.
- Fix parser disambiguation so `auto Use = 0` treats `Use` as the
declarator name before type lookup, avoiding ambiguous lookup
regressions.

---------

Signed-off-by: Osama Abdelkader <osama.abdelkader at gmail.com>
DeltaFile
+163-0clang/lib/Sema/DeclSpec.cpp
+57-48clang/test/CXX/dcl.dcl/dcl.spec/dcl.stc/p2.cpp
+51-2clang/include/clang/Sema/DeclSpec.h
+32-6clang/lib/Parse/ParseDecl.cpp
+28-2clang/test/SemaCXX/auto-cxx0x.cpp
+9-7clang/test/CXX/drs/cwg3xx.cpp
+340-659 files not shown
+382-7915 files

OPNSense/core c35c8desrc/opnsense/mvc/app/controllers/OPNsense/Firewall FilterController.php

Firewall: Rules: Adapt getAdvancedIds() to the sectioned form structure introduced in 3d9cccfe (#10521)
DeltaFile
+4-4src/opnsense/mvc/app/controllers/OPNsense/Firewall/FilterController.php
+4-41 files

FreeBSD/ports 08924aatextproc/py-wcmatch distinfo Makefile

textproc/py-wcmatch: update to 11.0

Changes:        https://github.com/facelessuser/wcmatch/releases/tag/11.0
Reported by:    repology
DeltaFile
+3-3textproc/py-wcmatch/distinfo
+1-1textproc/py-wcmatch/Makefile
+4-42 files

FreeBSD/src 86691d5sys/x86/include kvm.h

kvm: Support non-default CPUID leaf

KVM does not always use 0x40000000 as its CPUID base. For example, QEMU
adds a 0x100 offset when nested virtualization is detected and the host
exposes Hyper-V enlightenment hints. To accommodate this behavior,
switch the detection logic to use the CPUID leaf returned by do_cpuid(),
making the implementation more flexible.

See:
https://github.com/qemu/qemu/blob/master/target/i386/kvm/kvm.c#L2300

Reviewed by:    kib
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58146
DeltaFile
+3-4sys/x86/include/kvm.h
+3-41 files

LLVM/project 290279bllvm/lib/Target/ARM ARMAsmPrinter.cpp ARMISelLowering.cpp, llvm/test/CodeGen/ARM weak-hidden-pic.ll elf-preemption.ll

[ARM] Use .reloc for weak symbols in PIC mode instead of GOT indirection (#208372)

In ARM ELF PIC mode, weak symbols referenced via the constant pool use a
PC-relative expression like `.long sym-(.LPC+8)`. The assembler eagerly
resolves this when both the symbol and reference are in the same
section, which prevents the linker from overriding a weak definition
with a strong one from another object file.

The previous approach (#198577) forced weak symbols to go through GOT
indirection to avoid this, but that adds an extra load. This patch
instead emits a `.reloc` directive alongside the local PC-relative
expression, forcing the assembler to emit a proper `R_ARM_REL32`
relocation. This lets the linker perform the override without the
runtime cost of a GOT load.
DeltaFile
+30-0llvm/lib/Target/ARM/ARMAsmPrinter.cpp
+8-6llvm/test/CodeGen/ARM/weak-hidden-pic.ll
+3-8llvm/lib/Target/ARM/ARMISelLowering.cpp
+6-4llvm/test/CodeGen/ARM/elf-preemption.ll
+0-9llvm/lib/Target/ARM/ARMTargetMachine.h
+1-2llvm/lib/Target/ARM/ARMSubtarget.cpp
+48-291 files not shown
+49-317 files

OPNSense/core c5e4dffsrc/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api TrafficController.php, src/opnsense/scripts/interfaces traffic_stats.php

statistics: when interfaces disabled
DeltaFile
+4-1src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api/TrafficController.php
+2-2src/opnsense/scripts/interfaces/traffic_stats.php
+6-32 files

LLVM/project ff1c952lldb/include/lldb/Expression IRMemoryMap.h, lldb/source/Expression IRMemoryMap.cpp IRInterpreter.cpp

[LLDB] Detect Memory overlapping between AllocateMemory and MemoryInfo

IRMemoryMap estimates a free address range using memory information.
However, the memory returns by AllocateMemory can overlap with the
ranges reported by MemoryInfo (internally backed by PT_VM_ENTRY),
because the kernel is unaware of allocations made during the probing
process.

As a result, two allocatios may silently insert duplicate key for
different objects, leading to intermittent test failure. The issue is
nodeterministic because it depends on the underlying malloc
implementation and ASLR.

Fix this by detecting overlapping allocations after AllocateMemory. If
an overlap is found, fall back to the address-guessing path, which
perform the necessary overlap checks before committing the allocation.

Also, return and print  message in IRInterpreter in unsecessful allocation.
DeltaFile
+49-1lldb/source/Expression/IRMemoryMap.cpp
+6-1lldb/source/Expression/IRInterpreter.cpp
+6-0lldb/include/lldb/Expression/IRMemoryMap.h
+61-23 files

OPNSense/core 8682ebasrc/opnsense/mvc/app/controllers/OPNsense/Firewall FilterController.php

Firewall: Rules: Adapt getAdvancedIds() to the sectioned form structure introduced in 3d9cccfe
DeltaFile
+4-4src/opnsense/mvc/app/controllers/OPNsense/Firewall/FilterController.php
+4-41 files

NetBSD/pkgsrc cP95tUkdoc CHANGES-2026

   doc: Updated net/py-stone to 3.5.0
VersionDeltaFile
1.4389+2-1doc/CHANGES-2026
+2-11 files

NetBSD/pkgsrc jU5l82mnet/py-stone distinfo Makefile

   py-stone: update to 3.5.0.

   Update PyPI publish OIDC role to repository-wide role name by @rhui-dbx in #367
   Fix packaging: SPDX license, drop ez_setup, ship complete test sdist (#368, #343) by @AndreyVMarkelov in #369
   Bump version to 3.5.0 by @AndreyVMarkelov in #371
VersionDeltaFile
1.13+4-4net/py-stone/distinfo
1.17+2-4net/py-stone/Makefile
+6-82 files

FreeBSD/ports ab97a05devel/bear distinfo Makefile.crates

devel/bear: Update to 4.1.5
DeltaFile
+73-113devel/bear/distinfo
+35-55devel/bear/Makefile.crates
+2-2devel/bear/Makefile
+1-1devel/bear/pkg-plist
+111-1714 files

LLVM/project ced9fa3clang/test/Interpreter emulated-tls.cpp

[clang][test] Fix emulated-tls.cpp failure on LoongArch (#208886)

The LoongArch backend does not support emulated TLS, so
mark the test as unsupported to fix the LoongArch buildbot
failure.

Failure: https://lab.llvm.org/staging/#/builders/20/builds/28875
DeltaFile
+3-0clang/test/Interpreter/emulated-tls.cpp
+3-01 files

NetBSD/pkgsrc Z26lT9ldoc TODO

   doc/TODO: add some

   + pkgconf-3.0.0, prometheus-3.13.1, rumdl-0.2.30, rust-1.97.0,
     tabiew-0.14.1.
VersionDeltaFile
1.27556+6-2doc/TODO
+6-21 files

LLVM/project e2223e6llvm/lib/Target/AArch64/GISel AArch64InstructionSelector.cpp, llvm/test/CodeGen/AArch64 shuffles.ll shuffle-slide-to-shift.ll

[AArch64][GlobalISel] Fold G_SHUFFLE to single-element TBL with zero elements. (#200938)

A TBL with out-of-range values will place zero into the respective
vector lane. Use this to generate a more efficient 1 operand TBL where
possible.
DeltaFile
+39-39llvm/test/CodeGen/AArch64/GlobalISel/select-shuffle-vector.mir
+45-7llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
+15-35llvm/test/CodeGen/AArch64/shuffles.ll
+14-33llvm/test/CodeGen/AArch64/shuffle-slide-to-shift.ll
+11-22llvm/test/CodeGen/AArch64/neon-bitwise-instructions.ll
+14-14llvm/test/CodeGen/AArch64/arm64-neon-aba-abd.ll
+138-1506 files not shown
+170-19312 files

LLVM/project b2f93b1offload/test/offloading/fortran declare-target-common-block-main.f90

[OpenMP][Offload] Fix flang offload test (#208829)

This PR attempts to address the remaining flang offload test failure
after https://github.com/llvm/llvm-project/pull/208617. Bot:
https://lab.llvm.org/buildbot/#/builders/67/builds/8412

The problem with is test is that `foo__l8` kernel was not linked into
device image without explicitly use the amdgpu-amd-amdhsa triple in the
compilation. It only happened to this specific test.

Local test results after fix:
```
Testing Time: 146.44s

 Total Discovered Tests: 3478
   Skipped          :   77 (2.21%)
   Unsupported      :  341 (9.80%)
   Passed           : 3055 (87.84%)
   Expectedly Failed:    5 (0.14%)
```
DeltaFile
+1-1offload/test/offloading/fortran/declare-target-common-block-main.f90
+1-11 files

LLVM/project 0730f68clang-tools-extra/clang-tidy/misc ConstCorrectnessCheck.cpp, clang-tools-extra/test/clang-tidy/checkers/misc const-correctness-values.cpp const-correctness-auto-parameters.cpp

[clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (#157319)

Fixes #60789.

Currently, the check will never make `auto` variables `const`. Here's
the relevant bit of code:


https://github.com/llvm/llvm-project/blob/6b200e21adec0e28407def6fcb2e6c7359fd881b/clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp#L108-L110

Notice how the matcher's name is `AutoTemplateType`, but it has nothing
to do with templates. What it *was* intended to do, I'm not sure, but
excluding all `auto` variables can't be right.

For lambdas, this is the only justification I can find:


https://github.com/llvm/llvm-project/blob/36627e1724504d783dc1cbc466666516d28260e4/clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-values.cpp#L30-L34


    [9 lines not shown]
DeltaFile
+37-7clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-values.cpp
+32-0clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-auto-parameters.cpp
+26-4clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp
+22-0clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-auto.cpp
+14-0clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-lambdas.cpp
+13-0clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-pointers.cpp
+144-117 files not shown
+176-1913 files

LLVM/project 616eec2clang/test/Interpreter emulated-tls.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+3-0clang/test/Interpreter/emulated-tls.cpp
+3-01 files

LLVM/project 4d58566llvm/lib/Target/AArch64/GISel AArch64LegalizerInfo.cpp, llvm/test/CodeGen/AArch64/GlobalISel legalize-shift.mir

[GlobalISel][AArch64] Improve legalization of shift amounts (#208676)

Fixes crashes when the shift amount type is already between s32 and s64,
but not s32 or s64.

The shift amount should have the same type with the shifted value for
the shift instructions, so add the same `widenScalarToNextPow2`
legalization that we apply to the shifted value, to the shift amount.

Fixes crashes in programs like:

    define i8 @test(i48 %a) {
    entry:
      %b = lshr i48 %a, 15
      %c = trunc i48 %b to i8
      ret i8 %c
    }

The new test crashes before this PR.
DeltaFile
+24-0llvm/test/CodeGen/AArch64/GlobalISel/legalize-shift.mir
+1-0llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
+25-02 files

OPNSense/src 58af921sys/dev/ice ice_lib.c ice_adminq_cmd.h

ice(4): Add support for 40G maximal PMD speed

E823 backplane devices may support 40G as maximal PMD speed.
Extend port topology reading logic to handle this case.
While at that fix indentation according to FreeBSD style(9).

Signed-off-by: Krzysztof Galazka <krzysztof.galazka at intel.com>

Tested by:      gowtham.kumar.ks_intel.com
Approved by:    kbowling (mentor), erj (mentor)
Sponsored by:   Intel Corporation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53587

(cherry picked from commit c6212b7da110d82b1d0086ec525deb216993021e)
DeltaFile
+4-3sys/dev/ice/ice_lib.c
+1-0sys/dev/ice/ice_adminq_cmd.h
+5-32 files

FreeBSD/ports 80fa423german/wordpress distinfo, russian/wordpress distinfo

{german,russian}/wordpress: Regenerate distinfo

Upstream appears to have rerolled the tarballs to update the
translations. I compared the new tarballs with the previously
downloaded ones and confirmed that the translations are the only
differences.
DeltaFile
+3-3german/wordpress/distinfo
+3-3russian/wordpress/distinfo
+6-62 files

FreeBSD/ports 8a51429security/p11-kit distinfo pkg-plist

security/p11-kit: update to 0.26.4
DeltaFile
+3-3security/p11-kit/distinfo
+1-1security/p11-kit/pkg-plist
+1-1security/p11-kit/Makefile
+5-53 files

OPNSense/plugins b59cf8esecurity/intrusion-detection-content-at-antiphishing/src/opnsense/scripts/suricata/metadata/rules julioliraup-antiphing.xml

Add julioliraup antiphishing ruleset (#5547)

* Add julioliraup/Antiphishing ruleset

* Add julioliraup/Antiphishing ruleset on Suricata with .tar.gz #5536
DeltaFile
+5-7security/intrusion-detection-content-at-antiphishing/src/opnsense/scripts/suricata/metadata/rules/julioliraup-antiphing.xml
+5-71 files

OpenBSD/ports YwH2x08audio/mpd distinfo Makefile

   audio/mpd: update to 0.24.13.

   see https://raw.githubusercontent.com/MusicPlayerDaemon/MPD/v0.24.13/NEWS
VersionDeltaFile
1.78+2-2audio/mpd/distinfo
1.164+1-1audio/mpd/Makefile
+3-32 files

NetBSD/src yBGp810sys/arch/aarch64/aarch64 locore.S

   Make CPU_* macros available for locore_el2.S
VersionDeltaFile
1.106+38-37sys/arch/aarch64/aarch64/locore.S
+38-371 files

OpenBSD/ports tOzftoXgeo/mapserver distinfo Makefile

   geo/mapserver: MFC security update to 8.6.5.

   see https://mapserver.org/development/changelog/changelog-8-6.html#changes-from-8-6-4-to-8-6-5
   and https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5 for
   the list of GHSA
VersionDeltaFile
1.44.2.3+2-2geo/mapserver/distinfo
1.111.2.3+1-1geo/mapserver/Makefile
+3-32 files

OpenBSD/ports xvZSmPygeo/mapserver distinfo Makefile

   geo/mapserver: security update to 8.6.5.

   see https://mapserver.org/development/changelog/changelog-8-6.html#changes-from-8-6-4-to-8-6-5
   and https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5 for
   the list of GHSA
VersionDeltaFile
1.47+2-2geo/mapserver/distinfo
1.114+1-1geo/mapserver/Makefile
+3-32 files

LLVM/project 1a8a53forc-rt/lib/executor Logging.cpp, orc-rt/test/unit LoggingTest.cpp

[orc-rt] Hold log level names as uppercase (#208880)

orc_rt_log_Level_getName is used primarily in text prefixes (e.g. the
upcoming printf backend's "[orc-rt:General:LEVEL]"), where uppercase is
the intended rendering. Storing the names as uppercase lets the backend
use them directly without case conversion. orc_rt_log_Level_parse
performs a case-insensitive parse, so ORC_RT_LOG=info and similar still
work.

[orc-rt] Hold log level names as uppercase.

orc_rt_log_Level_getName is expected to be primarily used in
text-prefixes (e.g. in the upcoming printf backend), where it should be
printed as uppercase. Storing as uppercase in the first place will save
us a toupper conversion on each log call.
DeltaFile
+5-5orc-rt/test/unit/LoggingTest.cpp
+3-3orc-rt/lib/executor/Logging.cpp
+8-82 files

NetBSD/src Y2eEk4cexternal/gpl3/gdb/dist/gdb aarch64-netbsd-tdep.c

   whitespace
VersionDeltaFile
1.6+1-1external/gpl3/gdb/dist/gdb/aarch64-netbsd-tdep.c
+1-11 files

LLVM/project 9686a56llvm/tools/llvm-c-test echo.cpp

Address CI Failure. Add BSRType in llvm-c-test
DeltaFile
+2-0llvm/tools/llvm-c-test/echo.cpp
+2-01 files