https://github.com/frasercrmck updated
https://github.com/llvm/llvm-project/pull/146840
>From 185d2fe1bc4a6237b7f42c27bb2c85fe77db3adb Mon Sep 17 00:00:00 2001
From: Fraser Cormack
Date: Thu, 3 Jul 2025 10:45:05 +0100
Subject: [PATCH 1/2] [libclc] Reduce include usage in OpenCL builtins
This c
@@ -6,5 +6,12 @@
//
//===--===//
+#ifndef __CLC_OPENCL_OPENCL_INTEGER_ABS_H__
frasercrmck wrote:
Ah it's because I copied it incorrectly from `__CLC_OPENCL_OPENCL_BASE_H__`
which does need
https://github.com/tomershafir updated
https://github.com/llvm/llvm-project/pull/146896
>From 10e9d8f141c0a31ecc189b3365d5d18c65c7ae4b Mon Sep 17 00:00:00 2001
From: tomershafir
Date: Thu, 3 Jul 2025 16:53:26 +0300
Subject: [PATCH 1/2] [Clang][AArch64] Remove redundant tune args to the
backend
@@ -0,0 +1,341 @@
+//===- LifetimeMove.cpp - Narrowing lifetimes
-===//
+//
+// 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
https://github.com/frasercrmck updated
https://github.com/llvm/llvm-project/pull/146503
>From 40f82d88c4a190fd63a2aff8abc53ea22dce10f5 Mon Sep 17 00:00:00 2001
From: Fraser Cormack
Date: Mon, 30 Jun 2025 10:59:02 +0100
Subject: [PATCH 1/4] [libclc] Place libclc files in clang's resource dir
--
Author: Fraser Cormack
Date: 2025-07-04T11:08:00+01:00
New Revision: 222e795347c14afce49df1540926f3a1ae493de4
URL:
https://github.com/llvm/llvm-project/commit/222e795347c14afce49df1540926f3a1ae493de4
DIFF:
https://github.com/llvm/llvm-project/commit/222e795347c14afce49df1540926f3a1ae493de4.diff
https://github.com/frasercrmck updated
https://github.com/llvm/llvm-project/pull/146503
>From dab23ab5f4737618fb3f2852738447e66b9b1bff Mon Sep 17 00:00:00 2001
From: Fraser Cormack
Date: Mon, 30 Jun 2025 10:59:02 +0100
Subject: [PATCH 1/4] [libclc] Place libclc files in clang's resource dir
--
https://github.com/vbvictor edited
https://github.com/llvm/llvm-project/pull/143193
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -176,25 +176,43 @@ StringRef sys::detail::getHostCPUNameForARM(StringRef
ProcCpuinfoContent) {
SmallVector Lines;
ProcCpuinfoContent.split(Lines, '\n');
- // Look for the CPU implementer line.
+ // Look for the CPU implementer and hardware lines, and store the CPU pa
https://github.com/timon-ul created
https://github.com/llvm/llvm-project/pull/147042
Implementation for https://github.com/clangd/clangd/issues/2203
>From 464db70ca20e0924d37ebf6c5147721e382d5063 Mon Sep 17 00:00:00 2001
From: Timon Ulrich
Date: Wed, 2 Jul 2025 15:23:46 +0200
Subject: [PATCH
llvmbot wrote:
@llvm/pr-subscribers-clang-tools-extra
Author: None (timon-ul)
Changes
Implementation for https://github.com/clangd/clangd/issues/2203
---
Full diff: https://github.com/llvm/llvm-project/pull/147042.diff
2 Files Affected:
- (modified) clang-tools-extra/clangd/XRefs.cpp
llvmbot wrote:
@llvm/pr-subscribers-clangd
Author: None (timon-ul)
Changes
Implementation for https://github.com/clangd/clangd/issues/2203
---
Full diff: https://github.com/llvm/llvm-project/pull/147042.diff
2 Files Affected:
- (modified) clang-tools-extra/clangd/XRefs.cpp (+2-1)
- (
@@ -144,7 +144,8 @@ TaggedUnionMemberCountCheck::getNumberOfEnumValues(const
EnumDecl *ED) {
if (EnableCountingEnumHeuristic && LastEnumConstant &&
isCountingEnumLikeName(LastEnumConstant->getName()) &&
- (LastEnumConstant->getInitVal() == (EnumValues.size() - 1)
https://github.com/djtodoro updated
https://github.com/llvm/llvm-project/pull/146913
>From a3b50d1a95f4ae76af98e25502a7bdb950592d38 Mon Sep 17 00:00:00 2001
From: Djordje Todorovic
Date: Thu, 3 Jul 2025 14:03:14 +0200
Subject: [PATCH 1/2] [llvm-objcopy][libObject] Add RISC-V big-endian support
https://github.com/Maetveis closed
https://github.com/llvm/llvm-project/pull/146656
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Mészáros Gergely
Date: 2025-07-04T11:53:10+02:00
New Revision: be63b2309a6ac0012682732430464c256524271e
URL:
https://github.com/llvm/llvm-project/commit/be63b2309a6ac0012682732430464c256524271e
DIFF:
https://github.com/llvm/llvm-project/commit/be63b2309a6ac0012682732430464c256524271e.di
@@ -452,6 +457,8 @@ Triple::ArchType Triple::getArchTypeForLLVMName(StringRef
Name) {
.Case("amdgcn", amdgcn)
.Case("riscv32", riscv32)
.Case("riscv64", riscv64)
+.Case("riscv32be", riscv32be)
djtodoro wrote:
yeah... I agree
https://github.co
@@ -74,8 +74,10 @@ class Triple {
ppc64le,// PPC64LE: powerpc64le
r600, // R600: AMD GPUs HD2XXX - HD6XXX
amdgcn, // AMDGCN: AMD GCN GPUs
-riscv32,// RISC-V (32-bit): riscv32
-riscv64,// RISC-V (64-bit): riscv64
+
https://github.com/NagyDonat edited
https://github.com/llvm/llvm-project/pull/146664
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -2053,6 +2086,8 @@ bool Triple::isLittleEndian() const {
case Triple::renderscript64:
case Triple::riscv32:
case Triple::riscv64:
+ case Triple::riscv32be:
+ case Triple::riscv64be:
djtodoro wrote:
Ouch, fixed.
https://github.com/llvm/llvm-project/
https://github.com/djtodoro updated
https://github.com/llvm/llvm-project/pull/146913
>From a3b50d1a95f4ae76af98e25502a7bdb950592d38 Mon Sep 17 00:00:00 2001
From: Djordje Todorovic
Date: Thu, 3 Jul 2025 14:03:14 +0200
Subject: [PATCH 1/4] [llvm-objcopy][libObject] Add RISC-V big-endian support
@@ -6,5 +6,12 @@
//
//===--===//
+#ifndef __CLC_OPENCL_OPENCL_INTEGER_ABS_H__
frasercrmck wrote:
Oh, yes. And of course I'd copy/pasted the mistake to all files...
https://github.com/llvm/l
https://github.com/melver updated
https://github.com/llvm/llvm-project/pull/142955
>From ff8f6e28e3adca1877ff2d16292aa8e23b7bfb9c Mon Sep 17 00:00:00 2001
From: Marco Elver
Date: Wed, 21 May 2025 23:49:48 +0200
Subject: [PATCH] Thread Safety Analysis: Very basic capability alias-analysis
Add a
melver wrote:
Some more self-review, and fixes:
- Rename createVariable() -> translateVarDecl() for clarify.
- Reintroduce createThisPlaceholder() for clarify.
- Handle escaping aliases through pass by-non-const-ref (or pointer), and add
more tests.
https://github.com/llvm/llvm-project/pull/14
github-actions[bot] wrote:
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
You can test this locally with the following command:
``bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp --
clang-tools-extra/clang-tidy/bugprone/TaggedUnionMemb
https://github.com/gjasny updated
https://github.com/llvm/llvm-project/pull/147048
>From 2585b9c7744b04328adb0fc9400665598e995d8e Mon Sep 17 00:00:00 2001
From: Gregor Jasny
Date: Fri, 4 Jul 2025 13:19:22 +0100
Subject: [PATCH] [clang-tidy] fix compilation by disambiguating equality
operator
@@ -986,7 +986,7 @@ class LineJoiner {
void join(AnnotatedLine &A, const AnnotatedLine &B) {
assert(!A.Last->Next);
assert(!B.First->Previous);
-if (B.Affected)
+if (B.Affected || (B.LeadingEmptyLinesAffected &&
A.Last->Children.empty()))
tJe
https://github.com/hoodmane updated
https://github.com/llvm/llvm-project/pull/147076
>From ba4e21486455fcee36e5521050562cd9be35e9b4 Mon Sep 17 00:00:00 2001
From: Hood Chatham
Date: Sat, 10 May 2025 22:01:09 -0400
Subject: [PATCH 1/5] [WebAssembly] Add ref.test_func handling to AsmParser
---
pogo59 wrote:
I see attributes such as `"target-cpu"="x86-64"
"target-features"="+fxsr,+mmx,+sse,+sse2,+x87"` in the IR; I don't know where
those come from, but deleting them will probably fix the Sparc bot.
https://github.com/llvm/llvm-project/pull/141937
_
@@ -2681,27 +2693,16 @@ void MallocChecker::HandleOffsetFree(CheckerContext &C,
SVal ArgVal,
void MallocChecker::HandleUseAfterFree(CheckerContext &C, SourceRange Range,
SymbolRef Sym) const {
-
- if (!ChecksEnabled[CK_MallocChecker] &&
@@ -2098,6 +2098,58 @@ Check the size argument passed into C string functions
for common erroneous patt
// warn: potential buffer overflow
}
+.. _unix-cstring-MissingTerminatingZero:
+
+unix.cstring.MissingTerminatingZero (C)
+"""
+Ch
https://github.com/melver updated
https://github.com/llvm/llvm-project/pull/142955
>From 0964bd446b730fd7c832bc8e3645320d3777627d Mon Sep 17 00:00:00 2001
From: Marco Elver
Date: Wed, 21 May 2025 23:49:48 +0200
Subject: [PATCH] Thread Safety Analysis: Very basic capability alias-analysis
Add a
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running
on `hip-vega20-0` while building `clang,llvm,mlir` at step 3 "annotate".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/123/builds/22644
Here is the relevant piece of the bu
@@ -0,0 +1,295 @@
+//=== MissingTerminatingZeroChecker.cpp -*- 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: Ap
@@ -192,6 +192,31 @@ class CodeGenOptions : public CodeGenOptionsBase {
return getProfileUse() == llvm::driver::ProfileCSIRInstr;
}
+ /// Controls the various implementations for complex division.
s-watanabe314 wrote:
Thank you for providing the exampl
@@ -0,0 +1,295 @@
+//=== MissingTerminatingZeroChecker.cpp -*- 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: Ap
Author: Fraser Cormack
Date: 2025-07-04T10:35:15+01:00
New Revision: 81e6552a3d6835c4e10eb981402febfac9df6156
URL:
https://github.com/llvm/llvm-project/commit/81e6552a3d6835c4e10eb981402febfac9df6156
DIFF:
https://github.com/llvm/llvm-project/commit/81e6552a3d6835c4e10eb981402febfac9df6156.diff
https://github.com/frasercrmck closed
https://github.com/llvm/llvm-project/pull/146833
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/tomershafir updated
https://github.com/llvm/llvm-project/pull/146896
>From 10e9d8f141c0a31ecc189b3365d5d18c65c7ae4b Mon Sep 17 00:00:00 2001
From: tomershafir
Date: Thu, 3 Jul 2025 16:53:26 +0300
Subject: [PATCH 1/2] [Clang][AArch64] Remove redundant tune args to the
backend
https://github.com/NagyDonat edited
https://github.com/llvm/llvm-project/pull/146664
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
sjoerdmeijer wrote:
> It is already documented in [Clang command line argument
> reference](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-floop-interchange)
> (perhaps this is automatically generated based on
> [`clang/Driver/Options.td`](https://github.com/llvm/ll
https://github.com/djtodoro updated
https://github.com/llvm/llvm-project/pull/146913
>From a3b50d1a95f4ae76af98e25502a7bdb950592d38 Mon Sep 17 00:00:00 2001
From: Djordje Todorovic
Date: Thu, 3 Jul 2025 14:03:14 +0200
Subject: [PATCH 1/3] [llvm-objcopy][libObject] Add RISC-V big-endian support
https://github.com/frasercrmck edited
https://github.com/llvm/llvm-project/pull/146503
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Mariya Podchishchaeva (Fznamznon)
Changes
In ms-compatibility mode we inject static_assert macro definition if
assert macro is defined. This is done by
8da090381d567d0ec555840f6b2a651d2997e4b3
for the sake of better diagnosing, in particul
https://github.com/Fznamznon created
https://github.com/llvm/llvm-project/pull/147030
In ms-compatibility mode we inject static_assert macro definition if
assert macro is defined. This is done by
8da090381d567d0ec555840f6b2a651d2997e4b3
for the sake of better diagnosing, in particular to emit a
@@ -163,17 +163,6 @@ getAArch64MicroArchFeaturesFromMtune(const Driver &D,
StringRef Mtune,
if (!DecodeAArch64Mcpu(D, MtuneLowerCase, Tune, Extensions))
return false;
tomershafir wrote:
ok, I planned to simplify in a followup patch, but simplified this
https://github.com/rj-jesus updated
https://github.com/llvm/llvm-project/pull/146515
>From 7857d5536c4145bc3b2c797222b25f3533db518f Mon Sep 17 00:00:00 2001
From: Ricardo Jesus
Date: Wed, 2 Apr 2025 10:37:59 -0700
Subject: [PATCH 1/3] [AArch64] Add support for -mcpu=gb10.
This patch adds suppo
https://github.com/vbvictor edited
https://github.com/llvm/llvm-project/pull/143193
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vbvictor edited
https://github.com/llvm/llvm-project/pull/143193
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,29 @@
+//==- BuiltinsRISCVXAndes.td - RISC-V Andes Builtin database -*- 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
https://github.com/tomershafir updated
https://github.com/llvm/llvm-project/pull/146896
>From 10e9d8f141c0a31ecc189b3365d5d18c65c7ae4b Mon Sep 17 00:00:00 2001
From: tomershafir
Date: Thu, 3 Jul 2025 16:53:26 +0300
Subject: [PATCH 1/2] [Clang][AArch64] Remove redundant tune args to the
backend
@@ -0,0 +1,159 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
+// RUN: %clang_cc1 -triple riscv32 -target-feature +xandesperf -emit-llvm %s
-o - \
wangpc-pp wrote:
Run mem2ssa?
https://github.com/llvm/llvm-project/pull/147018
https://github.com/zhy-tju created
https://github.com/llvm/llvm-project/pull/147036
Linked issue #147000
Clang currently emits duplicate diagnostics when encountering an incomplete
type in a nested name specifier (e.g., `incomplete::type`) in C++20 or later.
This is due to multiple semantic anal
github-actions[bot] wrote:
Thank you for submitting a Pull Request (PR) to the LLVM Project!
This PR will be automatically labeled and the relevant teams will be notified.
If you wish to, you can add reviewers by using the "Reviewers" section on this
page.
If this is not working for you, it
llvmbot wrote:
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-backend-amdgpu
Author: None (zhy-tju)
Changes
Linked issue #147000
Clang currently emits duplicate diagnostics when encountering an incomplete
type in a nested name specifier (e.g., `incomplete::type`) in C++20 or later.
This i
llvmbot wrote:
@llvm/pr-subscribers-mlir-amdgpu
Author: None (zhy-tju)
Changes
Linked issue #147000
Clang currently emits duplicate diagnostics when encountering an incomplete
type in a nested name specifier (e.g., `incomplete::type`) in C++20 or later.
This is due to multiple semantic ana
llvmbot wrote:
@llvm/pr-subscribers-mlir-gpu
Author: None (zhy-tju)
Changes
Linked issue #147000
Clang currently emits duplicate diagnostics when encountering an incomplete
type in a nested name specifier (e.g., `incomplete::type`) in C++20 or later.
This is due to multiple semantic analys
https://github.com/zhy-tju updated
https://github.com/llvm/llvm-project/pull/147036
>From 4b098e63f1c1aa8bb4c7d4d1966a22c236a9ff17 Mon Sep 17 00:00:00 2001
From: zhy <2697737...@qq.com>
Date: Fri, 4 Jul 2025 16:50:03 +0800
Subject: [PATCH 1/3] [Clang] Duplicate diagnostics in C++20+ mode
---
c
Sirraide wrote:
> In that case WYGIWYD (what you get is what you deserve) applies.
Sgtm; I’ll leave the clang-tidy side of things as-is then and just update the
test to reflect this.
https://github.com/llvm/llvm-project/pull/143520
___
cfe-commits ma
@@ -144,7 +144,8 @@ TaggedUnionMemberCountCheck::getNumberOfEnumValues(const
EnumDecl *ED) {
if (EnableCountingEnumHeuristic && LastEnumConstant &&
isCountingEnumLikeName(LastEnumConstant->getName()) &&
- (LastEnumConstant->getInitVal() == (EnumValues.size() - 1)
@@ -144,7 +144,8 @@ TaggedUnionMemberCountCheck::getNumberOfEnumValues(const
EnumDecl *ED) {
if (EnableCountingEnumHeuristic && LastEnumConstant &&
isCountingEnumLikeName(LastEnumConstant->getName()) &&
- (LastEnumConstant->getInitVal() == (EnumValues.size() - 1)
https://github.com/gjasny updated
https://github.com/llvm/llvm-project/pull/147048
>From df2f97dcf1c6febd152fe6aed8d60681a93acb8d Mon Sep 17 00:00:00 2001
From: Gregor Jasny
Date: Fri, 4 Jul 2025 13:19:22 +0100
Subject: [PATCH] [clang-tidy] fix compilation by disambiguating equality
operator
https://github.com/Sirraide approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/146394
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Corentin Jabot
Date: 2025-07-04T16:40:29+03:00
New Revision: af2bb8f826050402fa9c6a6be8475808dcb63df0
URL:
https://github.com/llvm/llvm-project/commit/af2bb8f826050402fa9c6a6be8475808dcb63df0
DIFF:
https://github.com/llvm/llvm-project/commit/af2bb8f826050402fa9c6a6be8475808dcb63df0.diff
https://github.com/cor3ntin closed
https://github.com/llvm/llvm-project/pull/146890
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vbvictor wrote:
> That's probably happening due to incomplete C++20 support in either Clang 14
> or the GNU libstdc++ 12.
Current standard that LLVM use is c++17. But we generally should support
compilers at [least 3 years of
compilers](https://llvm.org/docs/DeveloperPolicy.html#updating-tool
https://github.com/vbvictor edited
https://github.com/llvm/llvm-project/pull/147048
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `hip-third-party-libs-test`
running on `ext_buildbot_hw_05-hip-docker` while building `clang` at step 4
"annotate".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/206/builds/2781
Here is the relevant
@@ -144,7 +144,8 @@ TaggedUnionMemberCountCheck::getNumberOfEnumValues(const
EnumDecl *ED) {
if (EnableCountingEnumHeuristic && LastEnumConstant &&
isCountingEnumLikeName(LastEnumConstant->getName()) &&
- (LastEnumConstant->getInitVal() == (EnumValues.size() - 1)
https://github.com/Sirraide updated
https://github.com/llvm/llvm-project/pull/143520
>From 15c0a79d6a0cd65d88fbe152275b224201e632a1 Mon Sep 17 00:00:00 2001
From: Sirraide
Date: Tue, 10 Jun 2025 14:32:32 +0200
Subject: [PATCH 1/6] [Clang] [Diagnostics] Simplify filenames that contain
'..'
---
mathstuf wrote:
I don't really care how things are spelled as long as they're possible. Don't
take what CMake does for `clang-cl` and modules as gospel as it is very much
not declared as supported at all. We can rework how CMake constructs command
lines for `clang-cl` and modules as needed.
h
cor3ntin wrote:
> but causes a crash ([example](https://godbolt.org/z/oo198z8Gh)). So I haven't
> added those cases, but left a `TODO`. Should I leave a `TODO: PR 146649`
> instead?
I opened [147046](https://github.com/llvm/llvm-project/pull/147046)
https://github.com/llvm/llvm-project/pul
https://github.com/negativ created
https://github.com/llvm/llvm-project/pull/147066
This change enhances the `bugprone-unhandled-self-assignment` checker by adding
an additional matcher that generalizes the copy-and-swap idiom pattern
detection.
# What Changed
Added a new matcher that checks
github-actions[bot] wrote:
Thank you for submitting a Pull Request (PR) to the LLVM Project!
This PR will be automatically labeled and the relevant teams will be notified.
If you wish to, you can add reviewers by using the "Reviewers" section on this
page.
If this is not working for you, it
https://github.com/negativ ready_for_review
https://github.com/llvm/llvm-project/pull/147066
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang-tidy
@llvm/pr-subscribers-clang-tools-extra
Author: Andrey Karlov (negativ)
Changes
This change enhances the `bugprone-unhandled-self-assignment` checker by adding
an additional matcher that generalizes the copy-and-swap idiom pattern
detection.
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Haojian Wu (hokein)
Changes
This patch stops storing a source range in `CXXOperatorCallExpr` and keeps only
the begin location.
This change allows us to retain the optimization #141058 when switching
to 64-bit source locations.
Performa
llvmbot wrote:
@llvm/pr-subscribers-clang-modules
Author: Haojian Wu (hokein)
Changes
This patch stops storing a source range in `CXXOperatorCallExpr` and keeps only
the begin location.
This change allows us to retain the optimization #141058 when switching
to 64-bit source locations.
https://github.com/hokein created
https://github.com/llvm/llvm-project/pull/147028
This patch stops storing a source range in `CXXOperatorCallExpr` and keeps only
the begin location.
This change allows us to retain the optimization #141058 when switching to
64-bit source locations.
Performan
https://github.com/kasuga-fj commented:
It is already documented in [Clang command line argument
reference](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-floop-interchange)
(perhaps this is automatically generated based on
[`clang/Driver/Options.td`](https://github
@@ -2098,6 +2098,58 @@ Check the size argument passed into C string functions
for common erroneous patt
// warn: potential buffer overflow
}
+.. _unix-cstring-MissingTerminatingZero:
+
+unix.cstring.MissingTerminatingZero (C)
+"""
+Ch
@@ -9,6 +9,7 @@
#ifndef FORTRAN_OPTIMIZER_CODEGEN_CODEGEN_H
#define FORTRAN_OPTIMIZER_CODEGEN_CODEGEN_H
+#include "flang/Frontend/CodeGenOptions.h"
s-watanabe314 wrote:
Thank you for the reviews!
> Not requesting to do that here, but I feel the CodeGenOptions
@@ -0,0 +1,295 @@
+//=== MissingTerminatingZeroChecker.cpp -*- 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: Ap
https://github.com/tomershafir updated
https://github.com/llvm/llvm-project/pull/146896
>From 10e9d8f141c0a31ecc189b3365d5d18c65c7ae4b Mon Sep 17 00:00:00 2001
From: tomershafir
Date: Thu, 3 Jul 2025 16:53:26 +0300
Subject: [PATCH 1/2] [Clang][AArch64] Remove redundant tune args to the
backend
madhur13490 wrote:
I see. I can drop this, but I couldn't find a link from the User Manual to the
[Clang command line argument
reference](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-floop-interchange).
Is there one?
https://github.com/llvm/llvm-project/pull/1470
https://github.com/NagyDonat approved this pull request.
LGTM, thanks for the updates!
Before merging the commit consider adding a note to the PR description / commit
message that in the case of `strlcat` you use `size` as an approximation of the
exact `amountCopied`.
https://github.com/llvm/
https://github.com/vbvictor commented:
Patch LGTM, but it may have to be approved by one of clangd's maintainers that
I added.
You should also add `NFC` in the title if you have non-functional changes.
https://github.com/llvm/llvm-project/pull/143193
___
https://github.com/frasercrmck approved this pull request.
Brill, thanks
https://github.com/llvm/llvm-project/pull/146999
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -158,9 +158,9 @@ class CXXOperatorCallExpr final : public CallExpr {
: getOperatorLoc();
}
- SourceLocation getBeginLoc() const { return Range.getBegin(); }
- SourceLocation getEndLoc() const { return Range.getEnd(); }
- SourceRange getSourceRange() cons
@@ -0,0 +1,121 @@
+//===--- AvoidPlatformSpecificFundamentalTypesCheck.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-Ide
@@ -0,0 +1,121 @@
+//===--- AvoidPlatformSpecificFundamentalTypesCheck.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-Ide
https://github.com/EugeneZelenko edited
https://github.com/llvm/llvm-project/pull/146970
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,121 @@
+//===--- AvoidPlatformSpecificFundamentalTypesCheck.cpp - clang-tidy
+//---===//
EugeneZelenko wrote:
Please merge with previous line.
https://github.com/llvm/llvm-project/pull/146970
___
Author: Kazu Hirata
Date: 2025-07-04T07:56:28-07:00
New Revision: a465e35908b65563c7be96a9cc514c38e1bf8b8e
URL:
https://github.com/llvm/llvm-project/commit/a465e35908b65563c7be96a9cc514c38e1bf8b8e
DIFF:
https://github.com/llvm/llvm-project/commit/a465e35908b65563c7be96a9cc514c38e1bf8b8e.diff
L
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/146985
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,43 @@
+//===--- AvoidPlatformSpecificFundamentalTypesCheck.h - clang-tidy ---*-
C++
+//-*-===//
EugeneZelenko wrote:
Please merge with previous line.
https://github.com/llvm/llvm-project/pull/146970
___
https://github.com/EugeneZelenko commented:
Please add Release Notes entry.
https://github.com/llvm/llvm-project/pull/146970
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,111 @@
+.. title:: clang-tidy - portability-avoid-platform-specific-fundamental-types
+
+portability-avoid-platform-specific-fundamental-types
+=
+
+Finds fundamental types and recommends using typedefs or fixed-width
https://github.com/labrinea created
https://github.com/llvm/llvm-project/pull/147073
Supports option 2 of https://github.com/ARM-software/acle/issues/403
depends on option 1 https://github.com/llvm/llvm-project/pull/146092
>From c5bd398ad9116a29f363be4f0b9ec54fca0d7016 Mon Sep 17 00:00:00 2001
@@ -144,7 +144,7 @@ TaggedUnionMemberCountCheck::getNumberOfEnumValues(const
EnumDecl *ED) {
if (EnableCountingEnumHeuristic && LastEnumConstant &&
isCountingEnumLikeName(LastEnumConstant->getName()) &&
- (LastEnumConstant->getInitVal() == (EnumValues.size() - 1)
1 - 100 of 361 matches
Mail list logo