[clang-tools-extra] [modularize] Use a range-based for loop (NFC) (PR #139398)

2025-05-10 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/139398 None >From 1b2af11d771f4e6903e48ac356fa8e6eb3cfc28f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 10 May 2025 08:17:21 -0700 Subject: [PATCH] [modularize] Use a range-based for loop (NFC) --- c

[clang] [clang] Remove redundant calls to std::unique_ptr::get (NFC) (PR #139399)

2025-05-10 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/139399 None Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica

[clang] [clang] Remove redundant calls to std::unique_ptr::get (NFC) (PR #139399)

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

[clang-tools-extra] [clang-tidy] Use StringRef::consume_back (NFC) (PR #139412)

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

[clang-tools-extra] [modularize] Use std::tie to implement operator< (NFC) (PR #139410)

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

[clang] [NFC][Clang] Adopt `TrailingObjects` convenience API in MacroArgs (PR #139635)

2025-05-12 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: @jurahul Thanks for the pointer in the description. So, in this particular case, we end up invoking the following? ``` FirstTrailingType *getTrailingObjects() { static_assert(sizeof...(TrailingTys) == 1, "Can use non-templated getTrailingObjects()

[clang] [Serialization] Use StringRef::substr (NFC) (PR #139678)

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

[clang-tools-extra] [include-cleaner] Use heterogeneous lookups (NFC) (PR #139685)

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

[clang-tools-extra] [include-cleaner] Use heterogeneous lookups (NFC) (PR #139685)

2025-05-13 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/139685 Heterogenous lookups allow us to call find with StringRef, avoiding a temporary heap allocation of std::string. >From 9615232d9257d6d263d40656f2947d281848046e Mon Sep 17 00:00:00 2001 From: Kazu Hirata

[clang] [NFC][Clang] Adopt `TrailingObjects` API to build ArrayRef (PR #139639)

2025-05-12 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thanks! https://github.com/llvm/llvm-project/pull/139639 ___ 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::unique (NFC) (PR #139663)

2025-05-12 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/139663 ___ 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 redundant calls to std::unique_ptr::get (NFC) (PR #138774)

2025-05-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/138774 ___ 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 redundant calls to std::unique_ptr::get (NFC) (PR #138774)

2025-05-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/138774 None >From a524a8098d5a513259d0d82b262d4b5a769d4d1f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 6 May 2025 15:20:38 -0700 Subject: [PATCH] [clang-tools-extra] Remove redundant calls to std::un

[clang] [clang] Use std::tie to implement operator< (NFC) (PR #139438)

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

[clang-tools-extra] [clangd] Use StringRef::consume_back_insensitive (NFC) (PR #139456)

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

[clang] [Driver] Use StringRef::substr instead of StringRef::slice (NFC) (PR #139455)

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

[clang] [TableGen] Use StringRef::take_while (NFC) (PR #139461)

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

[clang] [Driver] Use StringRef::consume_back (NFC) (PR #139478)

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

[clang] [Serialization] Use StringRef::substr (NFC) (PR #139678)

2025-05-13 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/139678 StringRef::substr is shorter here because we can rely on its default second parameter. >From 1c1fe61270e62460d09a3d55b7ff23f1d797e72f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 12 May 2025 09

[clang] [AST] Use llvm::upper_bound (NFC) (PR #139664)

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

[clang] [Frontend] Avoid creating a temporary instance of std::string (NFC) (PR #140326)

2025-05-16 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140326 Since getLastArgValue returns StringRef, and the constructor of SmallString accepts StringRef, we do not need to go through a temporary instance of std::string. >From 0f87807ef3159de0350dd85b4f5f8dd289c7

[clang] [Basic] Use llvm::erase_if (NFC) (PR #140309)

2025-05-16 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140309 None >From dd892e582c3671e53911d15f2a3e5d3bec9fca9b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 15 May 2025 21:28:40 -0700 Subject: [PATCH] [Basic] Use llvm::erase_if (NFC) --- clang/lib/Basi

[clang] [Driver] Use llvm::is_contained (NFC) (PR #140310)

2025-05-16 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140310 None >From 46eaadc24d6874f25e161cecb4a2e782a8c3ea35 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 16 May 2025 14:24:41 -0700 Subject: [PATCH] [Driver] Use llvm::is_contained (NFC) --- clang/lib

[clang] [Basic] Use llvm::erase_if (NFC) (PR #140309)

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

[clang] [Driver] Use llvm::is_contained (NFC) (PR #140310)

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

[clang] [Frontend] Avoid creating a temporary instance of std::string (NFC) (PR #140326)

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

[clang] [Sema] Use llvm::is_contained (NFC) (PR #139833)

2025-05-13 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/139833 None Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica

[clang] [NFC][Clang] Adopt simplified `getTrailingObjects` in DeclCXX (PR #140078)

2025-05-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thanks! https://github.com/llvm/llvm-project/pull/140078 ___ 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 DeclFriend (PR #140081)

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

[clang] [Sema] Use llvm::is_contained (NFC) (PR #139833)

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

[clang] [clang] Use llvm::replace (NFC) (PR #140264)

2025-05-16 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140264 None >From debfd4986c2a075f997b42dbcb0f9414c5f49ec5 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 16 May 2025 07:40:44 -0700 Subject: [PATCH] [clang] Use llvm::replace (NFC) --- clang/include/c

[clang-tools-extra] [clang-tidy] Use std::binary_search (NFC) (PR #140263)

2025-05-16 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140263 None >From 89f75ba264c7a7677be5888909a3dca85b96ca35 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 15 May 2025 21:28:40 -0700 Subject: [PATCH] [clang-tidy] Use std::binary_search (NFC) --- .../c

[clang-tools-extra] [clang-tools-extra] Use llvm::replace (NFC) (PR #140200)

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

[clang] [clang] Use llvm::binary_search (NFC) (PR #140216)

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

[clang] [clang] Fix typos in documentation (PR #140211)

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

[clang-tools-extra] [clang-tidy] Use std::binary_search (NFC) (PR #140263)

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

[clang] [clang] Use llvm::replace (NFC) (PR #140264)

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

[clang-tools-extra] [clang-include-fixer] Remove an unused "using" decl (NFC) (PR #140354)

2025-05-16 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140354 We do use MappingTraits in this file, but all uses are inside the llvm::yaml namespace, so we don't rely on the "using" decl. >From 217f8042a785d0c1f452e62bc00b84c1fb8caebf Mon Sep 17 00:00:00 2001 From:

[clang] [clang] Remove redundant control flow statements (NFC) (PR #140359)

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

[clang] [clang] Remove redundant control flow statements (NFC) (PR #140359)

2025-05-16 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140359 None >From cc0cb618aae18b3f448cb5504de68cadeb0a4516 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 16 May 2025 23:46:59 -0700 Subject: [PATCH] [clang] Remove redundant control flow statements (NFC

[clang-tools-extra] [clang-include-fixer] Remove an unused "using" decl (NFC) (PR #140354)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/140354 ___ 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::find_if (NFC) (PR #140411)

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

[clang] [clang] Use llvm::stable_sort (NFC) (PR #140413)

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

[clang] [CodeGen] Use DenseMap::try_emplace (NFC) (PR #140430)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140430 We can simplify the code with DenseMap::try_emplace and structured binding. Note that DenseMap::try_emplace default-constructs the value if omitted. >From 9a898fe585ed452ddcb2888bfdee4440687948dc Mon Se

[clang] [clang] Use llvm::stable_sort (NFC) (PR #140413)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140413 None >From 9f7a4c77bd4621edab8a53350a67e46dbb1923ed Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 17 May 2025 14:41:32 -0700 Subject: [PATCH] [clang] Use llvm::stable_sort (NFC) --- clang/lib/A

[clang-tools-extra] [clang-tools-extra] Use llvm::find_if (NFC) (PR #140411)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140411 None >From b1dde26817af09f18cfe5fd4a1779d3720b7f6b8 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 17 May 2025 14:36:45 -0700 Subject: [PATCH] [clang-tools-extra] Use llvm::find_if (NFC) --- ...

[clang] [clang] Use llvm::max_element (NFC) (PR #140435)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140435 None >From b83d98ae890773513065cad304cf6a805e96138c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 17 May 2025 21:27:54 -0700 Subject: [PATCH] [clang] Use llvm::max_element (NFC) --- clang/lib/C

[clang] [AST] Remove "const" from "const ArrayRef" (NFC) (PR #140437)

2025-05-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140437 None >From 0226419ba795d16457c9a6aa45c4b89c20d4494b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 17 May 2025 22:31:37 -0700 Subject: [PATCH] [AST] Remove "const" from "const ArrayRef" (NFC) ---

[clang] [clang] Use llvm::unique (NFC) (PR #140459)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/140459 ___ 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::is_contained (NFC) (PR #140456)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/140456 ___ 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::max_element (NFC) (PR #140458)

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

[clang] [Sema] Use llvm::is_contained (NFC) (PR #140455)

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

[clang] [CodeGen] Use DenseMap::try_emplace (NFC) (PR #140430)

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

[clang] [clang] Use llvm::max_element (NFC) (PR #140435)

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

[clang] [AST] Remove "const" from "const ArrayRef" (NFC) (PR #140437)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/140437 ___ 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 redundant control flow statements (NFC) (PR #140846)

2025-05-20 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140846 None >From 0adfa898b7196c7a4841b8bc73c2e0be2fc19bc5 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 20 May 2025 22:33:57 -0700 Subject: [PATCH] [clang-tools-extra] Remove redundant control flow sta

[clang-tools-extra] [clang-tools-extra] Remove redundant control flow statements (NFC) (PR #140846)

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

[clang] [clang] Use llvm::is_sorted (NFC) (PR #140468)

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

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

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

[clang] [llvm] [mlir] [LLVM][TableGen] Rename `ListInit::getValues()` to `getElements()` (PR #140289)

2025-05-19 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: I've landed 195e640846765402d1a622006e6a9f9fa3192955 to fix the build failure from this PR. Thanks! https://github.com/llvm/llvm-project/pull/140289 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [clang] Fix typos in documentation (PR #140663)

2025-05-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140663 None >From 50561fa88fc013ba0538283ca9b6ba680f51b009 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 16 May 2025 08:53:07 -0700 Subject: [PATCH] [clang] Fix typos in documentation --- clang/docs/B

[clang] [AST] Drop const from a return type (NFC) (PR #140665)

2025-05-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140665 None >From 2aa8fa9aeebc55cafc24a29ca95de008799aeea2 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 19 May 2025 20:13:08 -0700 Subject: [PATCH] [AST] Drop const from a return type (NFC) --- clang

[clang-tools-extra] [clang-tools-extra] Use llvm::is_contained (NFC) (PR #140456)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140456 None >From b1642c07d474b0f7b14515a339e646c0e86ba9ae Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 18 May 2025 08:11:43 -0700 Subject: [PATCH] [clang-tools-extra] Use llvm::is_contained (NFC) ---

[clang] [Sema] Use llvm::is_contained (NFC) (PR #140455)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140455 None >From 0b097045043c8a1f0815ac364395c5f0f9445b92 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 18 May 2025 07:48:25 -0700 Subject: [PATCH] [Sema] Use llvm::is_contained (NFC) --- clang/lib/S

[clang-tools-extra] [clang-tools-extra] Use llvm::max_element (NFC) (PR #140458)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140458 None >From 7b986a3a76948eea96280bf7e48e4ecfc24e8da4 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 18 May 2025 07:51:16 -0700 Subject: [PATCH] [clang-tools-extra] Use llvm::max_element (NFC) ---

[clang] [clang] Use llvm::unique (NFC) (PR #140459)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140459 None >From f8c8c98d787da0ee539b6dca695406004a7c4f10 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 18 May 2025 07:46:08 -0700 Subject: [PATCH] [clang] Use llvm::unique (NFC) --- clang/include/cl

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

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140477 We can simplify the code with *Map::try_emplace where we need default-constructed values while avoding calling constructors when keys are already present. >From c3a085a286f1e876a721f6299622a681905013ed M

[clang] [clang] Use llvm::is_sorted (NFC) (PR #140468)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140468 None >From 4d09559c9f7e87718ca48ac35a2d178c58000b23 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 18 May 2025 10:44:18 -0700 Subject: [PATCH] [clang] Use llvm::is_sorted (NFC) --- clang/lib/API

[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] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread Kazu Hirata via cfe-commits
@@ -537,7 +537,7 @@ class StdLibraryFunctionsChecker /// a later bug report created by ErrnoChecker. /// Empty return value means that 'errno' related bug may not happen from /// the current analyzed function. -virtual const std::string describe(CheckerContext &

[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] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

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

[clang] [TableGen] Use StringRef::contains (NFC) (PR #141413)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141413 ___ 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

[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] [CodeGen] Remove unused includes (NFC) (PR #141418)

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

[clang] [AST] Remove unused includes (NFC) (PR #141417)

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

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141414 ___ 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-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] [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] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141412 None >From 6872bfb8f44771df2edf29245fcce78f0df178a1 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 24 May 2025 18:52:40 -0700 Subject: [PATCH] [Driver] Use StringRef::consume_front (NFC) --- cla

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

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141415 None >From 9300bcb2f81f3bce140fca25b2f96544acec9e79 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 24 May 2025 20:41:08 -0700 Subject: [PATCH] [ByteCode] Drop const from a return type (NFC) ---

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141414 None >From eea35709eba0ed5d166ff16e73bffb466892992e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 24 May 2025 19:28:27 -0700 Subject: [PATCH] [StaticAnalyzer] Drop const from a return type (NFC)

[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] [AST] Remove unused includes (NFC) (PR #141417)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141417 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] [Sema] Remove unused includes (NFC) (PR #141419)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141419 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] [CodeGen] Remove unused includes (NFC) (PR #141418)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141418 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-tools-extra] [clang-tidy] Remove unused includes (NFC) (PR #141420)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141420 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] [TableGen] Use StringRef::contains (NFC) (PR #141413)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141413 None >From 7a9563378554901d70f08a38355e858465784f32 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 24 May 2025 18:59:05 -0700 Subject: [PATCH] [TableGen] Use StringRef::contains (NFC) --- clang/

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

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141382 ___ 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-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] [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] [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] [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] [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] [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] [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] [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] [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

<    8   9   10   11   12   13   14   >