[all-commits] [llvm/llvm-project] 30dd65: [clang] Use *Map::try_emplace (NFC) (#143563)
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Tue Jun 10 11:32:24 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 30dd652c29f86de04d38220ac6bfbf783e2a339c
https://github.com/llvm/llvm-project/commit/30dd652c29f86de04d38220ac6bfbf783e2a339c
Author: Kazu Hirata <kazu at google.com>
Date: 2025-06-10 (Tue, 10 Jun 2025)
Changed paths:
M clang/include/clang/Basic/IdentifierTable.h
M clang/include/clang/ExtractAPI/API.h
M clang/lib/CodeGen/CodeGenTypes.cpp
M clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
Log Message:
-----------
[clang] Use *Map::try_emplace (NFC) (#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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list