[clang-tools-extra] [clang-tidy] Add 'enable-check-profiling' with aggregated results to 'run-clang-tidy' (PR #151011)

2025-07-28 Thread Nicolas van Kempen via cfe-commits
@@ -489,6 +616,12 @@ async def main() -> None: export_fixes_dir = tempfile.mkdtemp() delete_fixes_dir = True +profile_dir: Optional[str] = None +delete_profile_dir = False nicovank wrote: Maybe get rid of `delete_profile_dir` and just

[clang-tools-extra] [clang-tidy] Add 'enable-check-profiling' with aggregated results to 'run-clang-tidy' (PR #151011)

2025-07-28 Thread Nicolas van Kempen via cfe-commits
@@ -178,6 +182,122 @@ def merge_replacement_files(tmpdir: str, mergefile: str) -> None: open(mergefile, "w").close() +def aggregate_profiles(profile_dir: str) -> Dict[str, float]: +"""Aggregate timing data from multiple profile JSON files""" +aggregated: Dict

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-07-28 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/143230 >From 7b5855fef30ef35172e90dade5bdc6de492f5940 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Fri, 6 Jun 2025 18:50:28 -0700 Subject: [PATCH] [runtimes][PAC] Harden unwinding when possible (#138571) This harde

[clang] [CIR] Upstream support for function-level variable decompositions (PR #151073)

2025-07-28 Thread Morris Hafner via cfe-commits
https://github.com/mmha created https://github.com/llvm/llvm-project/pull/151073 This implements support for structured bindings on a function scope level. It does not add support for global structured bindings. >From 1a77ffaa97180947a4bfb5c09d801f7feb9b173b Mon Sep 17 00:00:00 2001 From: Morri

[clang] [CIR] Upstream support for function-level variable decompositions (PR #151073)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Morris Hafner (mmha) Changes This implements support for structured bindings on a function scope level. It does not add support for global structured bindings. --- Full diff: https://github.com/llvm/llvm-project/pull/151073.diff 5 Files

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-07-28 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Force push+rebase because I've significantly reworked and tidied the changes. I've centralized the schema definitions in each library, and made them explicit rather than constructed at each site. I've also replaced the __APPLE__ guards with feature guards which seems much more r

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-07-28 Thread Oliver Hunt via cfe-commits
ojhunt wrote: (if linux folk could retest to see how badly I have broken everything that would be great) https://github.com/llvm/llvm-project/pull/143230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang] [NFC] [Sema] [Modules] Use DynamicRecursiveASTVisitor to reduce generted code size (PR #151074)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes It is better to use DynamicRecursiveASTVisitor than RecursiveASTVisitor as it can reduce the generated size. And also avoid using a template type to present callbacks to a

[clang] [NFC] [Sema] [Modules] Use DynamicRecursiveASTVisitor to reduce generted code size (PR #151074)

2025-07-28 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/151074 It is better to use DynamicRecursiveASTVisitor than RecursiveASTVisitor as it can reduce the generated size. And also avoid using a template type to present callbacks to avoid generating more code too. >Fro

[clang] [NFC] [Sema] [Modules] Use DynamicRecursiveASTVisitor to reduce generted code size (PR #151074)

2025-07-28 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: I didn't use `function_ref` as it seems not safe to store functions. https://github.com/llvm/llvm-project/pull/151074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Expression in assumption attribute should be full expression (PR #150814)

2025-07-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/24252 Here is the relevant piece of the build log fo

[clang] [Analysis] Prevent revisiting block when searching for noreturn vars (PR #150582)

2025-07-28 Thread Serge Pavlov via cfe-commits
https://github.com/spavloff updated https://github.com/llvm/llvm-project/pull/150582 >From c63685694e0d2ffb7599006aa08c6032eafd2edb Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Fri, 25 Jul 2025 13:35:19 +0700 Subject: [PATCH 1/2] [Analysis] Prevent revisiting block when searching for nore

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-28 Thread via cfe-commits
@@ -107,3 +110,282 @@ void Cygwin::AddClangSystemIncludeArgs(const ArgList &DriverArgs, addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/w32api"); } + +void cygwin::Linker::Constru

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-28 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/146649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-28 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 commented: Thanks for the patch and the nice test coverage! A few comments/questions: https://github.com/llvm/llvm-project/pull/146649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-28 Thread Nathan Ridge via cfe-commits
@@ -4368,11 +4409,14 @@ TEST(CompletionTest, SkipExplicitObjectParameter) { Annotations Code(R"cpp( struct A { void foo(this auto&& self, int arg); + void bar(this A self, int arg); }; int main() { A a {}; - a.^ + a.$c1^s -

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-28 Thread Nathan Ridge via cfe-commits
@@ -4386,12 +4430,24 @@ TEST(CompletionTest, SkipExplicitObjectParameter) { MockFS FS; auto Inputs = TU.inputs(FS); - auto Result = codeComplete(testPath(TU.Filename), Code.point(), - Preamble.get(), Inputs, Opts); - - EXPECT_THAT(Result.Compl

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-28 Thread Nathan Ridge via cfe-commits
@@ -4368,11 +4409,14 @@ TEST(CompletionTest, SkipExplicitObjectParameter) { Annotations Code(R"cpp( struct A { void foo(this auto&& self, int arg); + void bar(this A self, int arg); }; int main() { A a {}; - a.^ + a.$c1^s + (&

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-28 Thread Nathan Ridge via cfe-commits
@@ -1,14 +1,42 @@ struct A { - void foo(this A self, int arg); + void foo(this auto&& self, int arg); + void bar(this A self, int arg); }; -int main() { +int func1() { A a {}; a. } -// RUN: %clang_cc1 -cc1 -fsyntax-only -code-completion-at=%s:%(line-2):5 -std=c++23

[clang-tools-extra] [clang-tidy] Add 'enable-check-profiling' with aggregated results to 'run-clang-tidy' (PR #151011)

2025-07-28 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/151011 >From 65a04c0b903243bbc854477075b8e9e1a62fdfeb Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 28 Jul 2025 21:12:04 +0300 Subject: [PATCH 1/3] [clang-tidy] Add 'enable-check-profiling' with aggregated

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-28 Thread via cfe-commits
@@ -107,3 +110,282 @@ void Cygwin::AddClangSystemIncludeArgs(const ArgList &DriverArgs, addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/w32api"); } + +void cygwin::Linker::Constru

[clang] [Basic] Remove getVirtualFile (PR #151086)

2025-07-28 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151086 This patch removes getVirtualFile because it has been deprecated for more than 10 months since: commit b1aea98cfa357e23f4bb52232da5f41781f23bff Author: Jan Svoboda Date: Wed Sep 25 10:36:44 2024

[clang] [Basic] Remove getVirtualFile (PR #151086)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes This patch removes getVirtualFile because it has been deprecated for more than 10 months since: commit b1aea98cfa357e23f4bb52232da5f41781f23bff Author: Jan Svoboda Date:

[clang] [Basic] Remove getVirtualFile (PR #151086)

2025-07-28 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/151086 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [wip][Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-28 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/25] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang] [llvm] [wip][Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-28 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/24] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang] [llvm] [wip][Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-28 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/26] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang] [CIR][NFC] Reformat Attr to use common CIR_ prefix and traits style (PR #150694)

2025-07-28 Thread Henrich Lauko via cfe-commits
xlauko wrote: ### Merge activity * **Jul 29, 5:37 AM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/150694). https://github.com/llvm/llvm-project/pull/150694 _

[clang] 2b8696b - [CIR][NFC] Reformat Attr to use common CIR_ prefix and traits style (#150694)

2025-07-28 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-07-29T07:38:51+02:00 New Revision: 2b8696b58e25f53f23d35a3904c111c1ae61d6f4 URL: https://github.com/llvm/llvm-project/commit/2b8696b58e25f53f23d35a3904c111c1ae61d6f4 DIFF: https://github.com/llvm/llvm-project/commit/2b8696b58e25f53f23d35a3904c111c1ae61d6f4.diff

[clang] [CIR][NFC] Reformat Attr to use common CIR_ prefix and traits style (PR #150694)

2025-07-28 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko closed https://github.com/llvm/llvm-project/pull/150694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Always track item types in InterpStack (PR #151088)

2025-07-28 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/151088 This has been a long-standing problem, but we didn't use to call the destructors of items on the stack unless we explicitly `pop()` or `discard()` them. When interpretation was interrupted midway-through (bec

[clang] [clang][bytecode] Always track item types in InterpStack (PR #151088)

2025-07-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This has been a long-standing problem, but we didn't use to call the destructors of items on the stack unless we explicitly `pop()` or `discard()` them. When interpretation was interrupted midway-through (b

[clang-tools-extra] [clang-tidy] Add 'enable-check-profiling' with aggregated results to 'run-clang-tidy' (PR #151011)

2025-07-28 Thread Baranov Victor via cfe-commits
@@ -178,6 +182,122 @@ def merge_replacement_files(tmpdir: str, mergefile: str) -> None: open(mergefile, "w").close() +def aggregate_profiles(profile_dir: str) -> Dict[str, float]: +"""Aggregate timing data from multiple profile JSON files""" +aggregated: Dict

[clang] [clang-tools-extra] [clang]: Support `analyzer_noreturn` attribute in `CFG` (PR #150952)

2025-07-28 Thread Andrey Karlov via cfe-commits
https://github.com/negativ updated https://github.com/llvm/llvm-project/pull/150952 >From 417b4e465744f9a1d1704c87da4587626c9f5411 Mon Sep 17 00:00:00 2001 From: Andrey Karlov Date: Mon, 28 Jul 2025 16:23:21 +0300 Subject: [PATCH 1/2] Initial implementation --- .../bugprone/unchecked-optional

[clang-tools-extra] [clang-tidy] Add 'enable-check-profiling' with aggregated results to 'run-clang-tidy' (PR #151011)

2025-07-28 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/151011 >From 65a04c0b903243bbc854477075b8e9e1a62fdfeb Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 28 Jul 2025 21:12:04 +0300 Subject: [PATCH 1/4] [clang-tidy] Add 'enable-check-profiling' with aggregated

[clang] [llvm] [wip][Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-28 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/23] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Carlos Galvez via cfe-commits
@@ -1336,6 +1336,45 @@ class MatchASTVisitor : public RecursiveASTVisitor, return false; } + bool isInSystemHeader(const SourceLocation &Loc) { +const SourceManager &SM = getASTContext().getSourceManager(); +return SM.isInSystemHeader(Loc); + } + + template

[clang] [Preprocessor] Do not expand macros if the input is already preprocessed (PR #137665)

2025-07-28 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez closed https://github.com/llvm/llvm-project/pull/137665 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8b020d5 - [Preprocessor] Do not expand macros if the input is already preprocessed (#137665)

2025-07-28 Thread via cfe-commits
Author: Juan Manuel Martinez Caamaño Date: 2025-07-29T08:49:36+02:00 New Revision: 8b020d5434078145e2fd2b4f1a48bb1c78ace491 URL: https://github.com/llvm/llvm-project/commit/8b020d5434078145e2fd2b4f1a48bb1c78ace491 DIFF: https://github.com/llvm/llvm-project/commit/8b020d5434078145e2fd2b4f1a48bb1

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-28 Thread via cfe-commits
https://github.com/tyan0 updated https://github.com/llvm/llvm-project/pull/147960 >From 5a02673773031f782ccef1a510a58cbb80681f76 Mon Sep 17 00:00:00 2001 From: Takashi Yano Date: Thu, 10 Jul 2025 21:55:05 +0900 Subject: [PATCH] [Clang][Driver] Revise Cygwin ToolChain to call linker directly .

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-28 Thread via cfe-commits
@@ -107,3 +110,282 @@ void Cygwin::AddClangSystemIncludeArgs(const ArgList &DriverArgs, addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/w32api"); } + +void cygwin::Linker::Constru

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/151077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3ea3e33 - [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (#151077)

2025-07-28 Thread via cfe-commits
Author: Phoebe Wang Date: 2025-07-29T14:52:14+08:00 New Revision: 3ea3e334cc19cdd34416b546ac4b4a24b2018a28 URL: https://github.com/llvm/llvm-project/commit/3ea3e334cc19cdd34416b546ac4b4a24b2018a28 DIFF: https://github.com/llvm/llvm-project/commit/3ea3e334cc19cdd34416b546ac4b4a24b2018a28.diff L

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang closed https://github.com/llvm/llvm-project/pull/151077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang milestoned https://github.com/llvm/llvm-project/pull/151077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExprConst] Consider integer pointers of value 0 nullptr (PR #150164)

2025-07-28 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/150164 >From b9655ff6d54475b5697a63571734192c92a6af07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 23 Jul 2025 06:05:21 +0200 Subject: [PAT

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread Phoebe Wang via cfe-commits
phoebewang wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/3ea3e334cc19cdd34416b546ac4b4a24b2018a28 https://github.com/llvm/llvm-project/pull/151077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [llvm] [Clang][OpenMP] Non-contiguous strided update (PR #144635)

2025-07-28 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 updated https://github.com/llvm/llvm-project/pull/144635 >From 940d6dcd37dba9b8c9d8b945d4ff1b6f735f3ef1 Mon Sep 17 00:00:00 2001 From: amtiwari Date: Mon, 16 Jun 2025 01:07:01 -0400 Subject: [PATCH] strided_update_offloading with lit-offload and clang-tests --- cla

[clang] [Analysis] Prevent revisiting block when searching for noreturn vars (PR #150582)

2025-07-28 Thread Serge Pavlov via cfe-commits
@@ -225,3 +225,20 @@ extern void abc_02(func_type *); abc_02(&func_ptr); func_ptr(); } // expected-warning {{function declared 'noreturn' should not return}} + +namespace Issue150336 { +void free(void *); +typedef void (*sel_freefunc)(void *); +struct gmx_ana_selmethod_t {

[clang] [X86][AVX10.2] Fix VNNIINT16 maskz intrinsics arguments order (PR #151077)

2025-07-28 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#151092 https://github.com/llvm/llvm-project/pull/151077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP] Adds omp_target_is_accessible routine (PR #138294)

2025-07-28 Thread via cfe-commits
@@ -195,6 +196,48 @@ EXTERN int omp_target_is_present(const void *Ptr, int DeviceNum) { return Rc; } +/// Check whether a pointer is accessible from a device. +/// the functionality is available in OpenMP 5.1 and later +/// OpenMP 5.1 +/// omp_target_is_accessible checks wh

[clang] [clang] Fix potential constant expression checking with constexpr-unknown. (PR #149227)

2025-07-28 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: And a few more: ``` constexpr auto& type(const PolyBase& b) { return typeid(b); } // dynamic_cast constexpr const void* dyncast(const PolyBase& b) { return dynamic_cast(&b); } constexpr int sub(int (&a)[], int (&b)[]) { return a-b; } constexpr int* add(int &a) { return &a

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp edited https://github.com/llvm/llvm-project/pull/151035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-07-28 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/151035 >From d52db8ca5d53d021852f85600a63ba235e73fb0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= Date: Thu, 24 Jul 2025 21:10:43 + Subject: [PATCH] [clang-tidy] Avoid matching nodes in sy

<    1   2   3   4   5