https://github.com/Gitspike updated
https://github.com/llvm/llvm-project/pull/102152
>From 0d8191b5d205c811364cf1f1b184bcbc9bbeda7f Mon Sep 17 00:00:00 2001
From: hehouhua
Date: Wed, 7 Aug 2024 11:55:30 +0800
Subject: [PATCH 1/4] [clang][ASTMatcher] Add matches for StringLiteral which
matches
glandium wrote:
> and the fix is already applied from looking at
> https://android.googlesource.com/platform/frameworks/native/+/master/libs/nativewindow/include/android/hardware_buffer.h#329
it's not part of any released NDK, and it's common to be stuck with older NDKs.
Most people are probab
https://github.com/ChuanqiXu9 created
https://github.com/llvm/llvm-project/pull/102572
Motivated by https://github.com/llvm/llvm-project/issues/101348
Although I don't want the tool's doc to explain the standard's wording, the
wording itself has some unspecified thing. So I feel it will be hel
llvmbot wrote:
@llvm/pr-subscribers-clang-modules
@llvm/pr-subscribers-clang
Author: Chuanqi Xu (ChuanqiXu9)
Changes
Motivated by https://github.com/llvm/llvm-project/issues/101348
Although I don't want the tool's doc to explain the standard's wording, the
wording itself has some unspeci
@@ -1758,6 +1758,34 @@ Also see the documentation for `@available
}];
}
+def PtrAuthDocs : Documentation {
+ let Category = DocCatVariable;
+ let Heading = "__ptrauth, __ptrauth_restricted_intptr";
asl wrote:
`__ptrauth_restricted_intptr` is not here yet.
@@ -956,6 +956,25 @@ def err_ptrauth_indirect_goto_addrlabel_arithmetic : Error<
"%select{subtraction|addition}0 of address-of-label expressions is not "
"supported with ptrauth indirect gotos">;
+// __ptrauth qualifier
+def err_ptrauth_qualifier_invalid : Error<
+ "%sele
https://github.com/Gitspike updated
https://github.com/llvm/llvm-project/pull/102152
>From 869b955eb55bc53e445a8809b56c702d7c312b46 Mon Sep 17 00:00:00 2001
From: hehouhua
Date: Wed, 7 Aug 2024 11:55:30 +0800
Subject: [PATCH] [clang][ASTMatcher] Add matches for StringLiteral which
matches lite
vitalybuka wrote:
> > @vitalybuka @nikic Let me know if anything needs to be changed in this PR?
> > Else, will merge the PR after approval.
>
> Please review.
you should click "re-request review" button next to review.
https://github.com/llvm/llvm-project/pull/99439
_
https://github.com/ChuanqiXu9 created
https://github.com/llvm/llvm-project/pull/102574
Close https://github.com/llvm/llvm-project/issues/99825
The root cause of the issue is that I didn't realize the things in implicit
global module (the language linkage in module interfaces) should be conside
llvmbot wrote:
@llvm/pr-subscribers-clang-modules
Author: Chuanqi Xu (ChuanqiXu9)
Changes
Close https://github.com/llvm/llvm-project/issues/99825
The root cause of the issue is that I didn't realize the things in implicit
global module (the language linkage in module interfaces) should b
Author: Haojian Wu
Date: 2024-08-09T08:19:49+02:00
New Revision: 16dadecc05fa4986d4522c2c3a09a7628feb0fd4
URL:
https://github.com/llvm/llvm-project/commit/16dadecc05fa4986d4522c2c3a09a7628feb0fd4
DIFF:
https://github.com/llvm/llvm-project/commit/16dadecc05fa4986d4522c2c3a09a7628feb0fd4.diff
LO
vitalybuka wrote:
I will take another look tomorrow.
https://github.com/llvm/llvm-project/pull/99439
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Chuanqi Xu
Date: 2024-08-09T14:48:56+08:00
New Revision: 8410babc2b69ccb2259e77262ad2baaa17644bea
URL:
https://github.com/llvm/llvm-project/commit/8410babc2b69ccb2259e77262ad2baaa17644bea
DIFF:
https://github.com/llvm/llvm-project/commit/8410babc2b69ccb2259e77262ad2baaa17644bea.diff
LO
https://github.com/ChuanqiXu9 closed
https://github.com/llvm/llvm-project/pull/102574
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -2503,6 +2503,25 @@ TEST_P(ASTMatchersTest, IsDelegatingConstructor) {
cxxConstructorDecl(isDelegatingConstructor(), parameterCountIs(1;
}
+TEST_P(ASTMatchersTest, MatchesString) {
+ StatementMatcher Literal = stringLiteral(matchesString("foo.*"));
+ EXPECT_TRUE
njames93 wrote:
Actually an ASTVisitor approach could be better here, this way you could create
a set of all the `CXXRecordDecls` that publicly inherit from or transitively
inherit from `::std::enable_shared_from_this` during traversal
https://github.com/llvm/llvm-project/pull/102299
_
llvmbot wrote:
/pull-request llvm/llvm-project#102428
https://github.com/llvm/llvm-project/pull/102304
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/ChuanqiXu9 closed
https://github.com/llvm/llvm-project/pull/74419
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
ChuanqiXu9 wrote:
I just found the implementation is not good since all the tests (they use
%clang_cc1) won't use the new enabled feature but we decided to enable them all
the time. So I'd like to find a better solution.
https://github.com/llvm/llvm-project/pull/74419
_
Author: Timm Baeder
Date: 2024-08-08T09:36:03+02:00
New Revision: 876cbf9a127b0a18374dcf91c969c7ba152e048c
URL:
https://github.com/llvm/llvm-project/commit/876cbf9a127b0a18374dcf91c969c7ba152e048c
DIFF:
https://github.com/llvm/llvm-project/commit/876cbf9a127b0a18374dcf91c969c7ba152e048c.diff
L
https://github.com/tbaederr closed
https://github.com/llvm/llvm-project/pull/102426
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/bogner commented:
It'd be better to make the attribute take no arguments, and we can tell if
something is ROV by its presence alone, so:
```hlsl
[[hlsl::is_rov]] __hlsl_resource_t handle;
```
would be an ROV resource, but
```hlsl
__hlsl_resource_t handle;
```
would not.
I thi
sharadhr wrote:
Just to clarify—you'd like me to open another PR to `release/19.X`? I can do
that.
In fact I'm a little more ambitious because this and #98761 are honestly very
simple PRs—I'd like them to be backported as far as Clang 16 (which is when
modules support first appeared) if possi
https://github.com/balazske created
https://github.com/llvm/llvm-project/pull/102432
Notes appear at out-of-range array index for index value and array size.
From b9753a79654b1428f753a2fad865eacdf0250ac5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?=
Date: Thu, 8 Aug 2024 0
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Balázs Kéri (balazske)
Changes
Notes appear at out-of-range array index for index value and array size.
---
Full diff: https://github.com/llvm/llvm-project/pull/102432.diff
2 Files Affected:
- (modified) clang/lib/StaticAnalyzer/Checker
llvmbot wrote:
@llvm/pr-subscribers-clang-static-analyzer-1
Author: Balázs Kéri (balazske)
Changes
Notes appear at out-of-range array index for index value and array size.
---
Full diff: https://github.com/llvm/llvm-project/pull/102432.diff
2 Files Affected:
- (modified) clang/lib/Stat
ChuanqiXu9 wrote:
> Just to clarify—you'd like me to open another PR to `release/19.X`? I can do
> that.
Yes. You can find the automated generated example in
https://github.com/llvm/llvm-project/pull/102159
>
> In fact I'm a little more ambitious because this and #98761 are honestly very
>
Author: Chuanqi Xu
Date: 2024-08-08T15:52:29+08:00
New Revision: 182e1c773421e097d42415fc4d9aee1fb431819a
URL:
https://github.com/llvm/llvm-project/commit/182e1c773421e097d42415fc4d9aee1fb431819a
DIFF:
https://github.com/llvm/llvm-project/commit/182e1c773421e097d42415fc4d9aee1fb431819a.diff
LO
sharadhr wrote:
Ah. That's a pity but no problem. I'll create the PR now. Thanks!
https://github.com/llvm/llvm-project/pull/99300
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,45 @@
+//===--- PublicEnableSharedFromThisCheck.cpp - clang-tidy
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identif
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= ,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= ,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= ,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= ,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= ,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= ,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=
Message-ID:
In-Reply-To:
https://github.com/PiotrZSL requested changes to this pull request.
Matchers need simplification, mainly that hasDescendant and declRefExpr need to
go
https://github.com/llvm/llvm-project/pull/67467
___
cfe-commits mailing list
cfe-commits@lists.llvm.
@@ -0,0 +1,142 @@
+//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy
--===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
https://github.com/PiotrZSL edited
https://github.com/llvm/llvm-project/pull/67467
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,142 @@
+//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy
--===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,142 @@
+//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy
--===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
https://github.com/PiotrZSL edited
https://github.com/llvm/llvm-project/pull/70621
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,220 @@
+// RUN: %check_clang_tidy %s readability-use-explicit-namespaces %t
+
+namespace foo {
+void doSomething() {}
+
+template void doTemplateThing(T &value) { value = value * 2; }
+
+struct StructTest {
+ int StructIntMember;
+};
+
+class ClassTest {
+public:
+ i
https://github.com/PiotrZSL requested changes to this pull request.
Bump. Please rebase.
And please remove unnecessary diagnostic, its makes harder to understand what
is part of a check, and what isn't
https://github.com/llvm/llvm-project/pull/70621
_
https://github.com/PiotrZSL requested changes to this pull request.
storeOptions method is missing, and please rebase.
Except that looks fine.
https://github.com/llvm/llvm-project/pull/99477
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https
https://github.com/NagyDonat approved this pull request.
The change LGTM, it makes these reports somewhat easier to understand.
However, note that I'll delete all array bounds checking logic from this
checker when I'll bring `alpha.security.ArrayBoundsV2` out of alpha, because
there is no reas
https://github.com/PiotrZSL approved this pull request.
https://github.com/llvm/llvm-project/pull/100177
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -104,6 +104,10 @@ New check aliases
Changes in existing checks
^^
+- Improved :doc:`readability-redundant-smartptr-get
+ ` check to
+ remove '->', when reduntant get() is removed.
PiotrZSL wrote:
```suggestion
remove `->`, when
PiotrZSL wrote:
Thats a good question.
@njames93 What do you thing, current tests are sufficient ?
https://github.com/llvm/llvm-project/pull/101073
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= ,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= ,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= ,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= ,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= ,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= ,
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=
Message-ID:
In-Reply-To:
balazske wrote:
If the `ArrayBoundsV2` checker is finished it should find all of the cases in
the test of `PointerSubChecker` that have out-of-bound indexing, and including
the cases where a single variable is handled like an 1-element array? If yes
the bounds check is not needed in this check
https://github.com/MichelleCDjunaidi updated
https://github.com/llvm/llvm-project/pull/102299
>From 75306bd83eb43d0606630f9f059fc04ad1b20b06 Mon Sep 17 00:00:00 2001
From: Michelle C Djunaidi
Date: Wed, 7 Aug 2024 13:10:02 +0800
Subject: [PATCH 1/4] [clang-tidy] Add bugprone-public-enable-share
@@ -0,0 +1,45 @@
+//===--- PublicEnableSharedFromThisCheck.cpp - clang-tidy
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identif
@@ -0,0 +1,45 @@
+//===--- PublicEnableSharedFromThisCheck.cpp - clang-tidy
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identif
@@ -0,0 +1,45 @@
+// RUN: %check_clang_tidy %s bugprone-public-enable-shared-from-this %t -- --
+
+namespace std {
+
+template class enable_shared_from_this {};
+
+class BadExample : enable_shared_from_this {};
+// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: class BadExa
https://github.com/MichelleCDjunaidi updated
https://github.com/llvm/llvm-project/pull/102299
>From 75306bd83eb43d0606630f9f059fc04ad1b20b06 Mon Sep 17 00:00:00 2001
From: Michelle C Djunaidi
Date: Wed, 7 Aug 2024 13:10:02 +0800
Subject: [PATCH 1/5] [clang-tidy] Add bugprone-public-enable-share
MichelleCDjunaidi wrote:
> How are classes that derive other classes that implement
> `enable_shared_from_this`
>
> ```c++
> class A : public std::enable_shared_from_this {};
> class B : private A{};
> ```
Looking at the AST dump that clang-check gives, it seems that B doesn't have
any knowle
Author: Vladislav Belov
Date: 2024-08-08T12:45:20+03:00
New Revision: 635d20e9e72e25966b196bb012a90e750ae00c6d
URL:
https://github.com/llvm/llvm-project/commit/635d20e9e72e25966b196bb012a90e750ae00c6d
DIFF:
https://github.com/llvm/llvm-project/commit/635d20e9e72e25966b196bb012a90e750ae00c6d.dif
https://github.com/asi-sc closed
https://github.com/llvm/llvm-project/pull/100110
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
github-actions[bot] wrote:
@vbe-sc Congratulations on having your first Pull Request (PR) merged into the
LLVM Project!
Your changes will be combined with recent changes from other authors, then
tested
by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with
a build,
@@ -0,0 +1,45 @@
+//===--- PublicEnableSharedFromThisCheck.cpp - clang-tidy
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identif
https://github.com/ChuanqiXu9 created
https://github.com/llvm/llvm-project/pull/102444
Close https://github.com/llvm/llvm-project/issues/72383
The implementation rationale is, I don't want to pass
`-fmodules-embed-all-files` all the time since we can't test it in lit tests
(we're using `clang
llvmbot wrote:
@llvm/pr-subscribers-clang-modules
Author: Chuanqi Xu (ChuanqiXu9)
Changes
Close https://github.com/llvm/llvm-project/issues/72383
The implementation rationale is, I don't want to pass
`-fmodules-embed-all-files` all the time since we can't test it in lit tests
(we're usi
omern1 wrote:
> The `.debug_` prefix is for DEARF content, is this being proposed to the
> DWARF standard?
No, this isn't being proposed for the DWARF standard. Though, searching through
the DWARF standard I couldn't find anywhere saying that the `.debug_` section
name prefix is reserved for
https://github.com/omern1 updated
https://github.com/llvm/llvm-project/pull/101962
>From 14f3cb82f0d7e69261bd7e1317bd66392e9a2c2b Mon Sep 17 00:00:00 2001
From: Nabeel Omer
Date: Mon, 5 Aug 2024 11:50:18 +0100
Subject: [PATCH 1/4] [MC] Emit a jump table size section
This patch will make LLVM e
github-actions[bot] wrote:
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
You can test this locally with the following command:
``bash
git-clang-format --diff 182e1c773421e097d42415fc4d9aee1fb431819a
71e93c68dd186d70f2c922963897ffb1dce70179 --e
https://github.com/NagyDonat edited
https://github.com/llvm/llvm-project/pull/102432
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/NagyDonat edited
https://github.com/llvm/llvm-project/pull/102432
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/NagyDonat edited
https://github.com/llvm/llvm-project/pull/102432
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/omern1 updated
https://github.com/llvm/llvm-project/pull/101962
>From 14f3cb82f0d7e69261bd7e1317bd66392e9a2c2b Mon Sep 17 00:00:00 2001
From: Nabeel Omer
Date: Mon, 5 Aug 2024 11:50:18 +0100
Subject: [PATCH 1/5] [MC] Emit a jump table size section
This patch will make LLVM e
https://github.com/Long5hot updated
https://github.com/llvm/llvm-project/pull/77732
>From 2d4ae4906117adcdcd7d08e95ae42ead29bcc9a6 Mon Sep 17 00:00:00 2001
From: Kishan Parmar
Date: Thu, 8 Aug 2024 15:29:56 +0530
Subject: [PATCH] [clang][PowerPC] Add flag to enable compatibility with GNU
for c
NagyDonat wrote:
> If the `ArrayBoundsV2` checker is finished it should find all of the cases in
> the test of `PointerSubChecker` that have out-of-bound indexing, and
> including the cases where a single variable is handled like an 1-element
> array?
Yes, `ArrayBoundV2` will handle the cases
Endilll wrote:
I think this can be prevented by addition testing. Feel free to submit your
suggestion as an additional test.
I also saw declared, but unused symbols in `functionList`, e.g.
`clang_getTemplateCursorKind`. That might be worth loo
https://github.com/llvm/llvm-project/pull/101941
_
@@ -0,0 +1,124 @@
+//===--- ProBoundsAvoidUncheckedContainerAccesses.cpp - clang-tidy
===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
Author: John Brawn
Date: 2024-08-08T11:20:09+01:00
New Revision: 39529107b46032ef0875ac5b809ab5b60cd15a40
URL:
https://github.com/llvm/llvm-project/commit/39529107b46032ef0875ac5b809ab5b60cd15a40
DIFF:
https://github.com/llvm/llvm-project/commit/39529107b46032ef0875ac5b809ab5b60cd15a40.diff
LO
https://github.com/john-brawn-arm closed
https://github.com/llvm/llvm-project/pull/102322
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,124 @@
+//===--- ProBoundsAvoidUncheckedContainerAccesses.cpp - clang-tidy
===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
https://github.com/PBHDK edited https://github.com/llvm/llvm-project/pull/95220
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,40 @@
+//===--- ProBoundsAvoidUncheckedContainerAccesses.h - clang-tidy *- C++
-*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apa
https://github.com/MitalAshok updated
https://github.com/llvm/llvm-project/pull/90462
>From 96ff21d5126ebb4b9a538b8eef11f8ac9e2194c5 Mon Sep 17 00:00:00 2001
From: Mital Ashok
Date: Mon, 29 Apr 2024 12:27:04 +0100
Subject: [PATCH 1/4] [Clang] Reuse tail-padding for more types that are not
POD
https://github.com/MitalAshok edited
https://github.com/llvm/llvm-project/pull/90462
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
MitalAshok wrote:
@hubert-reinterpretcast There were none, now I've added some:
https://github.com/llvm/llvm-project/blob/cf8be1bac0eb37caaaecd47cb463ca58ee0fbe59/clang/test/Layout/itanium-padded-bit-field.cpp
https://github.com/llvm/llvm-project/pull/90462
_
https://github.com/hahnjo created
https://github.com/llvm/llvm-project/pull/102450
When incremental processing is enabled, the Parser will never report `tok::eof`
but `tok::annot_repl_input_end`. However, that case is already taken care of in
`IncrementalParser::ParseOrWrapTopLevelDecl()` so t
@@ -0,0 +1,137 @@
+//===--- ProBoundsAvoidUncheckedContainerAccesses.cpp - clang-tidy
===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Jonas Hahnfeld (hahnjo)
Changes
When incremental processing is enabled, the Parser will never report `tok::eof`
but `tok::annot_repl_input_end`. However, that case is already taken care of in
`IncrementalParser::ParseOrWrapTopLevelDecl()`
@@ -160,6 +160,11 @@ New checks
Replaces nested ``std::min`` and ``std::max`` calls with an initializer list
where applicable.
+- New :doc:`cppcoreguidelines-pro-bounds-avoid-unchecked-container-accesses
PBHDK wrote:
Are you referring to a double "it" som
vgvassilev wrote:
Your reasoning sounds right to me. Can we make sure we are not breaking `clang
-fincremental-extensions`, too?
https://github.com/llvm/llvm-project/pull/102450
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llv
hahnjo wrote:
> Your reasoning sounds right to me. Can we make sure we are not breaking
> `clang -fincremental-extensions`, too?
As far as I can tell, `-fincremental-extensions` should set the language option
`IncrementalExtensions` which in turn is the default for
`Preprocessor::IncrementalP
https://github.com/MitalAshok updated
https://github.com/llvm/llvm-project/pull/90462
>From 96ff21d5126ebb4b9a538b8eef11f8ac9e2194c5 Mon Sep 17 00:00:00 2001
From: Mital Ashok
Date: Mon, 29 Apr 2024 12:27:04 +0100
Subject: [PATCH 1/6] [Clang] Reuse tail-padding for more types that are not
POD
https://github.com/MitalAshok updated
https://github.com/llvm/llvm-project/pull/90462
>From 96ff21d5126ebb4b9a538b8eef11f8ac9e2194c5 Mon Sep 17 00:00:00 2001
From: Mital Ashok
Date: Mon, 29 Apr 2024 12:27:04 +0100
Subject: [PATCH 1/6] [Clang] Reuse tail-padding for more types that are not
POD
https://github.com/MitalAshok updated
https://github.com/llvm/llvm-project/pull/94355
>From ac803f979f2779da35a006988d2d42cdabbad252 Mon Sep 17 00:00:00 2001
From: Mital Ashok
Date: Sat, 22 Jul 2023 20:07:00 +0100
Subject: [PATCH 1/7] [SemaCXX] Implement CWG2137 (list-initialization from
objec
Author: Aaron Ballman
Date: 2024-08-08T07:32:39-04:00
New Revision: 8f0c865d1024a9ff7f3f1b0d3e47a6c9f5f672c2
URL:
https://github.com/llvm/llvm-project/commit/8f0c865d1024a9ff7f3f1b0d3e47a6c9f5f672c2
DIFF:
https://github.com/llvm/llvm-project/commit/8f0c865d1024a9ff7f3f1b0d3e47a6c9f5f672c2.diff
https://github.com/AaronBallman closed
https://github.com/llvm/llvm-project/pull/102339
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
AaronBallman wrote:
CC @zygoloid @hubert-reinterpretcast @cor3ntin @shafik for more opinions
regarding diagnostic behavior
> Not sure if this is really worth doing if it only affects the Android NDK;
> Android trunk has been fixed. And presumably most people will use the
> compiler from the N
https://github.com/AaronBallman approved this pull request.
LGTM!
https://github.com/llvm/llvm-project/pull/102236
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vgvassilev approved this pull request.
Lgtm!
https://github.com/llvm/llvm-project/pull/102450
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/lenary created
https://github.com/llvm/llvm-project/pull/102452
Luke Wren's Hazard3 is an open-source 32-bit RISC-V core. The core's source
code and docs are available on github:
https://github.com/wren6991/hazard3
The core has just hit 1.0 today, which seems to me to be a g
llvmbot wrote:
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-clang-driver
Author: Sam Elliott (lenary)
Changes
Luke Wren's Hazard3 is an open-source 32-bit RISC-V core. The core's source
code and docs are available on github:
https://github.com/wren6991/hazard3
The core has just hit 1.
https://github.com/tbaederr created
https://github.com/llvm/llvm-project/pull/102454
Even if the array is of unknown bounds, index 0 is fine.
>From cd0c548bda43321089d2fc4a6c7853a18b932690 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Thu, 8 Aug 2024 14:19:25 +0200
Subject
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
Changes
Even if the array is of unknown bounds, index 0 is fine.
---
Full diff: https://github.com/llvm/llvm-project/pull/102454.diff
2 Files Affected:
- (modified) clang/lib/AST/Interp/Interp.h (+2-2)
- (modifie
https://github.com/asi-sc updated
https://github.com/llvm/llvm-project/pull/102285
>From aeae8cfd59de3e0898e3e70882dc1ef566d6f021 Mon Sep 17 00:00:00 2001
From: Anton Sidorenko
Date: Thu, 4 Jul 2024 18:09:26 +0300
Subject: [PATCH] [RISCV] Add Syntacore SCR5 RV32/64 processors definition
Syntac
abhina-sree wrote:
Enabling __ptr32 keyword to support in Clang for z/OS. It is represented by
addrspace(1) in LLVM IR. Unlike existing implementation, __ptr32 is not mangled
into symbol names for z/OS.
https://github.com/llvm/llvm-project/pull/101696
__
https://github.com/abhina-sree closed
https://github.com/llvm/llvm-project/pull/101696
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Abhina Sree
Date: 2024-08-08T08:35:22-04:00
New Revision: 135fecd4441068667ef23f56098befd0c42f89f2
URL:
https://github.com/llvm/llvm-project/commit/135fecd4441068667ef23f56098befd0c42f89f2
DIFF:
https://github.com/llvm/llvm-project/commit/135fecd4441068667ef23f56098befd0c42f89f2.diff
L
https://github.com/lenary converted_to_draft
https://github.com/llvm/llvm-project/pull/102452
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
101 - 200 of 421 matches
Mail list logo