llvm/llvm-project

[llvm] Document non-trivial `llvm::DenseMapBase` member functions

Open

#166,155 创建于 2025年11月3日

在 GitHub 查看
 (7 评论) (0 反应) (2 负责人)C++ (26,378 star) (10,782 fork)batch import
documentationenhancementgood first issuellvm:adt

描述

There are (now?) some non-trivial memberfunctions in DenseMapBase that would be good to document, possibly adding a code sample.

From looking at https://llvm.org/doxygen/classllvm_1_1DenseMap.html, examples include:

  1. try_emplace
  2. insert_or_assign
  3. emplace_or_assign
  4. lookup_or
  5. operator[] - should specify what happens if the key isn't yet in the map.

贡献者指南