zwuis wrote:
Please update documentation of these checks.
https://github.com/llvm/llvm-project/pull/172199
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/localspook edited
https://github.com/llvm/llvm-project/pull/172199
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/localspook edited
https://github.com/llvm/llvm-project/pull/172199
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang-tidy
Author: Victor Chernyakin (localspook)
Changes
`std::views::FOO` should in almost all cases be preferred over
`std::ranges::FOO_view`. For a very detailed explanation of why that is, see
https://brevzin.github.io/c++/2023/03/14/prefer-views-
https://github.com/localspook edited
https://github.com/llvm/llvm-project/pull/172199
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/localspook created
https://github.com/llvm/llvm-project/pull/172199
`std::views::FOO` should in almost all cases be preferred over
`std::ranges::FOO_view`. For a very detailed explanation of why that is, see
https://brevzin.github.io/c++/2023/03/14/prefer-views-meow/. The TL
https://github.com/irishrover updated
https://github.com/llvm/llvm-project/pull/172170
>From 7f9424ab7955031ca3ee343dafa27b4186f5bd48 Mon Sep 17 00:00:00 2001
From: Zinovy Nis
Date: Sat, 13 Dec 2025 13:47:01 +0300
Subject: [PATCH 1/4] [clang-tidy] Add a new check 'replace-with-string-view'
Loo
https://github.com/irishrover updated
https://github.com/llvm/llvm-project/pull/172170
>From 7f9424ab7955031ca3ee343dafa27b4186f5bd48 Mon Sep 17 00:00:00 2001
From: Zinovy Nis
Date: Sat, 13 Dec 2025 13:47:01 +0300
Subject: [PATCH 1/3] [clang-tidy] Add a new check 'replace-with-string-view'
Loo
https://github.com/irishrover updated
https://github.com/llvm/llvm-project/pull/172170
>From 7f9424ab7955031ca3ee343dafa27b4186f5bd48 Mon Sep 17 00:00:00 2001
From: Zinovy Nis
Date: Sat, 13 Dec 2025 13:47:01 +0300
Subject: [PATCH 1/2] [clang-tidy] Add a new check 'replace-with-string-view'
Loo
https://github.com/irishrover edited
https://github.com/llvm/llvm-project/pull/172170
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/irishrover edited
https://github.com/llvm/llvm-project/pull/172170
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
zeyi2 wrote:
I've finished testing the script modifications and I think it is working as
expected.
The full log:
https://github.com/llvm/llvm-project/pull/172123#issuecomment-3648850648
https://github.com/llvm/llvm-project/pull/172123
___
cfe-commit
https://github.com/zeyi2 updated
https://github.com/llvm/llvm-project/pull/172123
>From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001
From: mtx
Date: Fri, 12 Dec 2025 22:39:40 +0800
Subject: [PATCH 01/19] [Github][CI] Introduce `doc8` to `code-lint-helper.py`
---
.../githu
https://github.com/zeyi2 updated
https://github.com/llvm/llvm-project/pull/168722
>From 4908ebaa5652957761db6116a3e4c823877fd9e3 Mon Sep 17 00:00:00 2001
From: mtx
Date: Wed, 19 Nov 2025 23:19:32 +0800
Subject: [PATCH] [clang-tidy][NFC] Fix formatting issue in
`unsafe-functions.rst`
---
.../
https://github.com/zeyi2 edited https://github.com/llvm/llvm-project/pull/168722
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/zeyi2 ready_for_review
https://github.com/llvm/llvm-project/pull/168722
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/zeyi2 updated
https://github.com/llvm/llvm-project/pull/172123
>From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001
From: mtx
Date: Fri, 12 Dec 2025 22:39:40 +0800
Subject: [PATCH 01/18] [Github][CI] Introduce `doc8` to `code-lint-helper.py`
---
.../githu
https://github.com/zwuis approved this pull request.
https://github.com/llvm/llvm-project/pull/172196
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/zeyi2 updated
https://github.com/llvm/llvm-project/pull/172123
>From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001
From: mtx
Date: Fri, 12 Dec 2025 22:39:40 +0800
Subject: [PATCH 01/16] [Github][CI] Introduce `doc8` to `code-lint-helper.py`
---
.../githu
https://github.com/zeyi2 updated
https://github.com/llvm/llvm-project/pull/172123
>From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001
From: mtx
Date: Fri, 12 Dec 2025 22:39:40 +0800
Subject: [PATCH 01/14] [Github][CI] Introduce `doc8` to `code-lint-helper.py`
---
.../githu
github-actions[bot] wrote:
:warning: C/C++ code linter, clang-tidy found issues in your code. :warning:
You can test this locally with the following command:
```bash
git diff -U0 origin/main...HEAD --
clang-tools-extra/clang-tidy/objc/SuperSelfCheck.cpp |
python3 clang-tools-extra/clang
https://github.com/zeyi2 updated
https://github.com/llvm/llvm-project/pull/172123
>From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001
From: mtx
Date: Fri, 12 Dec 2025 22:39:40 +0800
Subject: [PATCH 01/13] [Github][CI] Introduce `doc8` to `code-lint-helper.py`
---
.../githu
https://github.com/zeyi2 updated
https://github.com/llvm/llvm-project/pull/172123
>From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001
From: mtx
Date: Fri, 12 Dec 2025 22:39:40 +0800
Subject: [PATCH 01/12] [Github][CI] Introduce `doc8` to `code-lint-helper.py`
---
.../githu
@@ -5101,6 +5101,29 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC,
const CallExpr *Call,
unsigned SrcIdx = (ShuffleMask >> 6) & 0x1;
return std::pair{SrcIdx, Offset};
});
+ case X86::BI__builtin_ia32_vperm2f128_pd256:
+ case X86::BI__built
https://github.com/ojhunt closed
https://github.com/llvm/llvm-project/pull/144420
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
ojhunt wrote:
closing as TR was killed
https://github.com/llvm/llvm-project/pull/144420
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/zeyi2 updated
https://github.com/llvm/llvm-project/pull/172123
>From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001
From: mtx
Date: Fri, 12 Dec 2025 22:39:40 +0800
Subject: [PATCH 01/11] [Github][CI] Introduce `doc8` to `code-lint-helper.py`
---
.../githu
@@ -289,8 +291,65 @@ def _clean_clang_tidy_output(self, output: str) -> str:
return ""
+class Doc8LintHelper(LintHelper):
+name: Final = "doc8"
+friendly_name: Final = "RST documentation linter"
-ALL_LINTERS = (ClangTidyLintHelper(),)
+def instructions(s
https://github.com/zeyi2 updated
https://github.com/llvm/llvm-project/pull/172123
>From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001
From: mtx
Date: Fri, 12 Dec 2025 22:39:40 +0800
Subject: [PATCH 01/10] [Github][CI] Introduce `doc8` to `code-lint-helper.py`
---
.../githu
https://github.com/zeyi2 updated
https://github.com/llvm/llvm-project/pull/172123
>From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001
From: mtx
Date: Fri, 12 Dec 2025 22:39:40 +0800
Subject: [PATCH 1/9] [Github][CI] Introduce `doc8` to `code-lint-helper.py`
---
.../github-
https://github.com/EugeneZelenko edited
https://github.com/llvm/llvm-project/pull/172123
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/localspook updated
https://github.com/llvm/llvm-project/pull/172196
>From b284d180abdb752bd1a4fc2a1160ee1e9a73ea5c Mon Sep 17 00:00:00 2001
From: Victor Chernyakin
Date: Sat, 13 Dec 2025 21:46:57 -0800
Subject: [PATCH] [clang-tidy] Fix misplaced fix-its in
`modernize-use-ove
https://github.com/zeyi2 updated
https://github.com/llvm/llvm-project/pull/172123
>From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001
From: mtx
Date: Fri, 12 Dec 2025 22:39:40 +0800
Subject: [PATCH 1/8] [Github][CI] Introduce `doc8` to `code-lint-helper.py`
---
.../github-
@@ -289,8 +291,65 @@ def _clean_clang_tidy_output(self, output: str) -> str:
return ""
+class Doc8LintHelper(LintHelper):
+name: Final = "doc8"
+friendly_name: Final = "RST documentation linter"
-ALL_LINTERS = (ClangTidyLintHelper(),)
+def instructions(s
@@ -289,8 +291,65 @@ def _clean_clang_tidy_output(self, output: str) -> str:
return ""
+class Doc8LintHelper(LintHelper):
+name: Final = "doc8"
+friendly_name: Final = "RST documentation linter"
-ALL_LINTERS = (ClangTidyLintHelper(),)
+def instructions(s
@@ -289,8 +291,65 @@ def _clean_clang_tidy_output(self, output: str) -> str:
return ""
+class Doc8LintHelper(LintHelper):
+name: Final = "doc8"
+friendly_name: Final = "RST documentation linter"
-ALL_LINTERS = (ClangTidyLintHelper(),)
+def instructions(s
@@ -289,8 +291,65 @@ def _clean_clang_tidy_output(self, output: str) -> str:
return ""
+class Doc8LintHelper(LintHelper):
+name: Final = "doc8"
+friendly_name: Final = "RST documentation linter"
-ALL_LINTERS = (ClangTidyLintHelper(),)
+def instructions(s
llvmbot wrote:
@llvm/pr-subscribers-clang-tidy
@llvm/pr-subscribers-clang-tools-extra
Author: Victor Chernyakin (localspook)
Changes
This removes some of the incredibly painful manual lexing in this check, yay!
Fixes #138486. Also fixes the following case with `= delete("...")` in
C++26:
https://github.com/localspook edited
https://github.com/llvm/llvm-project/pull/172196
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/localspook created
https://github.com/llvm/llvm-project/pull/172196
This removes some of the incredibly painful manual lexing in this check.
Fixes #138486. Also fixes the following case with `= delete("...")` in C++26:
https://godbolt.org/z/dddfY15Wq.
>From 60c48737b7b53a8b
github-actions[bot] wrote:
:warning: RST documentation linter, doc8 found issues in your code. :warning:
You can test this locally with the following command:
```bash
doc8 -q clang-tools-extra/docs/clang-tidy/checks/bugprone/unsafe-functions.rst
```
View the output from doc8 here.
https://github.com/zeyi2 updated
https://github.com/llvm/llvm-project/pull/172123
>From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001
From: mtx
Date: Fri, 12 Dec 2025 22:39:40 +0800
Subject: [PATCH 1/7] [Github][CI] Introduce `doc8` to `code-lint-helper.py`
---
.../github-
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`sanitizer-aarch64-linux-bootstrap-asan` running on `sanitizer-buildbot8` while
building `clang-tools-extra` at step 2 "annotate".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/24/builds/15643
Here
Priyanshu3820 wrote:
> Most people just drop their PR and reopen a new one, which doesn't spam a lot
> of people. ;) I got auto subscribed because of the clang-format label.
Will surely keep that in mind for future PRs. Apologies for the inconvenience
caused.
https://github.com/llvm/llvm-proj
https://github.com/zeyi2 closed https://github.com/llvm/llvm-project/pull/171975
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: mitchell
Date: 2025-12-14T12:31:25+08:00
New Revision: 72574b81956ad8bab51deaae0adab5ff6be40a30
URL:
https://github.com/llvm/llvm-project/commit/72574b81956ad8bab51deaae0adab5ff6be40a30
DIFF:
https://github.com/llvm/llvm-project/commit/72574b81956ad8bab51deaae0adab5ff6be40a30.diff
LOG:
h-vetinari wrote:
Usually, even versions branch off in early January. It'd be a pity if this
missed clang 22 (it's already a big improvement over the status quo, though of
course that doesn't meant that further refinement couldn't come later, even
during the rc phase)
https://github.com/llvm/
https://github.com/Enna1 edited https://github.com/llvm/llvm-project/pull/171963
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Enna1 edited https://github.com/llvm/llvm-project/pull/171963
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
yronglin wrote:
> > friendly ping~
>
> Unfortunately, I was not able to get to this before starting end-of-year
> holidays. I'm not entirely sure that I'll be able to get back to this before
> January.
Thanks! Got it.
https://github.com/llvm/llvm-project/pull/107168
_
https://github.com/0xzre updated
https://github.com/llvm/llvm-project/pull/171069
>From df40111bf084022085b4facd555c03fd42c2827d Mon Sep 17 00:00:00 2001
From: 0xzre
Date: Mon, 8 Dec 2025 07:32:45 +0700
Subject: [PATCH 1/7] [AMDGPU] add clamp immediate operand to WMMA iu8
intrinsic
---
clang
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 origin/main HEAD --extensions cpp,cl --
clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp c
https://github.com/0xzre updated
https://github.com/llvm/llvm-project/pull/171069
>From df40111bf084022085b4facd555c03fd42c2827d Mon Sep 17 00:00:00 2001
From: 0xzre
Date: Mon, 8 Dec 2025 07:32:45 +0700
Subject: [PATCH 1/6] [AMDGPU] add clamp immediate operand to WMMA iu8
intrinsic
---
clang
@@ -244,6 +244,12 @@ New checks
Finds virtual function overrides with different visibility than the function
in the base class.
+- New :doc:`performance-replace-with-string-view
+ ` check.
+
+ Detects functions returning std::[w|u8|u16|u32]string where
+ return type can
@@ -0,0 +1,142 @@
+// RUN: %check_clang_tidy -std=c++17-or-later %s
performance-replace-with-string-view %t -- -- -I %S/Inputs
+
+namespace std {
+ template
+ class basic_string_view {
+ public:
+basic_string_view(const CharT *);
+basic_string_view();
+ };
+ using s
@@ -0,0 +1,60 @@
+.. title:: clang-tidy - performance-replace-with-string-view
+
+performance-replace-with-string-view
+
+
+Looks for functions returning `std::[w|u8|u16|u32]string` and suggests to
+change it to `std::[...]string_view` for perfo
@@ -0,0 +1,60 @@
+.. title:: clang-tidy - performance-replace-with-string-view
+
+performance-replace-with-string-view
+
+
+Looks for functions returning `std::[w|u8|u16|u32]string` and suggests to
+change it to `std::[...]string_view` for perfo
https://github.com/EugeneZelenko edited
https://github.com/llvm/llvm-project/pull/172170
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/EugeneZelenko commented:
How about custom classes like `StringRef` in LLVM?
https://github.com/llvm/llvm-project/pull/172170
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-
@@ -0,0 +1,60 @@
+.. title:: clang-tidy - performance-replace-with-string-view
+
+performance-replace-with-string-view
+
+
+Looks for functions returning `std::[w|u8|u16|u32]string` and suggests to
+change it to `std::[...]string_view` for perfo
hubert-reinterpretcast wrote:
> friendly ping~
Unfortunately, I was not able to get to this before starting end-of-year
holidays. I'm not entirely sure that I'll be able to get back to this before
January.
https://github.com/llvm/llvm-project/pull/107168
__
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`sanitizer-x86_64-linux-bootstrap-asan` running on `sanitizer-buildbot2` while
building `clang-tools-extra` at step 2 "annotate".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/52/builds/13564
Here i
https://github.com/Enna1 edited https://github.com/llvm/llvm-project/pull/171963
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
github-actions[bot] wrote:
# :penguin: Linux x64 Test Results
* 85105 tests passed
* 1175 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
Clang.Sema/ptrauth-qualifier-options.c
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/h
github-actions[bot] wrote:
# :window: Windows x64 Test Results
* 51523 tests passed
* 872 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
Clang.Sema/ptrauth-qualifier-options.c
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:
https://github.com/localspook closed
https://github.com/llvm/llvm-project/pull/172120
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Victor Chernyakin
Date: 2025-12-13T16:28:09-08:00
New Revision: 49ad1e9ea25b8524b0ab1d61ca5fa16103434357
URL:
https://github.com/llvm/llvm-project/commit/49ad1e9ea25b8524b0ab1d61ca5fa16103434357
DIFF:
https://github.com/llvm/llvm-project/commit/49ad1e9ea25b8524b0ab1d61ca5fa16103434357.d
@@ -65,6 +65,17 @@ enum class PointerAuthenticationMode : unsigned {
SignAndAuth
};
+static constexpr llvm::StringLiteral PointerAuthenticationOptionStrip =
"strip";
ojhunt wrote:
Oh yay, we've got a pointer auth header now \o/
Moving these things out of
https://github.com/ojhunt updated
https://github.com/llvm/llvm-project/pull/136828
>From 927380bdf377581e6e40507a12c374023352c613 Mon Sep 17 00:00:00 2001
From: Oliver Hunt
Date: Wed, 30 Apr 2025 22:26:59 -0700
Subject: [PATCH 1/7] [clang][PAC] add support for options parameter to
__ptrauth
T
https://github.com/ojhunt updated
https://github.com/llvm/llvm-project/pull/136828
>From 927380bdf377581e6e40507a12c374023352c613 Mon Sep 17 00:00:00 2001
From: Oliver Hunt
Date: Wed, 30 Apr 2025 22:26:59 -0700
Subject: [PATCH 1/6] [clang][PAC] add support for options parameter to
__ptrauth
T
ojhunt wrote:
(messed up updating the existing PR)
https://github.com/llvm/llvm-project/pull/172187
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/ojhunt closed
https://github.com/llvm/llvm-project/pull/172187
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Oliver Hunt (ojhunt)
Changes
This PR adds support for an 'options' parameter for the __ptrauth qualifier.
The initial version only exposes the authehntication modes:
* "strip"
* "sign-and-strip"
* "sign-and-auth"
We also support parsing
https://github.com/ojhunt created
https://github.com/llvm/llvm-project/pull/172187
This PR adds support for an 'options' parameter for the __ptrauth qualifier.
The initial version only exposes the authehntication modes:
* "strip"
* "sign-and-strip"
* "sign-and-auth"
We also support parsing t
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 origin/main HEAD --extensions cpp,h --
clang/include/clang/AST/ASTContext.h clang/lib
https://github.com/ojhunt created
https://github.com/llvm/llvm-project/pull/172186
None
>From 7c547005228cdb185fc0f5458c62d0c24e2df9b6 Mon Sep 17 00:00:00 2001
From: Oliver Hunt
Date: Sat, 13 Dec 2025 00:39:04 -0800
Subject: [PATCH 1/2] start refactoring the ptrauth thingy
---
clang/include/
@@ -0,0 +1,27 @@
+// RUN: rm -rf %t
+// RUN: mkdir %t
+// RUN: cp %S/Inputs/const-correctness/correctness.h %t/correctness.h
+// RUN: %check_clang_tidy %s misc-const-correctness %t/temp -- \
+// RUN: -- -I%t -fno-delayed-template-parsing
+// RUN: diff %t/correctness.h %S/Inputs/
@@ -5101,6 +5101,36 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC,
const CallExpr *Call,
unsigned SrcIdx = (ShuffleMask >> 6) & 0x1;
return std::pair{SrcIdx, Offset};
});
+ case X86::BI__builtin_ia32_vperm2f128_pd256:
+return interp__bu
@@ -112,43 +122,91 @@ void ConstCorrectnessCheck::registerMatchers(MatchFinder
*Finder) {
const auto FunctionPointerRef =
hasType(hasCanonicalType(referenceType(pointee(functionType();
+ const auto CommonExcludeTypes =
+ anyOf(ConstType, ConstReference, RVal
@@ -112,43 +122,91 @@ void ConstCorrectnessCheck::registerMatchers(MatchFinder
*Finder) {
const auto FunctionPointerRef =
hasType(hasCanonicalType(referenceType(pointee(functionType();
+ const auto CommonExcludeTypes =
+ anyOf(ConstType, ConstReference, RVal
@@ -104,6 +104,20 @@ Options
:option:`WarnPointersAsValues` and :option:`WarnPointersAsPointers`.
Default is `true`.
+.. option:: AnalyzeParameters
+
+ Enable or disable the analysis of function parameters, like
+ ``void foo(int* ptr)``. Only reference and pointer parame
https://github.com/AhmedYasser5 updated
https://github.com/llvm/llvm-project/pull/172149
>From fb4849930a1dd02e667d49d0e13e6b6e1f3e9d3c Mon Sep 17 00:00:00 2001
From: Ahmed Yaser
Date: Sat, 13 Dec 2025 20:05:00 +0800
Subject: [PATCH] [Clang] feat: Allow AVX/AVX2 permute operations in constexpr
https://github.com/qiongsiwu updated
https://github.com/llvm/llvm-project/pull/170215
>From 9cc149df92f035e025fd237662815a2ca28cc2f9 Mon Sep 17 00:00:00 2001
From: Jan Svoboda
Date: Thu, 2 Nov 2023 14:35:30 -0700
Subject: [PATCH 1/3] [clang][modules] Track included files per submodule
(cherry
https://github.com/AhmedYasser5 edited
https://github.com/llvm/llvm-project/pull/172149
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -5101,6 +5101,36 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC,
const CallExpr *Call,
unsigned SrcIdx = (ShuffleMask >> 6) & 0x1;
return std::pair{SrcIdx, Offset};
});
+ case X86::BI__builtin_ia32_vperm2f128_pd256:
+return interp__bu
denzor200 wrote:
> Seems like this could be covered by `readability-simplify-boolean-expr`.
Nice point, I've created issue about that:
https://github.com/llvm/llvm-project/issues/172180
https://github.com/llvm/llvm-project/pull/171086
___
cfe-commi
@@ -0,0 +1,354 @@
+//===--===//
+//
+// 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
@@ -0,0 +1,354 @@
+//===--===//
+//
+// 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
@@ -0,0 +1,354 @@
+//===--===//
+//
+// 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
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: None (schittir)
Changes
---
Full diff: https://github.com/llvm/llvm-project/pull/172179.diff
1 Files Affected:
- (modified) clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.cpp
(+1-1)
``diff
diff --git a/clang/lib
https://github.com/schittir created
https://github.com/llvm/llvm-project/pull/172179
None
>From f9a9eda98a32f5fb9fb4854c2325f48ec406c70c Mon Sep 17 00:00:00 2001
From: Sindhu Chittireddy
Date: Sat, 13 Dec 2025 13:42:14 -0800
Subject: [PATCH] [NFC] void cast an unused return
---
clang/lib/Too
@@ -23,6 +23,18 @@
namespace clang {
namespace format {
+namespace {
+
+CommentKind classifyBlockComment(StringRef Text) {
+ if (Text.starts_with("/**") || Text.starts_with("/*!"))
+return CommentKind::DocString;
+ const StringRef Content = Text.drop_front(2).drop_back(2
HazardyKnusperkeks wrote:
Most people just drop their PR and reopen a new one, which doesn't spam a lot
of people. ;) I got auto subscribed because of the clang-format label.
https://github.com/llvm/llvm-project/pull/171615
___
cfe-commits mailing lis
@@ -443,8 +443,8 @@ static const MemoryMapParams Linux_I386_MemoryMapParams = {
static const MemoryMapParams Linux_X86_64_MemoryMapParams = {
0, // AndMask (not used)
0x5000, // XorMask
-0, // ShadowBase (not used)
-0x10
https://github.com/thurstond requested changes to this pull request.
https://github.com/llvm/llvm-project/pull/171993
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1789,6 +1789,15 @@ bool CursorVisitor::VisitAdjustedTypeLoc(AdjustedTypeLoc
TL) {
return Visit(TL.getOriginalLoc());
}
+bool CursorVisitor::VisitAutoTypeLoc(AutoTypeLoc TL) {
Serafean wrote:
doesn't compile. Already defined by `DEFAULT_TYPELOC_IMPL(Aut
@@ -150,6 +150,16 @@ CXType cxtype::MakeCXType(QualType T, CXTranslationUnit
TU) {
return MakeCXType(PTT->getInnerType(), TU);
}
+// Handle auto in function parameters
+if (auto *TTP = T->getAs()) {
+ auto *D = TTP->getDecl();
+ if (D && D->isImpli
@@ -0,0 +1,14 @@
+// Test case for auto function parameter reported as CXType_Auto
+// This test verifies that auto parameters in function declarations
+// are properly reported as CXType_Auto in the libclang C API
+// See issue #172072
+
+// RUN: c-index-test -test-type %s | File
@@ -5101,6 +5101,36 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC,
const CallExpr *Call,
unsigned SrcIdx = (ShuffleMask >> 6) & 0x1;
return std::pair{SrcIdx, Offset};
});
+ case X86::BI__builtin_ia32_vperm2f128_pd256:
+return interp__bu
@@ -5101,6 +5101,36 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC,
const CallExpr *Call,
unsigned SrcIdx = (ShuffleMask >> 6) & 0x1;
return std::pair{SrcIdx, Offset};
});
+ case X86::BI__builtin_ia32_vperm2f128_pd256:
+return interp__bu
1 - 100 of 260 matches
Mail list logo