[all-commits] [llvm/llvm-project] 325281: [clang] Use *Map::try_emplace (NFC) (#140477)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Mon May 19 06:20:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 325281631a3b5c089dd732d9ca10704431447859
      https://github.com/llvm/llvm-project/commit/325281631a3b5c089dd732d9ca10704431447859
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-05-19 (Mon, 19 May 2025)

  Changed paths:
    M clang/lib/AST/DeclBase.cpp
    M clang/lib/Basic/Diagnostic.cpp
    M clang/lib/Basic/SourceManager.cpp
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    M clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
    M clang/lib/Lex/PPLexerChange.cpp
    M clang/lib/Lex/Preprocessor.cpp
    M clang/lib/Sema/SemaDecl.cpp

  Log Message:
  -----------
  [clang] Use *Map::try_emplace (NFC) (#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.



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