[clang] [clang] Migrate away from ArrayRef(std::nullopt) (NFC) (PR #144982)

2025-06-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/144982 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Migrate away from ArrayRef(std::nullopt) (NFC) (PR #144982)

2025-06-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144982 ArrayRef has a constructor that accepts std::nullopt. This constructor dates back to the days when we still had llvm::Optional. Since the use of std::nullopt outside the context of std::optional is kind

[clang] [CodeGen] Use range-based for loops (NFC) (PR #144939)

2025-06-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/144939 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [TableGen] Use ListSeparator (NFC) (PR #144936)

2025-06-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/144936 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen] Use range-based for loops (NFC) (PR #144939)

2025-06-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144939 None >From 2b6ab2eb7a999f2f56ef637b00048388be00a6db Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 15 Jun 2025 21:53:53 -0700 Subject: [PATCH] [CodeGen] Use range-based for loops (NFC) --- clang

[clang] [TableGen] Use ListSeparator (NFC) (PR #144936)

2025-06-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144936 Note that an instance of ListSeparator evaluates to the empty string for the first time and then ", " for subsequent references. >From f0907a039a6de8fe305a5eac1b4e41fd1adff7bd Mon Sep 17 00:00:00 2001 Fr

[clang] [clang] Use StringRef in range-based for loops (NFC) (PR #144242)

2025-06-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/144242 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Remove unused includes (NFC) (PR #144285)

2025-06-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/144285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Remove unused includes (NFC) (PR #144285)

2025-06-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144285 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [llvm] [AVR] Add many new AVR MCU model definitions (PR #144229)

2025-06-15 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: @tomtor @benshi001 I just tried your latest revision on the top of tree, and both `check-llvm` and `check-clang` passed. https://github.com/llvm/llvm-project/pull/144229 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [Sema] Use a range-based for loop (NFC) (PR #144252)

2025-06-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/144252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [TableGen] Use range-based for loops (NFC) (PR #144250)

2025-06-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/144250 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [modularize] Use range-based for loops (NFC) (PR #144244)

2025-06-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/144244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Use a range-based for loop (NFC) (PR #144252)

2025-06-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata edited https://github.com/llvm/llvm-project/pull/144252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use a range-based for loop (NFC) (PR #144252)

2025-06-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144252 Note that LLVM Coding Standards discourages for_each. >From 47aa7c01c12cf63356eeae4034c89b2174f5f06e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 15 Jun 2025 00:39:27 -0700 Subject: [PATCH] [cl

[clang] [TableGen] Use range-based for loops (NFC) (PR #144250)

2025-06-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144250 None >From 570adaad1a2be7adea2c2d303505b7d7b9b67d94 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 15 Jun 2025 00:08:53 -0700 Subject: [PATCH] [TableGen] Use range-based for loops (NFC) --- .../

[clang-tools-extra] [modularize] Use range-based for loops (NFC) (PR #144244)

2025-06-14 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144244 None >From 9ea5ce57ebb032faf0ee086e4574fc1424f76990 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 13 Jun 2025 09:06:58 -0700 Subject: [PATCH] [modularize] Use range-based for loops (NFC) --- cl

[clang] [clang] Use StringRef in range-based for loops (NFC) (PR #144242)

2025-06-14 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144242 When we iterate over std::vector, we can directly assign each element to StringRef. We do not need to go through separate statements. >From e5e1102d5d936347be78421c9bb244a0e2bb54d8 Mon Sep 17 00:00:00 2

[clang] [llvm] [AVR] Add many new AVR MCU model definitions (PR #144229)

2025-06-14 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: @tomtor https://github.com/llvm/llvm-project/actions/runs/15653757180/job/44101995731?pr=144229 is showing: ``` /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Misc/target-invalid-cpu-note/avr.c:314:16: error: CHECK-SAME: expected string not found in

[clang] [llvm] [AVR] Add many new AVR MCU model definitions (PR #144229)

2025-06-14 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thank you for updating the patch! https://github.com/llvm/llvm-project/pull/144229 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [llvm] [AVR] Add many new AVR MCU model definitions (PR #144229)

2025-06-14 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: @tomtor > my local compile did compile my files, but ended with: > > ``` > cc1plus: fatal error: > /home/tom/src/rust/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/LVSourceLanguage.cpp: > No such file or > directory > compilation terminated. > [1758/5167] Building CX

[clang] [llvm] [AVR] Add support for many new AVR MCUs (PR #143914)

2025-06-14 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: @tomtor @benshi001 @Patryk27 I've landed 62d8e001dac4b1a68f5b33c8784adba1335003f4 to revert this PR. I'm getting: ``` llvm/lib/Target/AVR/AVRDevices.td:591:27: error: Variable not defined: 'FamilyXMEGA2' def : Device<"avr64da28", FamilyXMEGA2, ELFArchXMEGA2>;

[clang] 62d8e00 - Revert "[AVR] Add support for many new AVR MCUs (#143914)"

2025-06-14 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-06-14T08:18:50-07:00 New Revision: 62d8e001dac4b1a68f5b33c8784adba1335003f4 URL: https://github.com/llvm/llvm-project/commit/62d8e001dac4b1a68f5b33c8784adba1335003f4 DIFF: https://github.com/llvm/llvm-project/commit/62d8e001dac4b1a68f5b33c8784adba1335003f4.diff L

[clang] [Format] Use llvm::min_element (NFC) (PR #143725)

2025-06-11 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143725 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Format] Use llvm::min_element (NFC) (PR #143725)

2025-06-11 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143725 llvm::min_elements allows us to pass a range. >From d2683d8bd12296ac559e8068521700b096e84da2 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 10 Jun 2025 11:49:54 -0700 Subject: [PATCH] [Format] Us

[clang] [clang] Use *Map::try_emplace (NFC) (PR #143563)

2025-06-10 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143563 - try_emplace(Key) is shorter than insert({Key, nullptr}). - try_emplace performs value initialization without value parameters. - We overwrite values on successful insertion anyway. >From 3a578a03d2318d

[clang] [clang] Use llvm::count (NFC) (PR #143228)

2025-06-09 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > You should always have a summary, for this one it could have simply been > "replace std::count with llvm::count in Sema::CheckBaseSpecifier" @shafik Ack. https://github.com/llvm/llvm-project/pull/143228 ___ cfe-commits mailing

[clang] [DirectoryWatcher] Use llvm::find (NFC) (PR #143337)

2025-06-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [DirectoryWatcher] Use llvm::find (NFC) (PR #143337)

2025-06-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143337 None >From 7db65a4b3ea588766a8cb693dda281f835ed9151 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 8 Jun 2025 17:41:54 -0700 Subject: [PATCH] [DirectoryWatcher] Use llvm::find (NFC) --- clang/un

[clang-tools-extra] [clangd] Use llvm::find (NFC) (PR #143317)

2025-06-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Use llvm::find (NFC) (PR #143317)

2025-06-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143317 None >From ea049e4ebb830c789ccc1e7d50cea84884922155 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 8 Jun 2025 09:00:26 -0700 Subject: [PATCH] [clangd] Use llvm::find (NFC) --- .../clangd/unittes

[clang-tools-extra] [clang-tools-extra] Use llvm::any_of (NFC) (PR #143281)

2025-06-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in AST/Type (PR #143258)

2025-06-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thanks! https://github.com/llvm/llvm-project/pull/143258 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in TemplateBase (PR #143257)

2025-06-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thanks! https://github.com/llvm/llvm-project/pull/143257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-move] Teach getDeclarationList to return ArrayRef (NFC) (PR #143278)

2025-06-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Use llvm::any_of (NFC) (PR #143281)

2025-06-07 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143281 None >From fb4b1787546b3a11bca7d79eae8900277748cdc5 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 7 Jun 2025 09:20:35 -0700 Subject: [PATCH] [clang-tools-extra] Use llvm::any_of (NFC) --- clang

[clang-tools-extra] [clang-move] Teach getDeclarationList to return ArrayRef (NFC) (PR #143278)

2025-06-07 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143278 getDeclarationList is used only for read-only access to the array. I don't think it's actually meant to return by value. >From d69392b80cdb2cb60aec005bcc4e18f5f9d4453a Mon Sep 17 00:00:00 2001 From: Kaz

[clang] [clang] Use llvm::count (NFC) (PR #143228)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143228 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Strip away lambdas (NFC) (PR #143226)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143226 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Drop const from a return type (NFC) (PR #143224)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143224 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::count (NFC) (PR #143228)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143228 None >From 70700b238caab426df97d2132a1cbcb56a3de1d5 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 6 Jun 2025 09:22:34 -0700 Subject: [PATCH] [clang] Use llvm::count (NFC) --- clang/lib/Sema/Sem

[clang] [clang] Strip away lambdas (NFC) (PR #143226)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143226 We don't need lambdas here. >From e1f047717a0b39911ec5a9d698bc6bed8e56 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 6 Jun 2025 09:12:42 -0700 Subject: [PATCH] [clang] Strip away lambdas (NF

[clang] [Sema] Drop const from a return type (NFC) (PR #143224)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143224 None >From 43d5ddb7d2f6ea21b9a7634dcbe5fca7964ec210 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 6 Jun 2025 11:04:39 -0700 Subject: [PATCH] [Sema] Drop const from a return type (NFC) --- clang

[clang] [clang] Fix a typo in documentation (PR #143169)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143169 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix a typo in documentation (PR #143169)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143169 None >From f684fdd113e2a0bcd6f34db11d839dccb540ff67 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 6 Jun 2025 09:30:46 -0700 Subject: [PATCH] [clang] Fix a typo in documentation --- clang/docs/R

[clang] [clang] Ensure newline at the end of files (NFC) (PR #143154)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143154 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use range-based for loops (NFC) (PR #143153)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143153 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Ensure newline at the end of files (NFC) (PR #143154)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143154 None >From 9d92d636b10b8ba7d8148ff16dba597d0d390cc0 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 5 Jun 2025 23:27:13 -0700 Subject: [PATCH] [clang] Ensure newline at the end of files (NFC) ---

[clang] [clang] Use range-based for loops (NFC) (PR #143153)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143153 Note that use of llvm::for_each is discouraged unless we have functors readily available. >From 1467cc073272b8d0b4d1ebeccc88fa12e07e882e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 5 Jun 2025

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Kazu Hirata via cfe-commits
@@ -90,4 +66,4 @@ computeUndriftMap(Module &M, IndexedInstrProfReader *MemProfReader, } // namespace memprof } // namespace llvm -#endif +#endif kazutakahirata wrote: nit: could we end with a newline here? A diff involving an unterminated line looks ugly.

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thanks for doing this! https://github.com/llvm/llvm-project/pull/142811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [llvm] [MemProf] Split MemProfiler into Instrumentation and Use. (PR #142811)

2025-06-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata edited https://github.com/llvm/llvm-project/pull/142811 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Remove unused local variables (NFC) (PR #142881)

2025-06-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142881 None >From 93f1720a346cf23771adb5caf329062a349e1dda Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 4 Jun 2025 12:35:24 -0700 Subject: [PATCH] [clang-tools-extra] Remove unused local variables (NFC

[clang] [tools] Remove unused local variables (NFC) (PR #142880)

2025-06-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142880 None >From 253456a94190d894a8d6241e8cc23b094c646702 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 4 Jun 2025 12:36:20 -0700 Subject: [PATCH] [tools] Remove unused local variables (NFC) --- clan

[clang] [ASTMatchers] Remove unused includes (NFC) (PR #142407)

2025-06-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/142407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Remove unused includes (NFC) (PR #142406)

2025-06-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/142406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Remove unused includes (NFC) (PR #142406)

2025-06-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/142406 >From 6fe2dd8eb56b768f4e22a04c1affb1d7f767bb68 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 2 Jun 2025 07:16:08 -0700 Subject: [PATCH] [APINotes] Remove unused includes (NFC) These are identifie

[clang] [ASTMatchers] Remove unused includes (NFC) (PR #142407)

2025-06-04 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: Friendly ping. Thanks! https://github.com/llvm/llvm-project/pull/142407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Remove unused includes (NFC) (PR #142406)

2025-06-04 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: Friendly ping. Thanks! https://github.com/llvm/llvm-project/pull/142406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ASTMatchers] Remove unused includes (NFC) (PR #142407)

2025-06-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142407 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [APINotes] Remove unused includes (NFC) (PR #142406)

2025-06-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142406 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [Serialization] Remove unused includes (NFC) (PR #142300)

2025-06-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/142300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [StaticAnalyzer] Remove unused includes (NFC) (PR #142301)

2025-05-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/142301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [StaticAnalyzer] Remove unused includes (NFC) (PR #142301)

2025-05-31 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: Back to the drawing board. https://github.com/llvm/llvm-project/pull/142301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [StaticAnalyzer] Remove unused includes (NFC) (PR #142301)

2025-05-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142301 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [Serialization] Remove unused includes (NFC) (PR #142300)

2025-05-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142300 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [Format] Remove unused includes (NFC) (PR #142296)

2025-05-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/142296 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Basic] Remove unused includes (NFC) (PR #142295)

2025-05-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/142295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Format] Remove unused includes (NFC) (PR #142296)

2025-05-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142296 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [Basic] Remove unused includes (NFC) (PR #142295)

2025-05-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142295 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [Frontend] Remove unused includes (NFC) (PR #142256)

2025-05-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/142256 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Tooling] Remove unused includes (NFC) (PR #142257)

2025-05-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/142257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Analysis] Remove unused includes (NFC) (PR #142255)

2025-05-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/142255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Tooling] Remove unused includes (NFC) (PR #142257)

2025-05-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142257 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [Frontend] Remove unused includes (NFC) (PR #142256)

2025-05-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142256 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [Analysis] Remove unused includes (NFC) (PR #142255)

2025-05-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/142255 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [clang][bytecode] Make some builtins no-ops (PR #141952)

2025-05-29 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: @tbaederr I've landed 882e7331c4ba5582d3881b7bb93c0952e601336b to fix a warning from this PR. Thanks! https://github.com/llvm/llvm-project/pull/141952 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] 882e733 - [AST] Fix a warning

2025-05-29 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-05-29T15:48:14-07:00 New Revision: 882e7331c4ba5582d3881b7bb93c0952e601336b URL: https://github.com/llvm/llvm-project/commit/882e7331c4ba5582d3881b7bb93c0952e601336b DIFF: https://github.com/llvm/llvm-project/commit/882e7331c4ba5582d3881b7bb93c0952e601336b.diff L

[clang] 28eb66b - [Sema] Fix a warning

2025-05-29 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-05-29T09:10:19-07:00 New Revision: 28eb66b79413950e584b2c3d8581ae5dc858d6dc URL: https://github.com/llvm/llvm-project/commit/28eb66b79413950e584b2c3d8581ae5dc858d6dc DIFF: https://github.com/llvm/llvm-project/commit/28eb66b79413950e584b2c3d8581ae5dc858d6dc.diff L

[clang] [HLSL] Implement `SpirvType` and `SpirvOpaqueType` (PR #134034)

2025-05-27 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > @kazutakahirata sure, I’ll take a look @cassiebeckley I've posted #141687. Thanks! https://github.com/llvm/llvm-project/pull/134034 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [HLSL] Implement `SpirvType` and `SpirvOpaqueType` (PR #134034)

2025-05-27 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: @cassiebeckley I'm getting the following warnings in lldb. Would you mind taking a look? Thanks! ``` lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4137:11: error: enumeration value 'HLSLInlineSpirv' not handled in switch [-Werror,-Wswitch] 4137 | switch (q

[clang] f3b404b - [TableGen] Fix a warning

2025-05-27 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-05-27T09:08:45-07:00 New Revision: f3b404be973507432cf86c177978d9de708d850c URL: https://github.com/llvm/llvm-project/commit/f3b404be973507432cf86c177978d9de708d850c DIFF: https://github.com/llvm/llvm-project/commit/f3b404be973507432cf86c177978d9de708d850c.diff L

[clang] [Format] Use llvm::count_if (NFC) (PR #141518)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141518 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Parse] Remove unused includes (NFC) (PR #141524)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [StaticAnalyzer] Remove unused includes (NFC) (PR #141525)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Lex] Remove unused includes (NFC) (PR #141523)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141523 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Parse] Remove unused includes (NFC) (PR #141524)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141524 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [StaticAnalyzer] Remove unused includes (NFC) (PR #141525)

2025-05-26 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > I only spotchecked, but it should be good if it still builds. > > Btw, WDYT of IWYU? Maybe we could improve include hygiene for the static > analyzer. @steakhal Thanks for the review! I personally like the IWYU approach, but the LLVM project uses a different approach

[clang] [StaticAnalyzer] Remove unused includes (NFC) (PR #141525)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141525 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [Lex] Remove unused includes (NFC) (PR #141523)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141523 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [Format] Use llvm::count_if (NFC) (PR #141518)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141518 None >From 363881869140e8ce4874a91b9b46d64a9647a7a1 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 26 May 2025 09:43:03 -0700 Subject: [PATCH] [Format] Use llvm::count_if (NFC) --- clang/lib/For

[clang] [AST] Use llvm::none_of (NFC) (PR #141447)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141447 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141448 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Analysis] Use llvm::erase_if (NFC) (PR #141446)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141448 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [AST] Use llvm::none_of (NFC) (PR #141447)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141447 None >From acb3fc1898cc1ab8a388a45594f84fa9f61ed644 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 25 May 2025 10:32:08 -0700 Subject: [PATCH] [AST] Use llvm::none_of (NFC) --- clang/unittests/A

[clang] [Analysis] Use llvm::erase_if (NFC) (PR #141446)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141446 None >From 5042f47e7c990892c13e4de21ae7a4ff1baec308 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 25 May 2025 10:35:44 -0700 Subject: [PATCH] [Analysis] Use llvm::erase_if (NFC) --- clang/unitt

[clang] [ByteCode] Drop const from a return type (NFC) (PR #141415)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Remove unused includes (NFC) (PR #141420)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Remove unused includes (NFC) (PR #141419)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   6   7   8   9   10   >