https://github.com/tbaederr updated
https://github.com/llvm/llvm-project/pull/102824
>From d996308e8420f7735095c1118430531509e9264d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Sun, 11 Aug 2024 19:52:51 +0200
Subject: [PATCH] [clang][Interp] Fix diagnosing uninitialized ne
https://github.com/ChuanqiXu9 closed
https://github.com/llvm/llvm-project/pull/102850
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/CoTinker updated
https://github.com/llvm/llvm-project/pull/101639
>From a1d5fffca7b8a63efa338f1aeac3a516145ca569 Mon Sep 17 00:00:00 2001
From: Longsheng Mou
Date: Fri, 2 Aug 2024 16:36:31 +0800
Subject: [PATCH 1/2] [X86_64] Fix empty field error in vaarg of C++.
Such struct
https://github.com/ChuanqiXu9 reopened
https://github.com/llvm/llvm-project/pull/102850
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/ChuanqiXu9 reopened
https://github.com/llvm/llvm-project/pull/102850
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/ChuanqiXu9 closed
https://github.com/llvm/llvm-project/pull/102850
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/ChuanqiXu9 updated
https://github.com/llvm/llvm-project/pull/102850
>From 598ce1867b5ac36aa6da48be0556bb637ce1ddb0 Mon Sep 17 00:00:00 2001
From: Chuanqi Xu
Date: Mon, 12 Aug 2024 13:31:35 +0800
Subject: [PATCH] [Serialization] Add a callback to register new created
predefin
https://github.com/nikic approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/102841
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/ChuanqiXu9 closed
https://github.com/llvm/llvm-project/pull/102850
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Mariya Podchishchaeva
Date: 2024-08-12T09:08:46+02:00
New Revision: d469794d0cdfd2fea50a6ce0c0e33abb242d744c
URL:
https://github.com/llvm/llvm-project/commit/d469794d0cdfd2fea50a6ce0c0e33abb242d744c
DIFF:
https://github.com/llvm/llvm-project/commit/d469794d0cdfd2fea50a6ce0c0e33abb242d74
https://github.com/Fznamznon closed
https://github.com/llvm/llvm-project/pull/102605
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/ChuanqiXu9 created
https://github.com/llvm/llvm-project/pull/102855
Close https://github.com/llvm/llvm-project/issues/102684
The root cause of the issue is, it is possible that the predefined decl is not
registered at the beginning of writing a module file but got created du
llvmbot wrote:
@llvm/pr-subscribers-clang-modules
Author: Chuanqi Xu (ChuanqiXu9)
Changes
Close https://github.com/llvm/llvm-project/issues/102684
The root cause of the issue is, it is possible that the predefined decl is not
registered at the beginning of writing a module file but got c
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 cb372bd5e789a7d5f1945b476e643d4abfd18f35
598ce1867b5ac36aa6da48be0556bb637ce1ddb0 --e
@@ -2122,6 +2122,36 @@ TARGET_BUILTIN(__builtin_ia32_vpdpwuud256,
"V8iV8iV8iV8i", "nV:256:", "avxvnniin
TARGET_BUILTIN(__builtin_ia32_vpdpwuuds128, "V4iV4iV4iV4i", "nV:128:",
"avxvnniint16|avx10.2-256")
TARGET_BUILTIN(__builtin_ia32_vpdpwuuds256, "V8iV8iV8iV8i", "nV:256:",
"a
https://github.com/phoebewang deleted
https://github.com/llvm/llvm-project/pull/102592
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/s-barannikov updated
https://github.com/llvm/llvm-project/pull/102841
>From 8382e3ed0a5546fff4ed662a7abbaa39e2f0c22a Mon Sep 17 00:00:00 2001
From: Sergei Barannikov
Date: Mon, 12 Aug 2024 04:08:54 +0300
Subject: [PATCH] [DataLayout] Remove constructor accepting a pointer to
vitalybuka wrote:
> I am not sure what is going on there, maybe it needs // UNSUPPORTED: asan
>
> I am not going to reland, it's just a notice, to make sure you noticed the
> revert.
Looks like it some kind of flakiness in the test. It returned
https://lab.llvm.org/buildbot/#/builders/52/bui
https://github.com/zyn0217 created
https://github.com/llvm/llvm-project/pull/102857
Some things are not completed yet:
- [ ] CWG2369 for lambdas. We currently don't perform the concept checking
before the substitution into lambdas because that requires us to
put/instantiate captures to the sc
https://github.com/vitalybuka created
https://github.com/llvm/llvm-project/pull/102859
It's very flaky recently.
Issue #102858
>From fcf5476d8e8ef543a50d33b379c79e761374b9ee Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Mon, 12 Aug 2024 00:42:28 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Vitaly Buka (vitalybuka)
Changes
It's very flaky recently.
Issue #102858
---
Full diff: https://github.com/llvm/llvm-project/pull/102859.diff
1 Files Affected:
- (modified) clang/test/Interpreter/const.cpp (+3)
``diff
diff
stefanpantic-pdftools wrote:
FYI: this breaks the tool:
```bash
git clang-format --binary /usr/bin/clang-format --extensions $INPUT_EXTENSIONS
--diff origin/$INPUT_TARGET_BRANCH origin/$INPUT_SOURCE_BRANCH
`/usr/bin/clang-format -list-ignored` returned 1
clang-format: Unknown command line argum
https://github.com/Dhruv-Srivastava-IBM converted_to_draft
https://github.com/llvm/llvm-project/pull/102601
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
owenca wrote:
You need to use the clang-format built from this patch, which adds the new
clang-format `-list-ignored` option.
https://github.com/llvm/llvm-project/pull/102629
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.o
stefanpantic-pdftools wrote:
Gotcha, thanks!
https://github.com/llvm/llvm-project/pull/102629
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
zmodem wrote:
> no. I do not want that complicated file structure. I just want normal GNU
> style's sysroot.
>
> x86_64-windows-msvc sysroot should have exact the same file struct as
> x86_64-windows-gnu.
The -msvc triples are designed to work with libraries from MSVC and the Windows
SDK. We
https://github.com/balazske updated
https://github.com/llvm/llvm-project/pull/102580
From 08367f06167d8b12ee4de06a37915decd1e754e5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?=
Date: Fri, 9 Aug 2024 09:31:55 +0200
Subject: [PATCH 1/3] [clang][analyzer] Remove array bounds c
Ritanya-B-Bharadwaj wrote:
ping
https://github.com/llvm/llvm-project/pull/101627
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
hahnjo wrote:
Quick question for my understanding: With `spr` we don't get meaningful commit
messages anymore? That's quite unfortunate...
https://github.com/llvm/llvm-project/pull/102859
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https:/
Author: Donát Nagy
Date: 2024-08-12T10:34:54+02:00
New Revision: b68086241b2f386fc5cc53af2b3ee90624104dc4
URL:
https://github.com/llvm/llvm-project/commit/b68086241b2f386fc5cc53af2b3ee90624104dc4
DIFF:
https://github.com/llvm/llvm-project/commit/b68086241b2f386fc5cc53af2b3ee90624104dc4.diff
LO
https://github.com/NagyDonat closed
https://github.com/llvm/llvm-project/pull/102456
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -50,6 +101,44 @@ class BuiltinFunctionChecker : public Checker {
} // namespace
+void BuiltinFunctionChecker::HandleOverflowBuiltin(const CallEvent &Call,
+ CheckerContext &C,
+
https://github.com/NagyDonat edited
https://github.com/llvm/llvm-project/pull/102602
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -5637,6 +5638,27 @@ static bool EvaluateUnaryTypeTrait(Sema &Self, TypeTrait
UTT,
return false;
case UTT_IsTriviallyEqualityComparable:
return isTriviallyEqualityComparableType(Self, T, KeyLoc);
+ case UTT_IsImplicitLifetime: {
+DiagnoseVLAInCXXTypeTrait(Self
https://github.com/Endilll edited
https://github.com/llvm/llvm-project/pull/101807
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/MitalAshok edited
https://github.com/llvm/llvm-project/pull/101807
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/MitalAshok edited
https://github.com/llvm/llvm-project/pull/101807
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/yingopq updated
https://github.com/llvm/llvm-project/pull/99615
>From f8a34c8015269cfc53666e9e28a2cb1290e96e70 Mon Sep 17 00:00:00 2001
From: Ying Huang
Date: Fri, 19 Jul 2024 04:19:09 -0400
Subject: [PATCH] [clang] Support -Wa, options -mmsa and -mno-msa
---
clang/include/
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux`
running on `sanitizer-buildbot2` while building `clang` at step 2 "annotate".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/66/builds/2746
Here is the relevant piece of the bu
@@ -2507,6 +2507,7 @@ static void CollectArgsForIntegratedAssembler(Compilation
&C,
bool Crel = false, ExperimentalCrel = false;
bool UseRelaxRelocations = C.getDefaultToolChain().useRelaxRelocations();
bool UseNoExecStack = false;
+ bool Msa = false;
y
Author: Jeremy Morse
Date: 2024-08-12T09:49:55+01:00
New Revision: d12250ca7bea22ed12caf44fe80b203d83db75bb
URL:
https://github.com/llvm/llvm-project/commit/d12250ca7bea22ed12caf44fe80b203d83db75bb
DIFF:
https://github.com/llvm/llvm-project/commit/d12250ca7bea22ed12caf44fe80b203d83db75bb.diff
https://github.com/yingopq updated
https://github.com/llvm/llvm-project/pull/99615
>From f8a34c8015269cfc53666e9e28a2cb1290e96e70 Mon Sep 17 00:00:00 2001
From: Ying Huang
Date: Fri, 19 Jul 2024 04:19:09 -0400
Subject: [PATCH] [clang] Support -Wa, options -mmsa and -mno-msa
---
clang/include/
https://github.com/zmodem commented:
Thanks! Just some nits from me.
https://github.com/llvm/llvm-project/pull/102848
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -2494,6 +2506,58 @@ void
MicrosoftCXXNameMangler::mangleAddressSpaceType(QualType T,
mangleArtificialTagType(TagTypeKind::Struct, ASMangling, {"__clang"});
}
+void MicrosoftCXXNameMangler::mangleAutoReturnType(QualType T,
+
@@ -408,6 +408,9 @@ class MicrosoftCXXNameMangler {
void mangleSourceName(StringRef Name);
void mangleNestedName(GlobalDecl GD);
+ void mangleAutoReturnType(QualType T, SourceRange Range,
zmodem wrote:
Is the SourceRange actually needed? I see it getting
https://github.com/zmodem edited
https://github.com/llvm/llvm-project/pull/102848
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/a-tarasyuk created
https://github.com/llvm/llvm-project/pull/102864
Fixes #101990
>From d08d3f318ff64b1c7ff06ac3183c8b83de4021ed Mon Sep 17 00:00:00 2001
From: Oleksandr T
Date: Mon, 12 Aug 2024 11:55:52 +0300
Subject: [PATCH] [Clang] handle both gnu and cpp11 attributes to
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Oleksandr T. (a-tarasyuk)
Changes
Fixes #101990
---
Full diff: https://github.com/llvm/llvm-project/pull/102864.diff
3 Files Affected:
- (modified) clang/docs/ReleaseNotes.rst (+1)
- (modified) clang/lib/Parse/ParseDeclCXX.cpp (+4-1)
https://github.com/a-tarasyuk updated
https://github.com/llvm/llvm-project/pull/102864
>From 08f2cc1cadfe81798ea2b07b1e601e6ea67ecf9a Mon Sep 17 00:00:00 2001
From: Oleksandr T
Date: Mon, 12 Aug 2024 12:00:05 +0300
Subject: [PATCH] [Clang] handle both gnu and cpp11 attributes to ensure
correct
https://github.com/Long5hot updated
https://github.com/llvm/llvm-project/pull/77732
>From f463f28b76c3cf9ff4d8a3b7a5522c322258b5a3 Mon Sep 17 00:00:00 2001
From: Kishan Parmar
Date: Mon, 12 Aug 2024 14:27:25 +0530
Subject: [PATCH] [clang][PowerPC] Add flag to enable compatibility with GNU
for
Author: Balázs Kéri
Date: 2024-08-12T11:22:30+02:00
New Revision: e607360fcde2994080bb8cec9d4be3a4091fe9a9
URL:
https://github.com/llvm/llvm-project/commit/e607360fcde2994080bb8cec9d4be3a4091fe9a9
DIFF:
https://github.com/llvm/llvm-project/commit/e607360fcde2994080bb8cec9d4be3a4091fe9a9.diff
L
https://github.com/balazske closed
https://github.com/llvm/llvm-project/pull/102580
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
jmorse wrote:
Clang-formatted the declaration I touched in d12250ca7be, the other matters
were already present in the code so I've shied away from addressing them.
https://github.com/llvm/llvm-project/pull/102006
___
cfe-commits mailing list
cfe-commi
https://github.com/ChuanqiXu9 updated
https://github.com/llvm/llvm-project/pull/102855
>From 598ce1867b5ac36aa6da48be0556bb637ce1ddb0 Mon Sep 17 00:00:00 2001
From: Chuanqi Xu
Date: Mon, 12 Aug 2024 13:31:35 +0800
Subject: [PATCH] [Serialization] Add a callback to register new created
predefin
https://github.com/Dhruv-Srivastava-IBM edited
https://github.com/llvm/llvm-project/pull/102601
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/tbaederr created
https://github.com/llvm/llvm-project/pull/102871
None
>From 1f04d85c024520ed0399ce3a363211f77c69d68f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Mon, 12 Aug 2024 11:45:27 +0200
Subject: [PATCH] [clang][Interp] Compile field+base destru
NagyDonat wrote:
> Do you plan to apply more refactors to invalidation and Store?
These were opportunistic unplanned refactors, I was just familiarizing myself
with the invalidation logic (because I'll need to use it in loop widening), and
I quickly fixed some minor issues that I spotted.
How
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
Changes
---
Full diff: https://github.com/llvm/llvm-project/pull/102871.diff
5 Files Affected:
- (modified) clang/lib/AST/Interp/Compiler.cpp (+58-39)
- (modified) clang/lib/AST/Interp/Compiler.h (+1)
- (modifi
Author: Donát Nagy
Date: 2024-08-12T11:48:13+02:00
New Revision: 908c89e04b6019bdb08bb5f1c861af42046db623
URL:
https://github.com/llvm/llvm-project/commit/908c89e04b6019bdb08bb5f1c861af42046db623
DIFF:
https://github.com/llvm/llvm-project/commit/908c89e04b6019bdb08bb5f1c861af42046db623.diff
LO
https://github.com/NagyDonat closed
https://github.com/llvm/llvm-project/pull/102477
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
tbaederr wrote:
LGTM from my side but I added some other reviewers in case they have more
comments.
https://github.com/llvm/llvm-project/pull/102757
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinf
https://github.com/pow2clk created
https://github.com/llvm/llvm-project/pull/102872
Per https://discourse.llvm.org/t/rfc-all-the-math-intrinsics/78294
`dot` should be an LLVM intrinsic. This adds the llvm intrinsics
and updates HLSL builtin codegen to emit them.
Removed some stale comments that
llvmbot wrote:
@llvm/pr-subscribers-backend-directx
Author: Greg Roth (pow2clk)
Changes
Per https://discourse.llvm.org/t/rfc-all-the-math-intrinsics/78294
`dot` should be an LLVM intrinsic. This adds the llvm intrinsics
and updates HLSL builtin codegen to emit them.
Removed some stale com
llvmbot wrote:
@llvm/pr-subscribers-llvm-globalisel
Author: Greg Roth (pow2clk)
Changes
Per https://discourse.llvm.org/t/rfc-all-the-math-intrinsics/78294
`dot` should be an LLVM intrinsic. This adds the llvm intrinsics
and updates HLSL builtin codegen to emit them.
Removed some stale com
llvmbot wrote:
@llvm/pr-subscribers-hlsl
@llvm/pr-subscribers-clang
Author: Greg Roth (pow2clk)
Changes
Per https://discourse.llvm.org/t/rfc-all-the-math-intrinsics/78294
`dot` should be an LLVM intrinsic. This adds the llvm intrinsics
and updates HLSL builtin codegen to emit them.
Remove
omern1 wrote:
> Conventionally, .debug_* sections are reserved for DWARF, even without
> official standards.
GNU strip's default behavior --strip-all, emulated by llvm-objcopy's
--strip-all-gnu option, is roughly to remove non-SHF_ALLOC sections that are
not debug.
> The .llvm prefix holds no
https://github.com/tbaederr updated
https://github.com/llvm/llvm-project/pull/102871
>From c906a9932b68485e40b368cecd7f4b5c83fb47d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Mon, 12 Aug 2024 11:45:27 +0200
Subject: [PATCH] [clang][Interp] Compile field+base destruction
john-brawn-arm wrote:
/cherry-pick b32aac4 c649194 3952910
https://github.com/llvm/llvm-project/pull/99335
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/pow2clk commented:
The three commits are independently committable, but this is the grouping
@farzonl and I agreed on. Reviewing them individually still might make this
easier:
1. Create llvm dot intrinsic (6fde4bc98d0156024cf7acc27e2e986b9bec3993)
2. Update DX intrinsic ex
https://github.com/pow2clk edited
https://github.com/llvm/llvm-project/pull/102872
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -18528,37 +18520,38 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned
BuiltinID,
Value *Op1 = EmitScalarExpr(E->getArg(1));
llvm::Type *T0 = Op0->getType();
llvm::Type *T1 = Op1->getType();
+
+// If the arguments are scalars, just emit a multiply
@@ -659,7 +659,7 @@ def Dot3 : DXILOp<55, dot3> {
def Dot4 : DXILOp<56, dot4> {
let Doc = "dot product of two float vectors Dot(a,b) = a[0]*b[0] + ... + "
-"a[n]*b[n] where n is between 0 and 3";
+"a[n]*b[n] where n is 0 to 3 inclusive";
---
@@ -7,155 +7,155 @@
// RUN: -o - | FileCheck %s --check-prefixes=CHECK,NO_HALF
#ifdef __HLSL_ENABLE_16_BIT
-// NATIVE_HALF: %dx.dot = mul i16 %0, %1
-// NATIVE_HALF: ret i16 %dx.dot
+// NATIVE_HALF: %dot = mul i16 %0, %1
+// NATIVE_HALF: ret i16 %dot
int16_t test_dot_short(
@@ -380,6 +383,20 @@ bool SPIRVInstructionSelector::spvSelect(Register ResVReg,
MIB.addImm(V);
return MIB.constrainAllUses(TII, TRI, RBI);
}
+
+ case TargetOpcode::G_FDOTPROD: {
+MachineBasicBlock &BB = *I.getParent();
+return BuildMI(BB, I, I.getDebugLoc()
@@ -1057,6 +1057,27 @@ def G_FTANH : GenericInstruction {
let hasSideEffects = false;
}
+/// Floating point vector dot product
+def G_FDOTPROD : GenericInstruction {
+ let OutOperandList = (outs type0:$dst);
+ let InOperandList = (ins type0:$src1, type0:$src2);
+ let hasS
Author: Chuanqi Xu
Date: 2024-08-12T18:27:37+08:00
New Revision: 4915fddbb2d79b5d67794b88c23da8d296968d0e
URL:
https://github.com/llvm/llvm-project/commit/4915fddbb2d79b5d67794b88c23da8d296968d0e
DIFF:
https://github.com/llvm/llvm-project/commit/4915fddbb2d79b5d67794b88c23da8d296968d0e.diff
LO
https://github.com/ChuanqiXu9 closed
https://github.com/llvm/llvm-project/pull/102855
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/5chmidti requested changes to this pull request.
> maintaining the name of the matched classes in a vector and checking for
> every other class if it inherits from `::std::enable_shared_from_this` or
> classes in the vector.
You wouldn't want to save the name, because then y
https://github.com/5chmidti edited
https://github.com/llvm/llvm-project/pull/102299
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,34 @@
+.. title:: clang-tidy - bugprone-incorrect-enable-shared-from-this
+
+bugprone-incorrect-enable-shared-from-this
+===
+
+Checks if class/struct publicly derives from ``std::enable_shared_from_this``,
+because otherwise when ``s
@@ -0,0 +1,56 @@
+// RUN: %check_clang_tidy %s bugprone-incorrect-enable-shared-from-this %t --
--
+
+namespace std {
+template class enable_shared_from_this {};
+} //namespace std
+
+class BadClassExample : std::enable_shared_from_this {};
+// CHECK-MESSAGES: :[[@LINE-1]]:7
@@ -53,6 +53,7 @@
#include "ParentVirtualCallCheck.h"
#include "PointerArithmeticOnPolymorphicObjectCheck.h"
#include "PosixReturnCheck.h"
+#include "IncorrectEnableSharedFromThisCheck.h"
5chmidti wrote:
Please sort this include correctly
https://github.com/l
@@ -0,0 +1,33 @@
+//===--- IncorrectEnableSharedFromThisCheck.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
https://github.com/5chmidti requested changes to this pull request.
Please add tests, a release notes entry, and document the option in the
documentation of the check.
https://github.com/llvm/llvm-project/pull/102831
___
cfe-commits mailing list
cfe-c
https://github.com/alexey-bataev approved this pull request.
LG
https://github.com/llvm/llvm-project/pull/102716
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/0xzre created
https://github.com/llvm/llvm-project/pull/102878
Follow up of issue #102422
>From 11b625354ff05c4384603932e6acca347df2132b Mon Sep 17 00:00:00 2001
From: 0xzre
Date: Mon, 12 Aug 2024 17:42:37 +0700
Subject: [PATCH] [Clang][AST] Add Test Cases for Reference Qu
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
Author: Muhammad Abdul (0xzre)
Changes
Follow up of issue #102422
---
Full diff: https://github.com/llvm/llvm-project/pull/102878.diff
1 Files Affected:
- (modified) clang/test/SemaCXX/function-type-qual.cpp (+14)
``diff
diff --gi
katzdm wrote:
@AaronBallman @cor3ntin Would you mind taking another look?
https://github.com/llvm/llvm-project/pull/98671
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/a-tarasyuk updated
https://github.com/llvm/llvm-project/pull/102864
>From b0e53b1c8a687165fa28bd21200f83bf1b1a9234 Mon Sep 17 00:00:00 2001
From: Oleksandr T
Date: Mon, 12 Aug 2024 13:56:30 +0300
Subject: [PATCH] [Clang] handle both gnu and cpp11 attributes to ensure
correct
xgupta wrote:
First CI is failing with error -
```
clang: error: cannot find ROCm device library; provide its path via
'--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without
ROCm device library
clang: error: cannot find HIP runtime; provide its path via '--rocm-path',
@@ -1230,6 +1230,57 @@ parsing their headers, those should be included after
the import. If the
imported modules don't provide such a header, one can be made manually for
improved compile time performance.
+Reachability of internal partition units
+---
https://github.com/AaronBallman approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/102572
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
AaronBallman wrote:
Thank you for putting together the experiment @efriedma-quic, it's greatly
appreciated! I agree with closing it for now; we can resurrect it later if
necessary.
https://github.com/llvm/llvm-project/pull/102390
___
cfe-commits mail
https://github.com/tbaederr updated
https://github.com/llvm/llvm-project/pull/102871
>From 01849578372cc922562a97f1cfa034b30c0ac6d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Mon, 12 Aug 2024 11:45:27 +0200
Subject: [PATCH] [clang][Interp] Compile field+base destruction
@@ -54,4 +54,18 @@ struct B {
void operator delete(void*) volatile; //expected-error {{static member
function cannot have 'volatile' qualifier}}
void operator delete[](void*) volatile; //expected-error {{static member
function cannot have 'volatile' qualifier}}
};
+
+stru
AaronBallman wrote:
> I definitely remember this being an extension in older versions of VS around
> VS 2012 but don't know when MSVC no longer exactly removed support for this
> extension wholesale.
This was definitely required for MFC headers; I remember implementing this
horrible nonsense
https://github.com/CoTinker updated
https://github.com/llvm/llvm-project/pull/101639
>From 3ff5909e6c0cc7acff96ed4e8524a3b5949b209f Mon Sep 17 00:00:00 2001
From: Longsheng Mou
Date: Fri, 2 Aug 2024 16:36:31 +0800
Subject: [PATCH 1/2] [X86_64] Fix empty field error in vaarg of C++.
Such struct
https://github.com/pow2clk updated
https://github.com/llvm/llvm-project/pull/102872
>From 6fde4bc98d0156024cf7acc27e2e986b9bec3993 Mon Sep 17 00:00:00 2001
From: Greg Roth
Date: Fri, 2 Aug 2024 20:10:04 -0600
Subject: [PATCH 1/3] Create llvm dot intrinsic
Per https://discourse.llvm.org/t/rfc-a
https://github.com/jmorse approved this pull request.
In lieu of Paul for a bit of time, LGTM.
I feel like the check for matching the linker-line could be made even stronger
(one wonders how many options end with 'ld"', but it's probably good enough.
https://github.com/llvm/llvm-project/pull/1
1 - 100 of 447 matches
Mail list logo