llvm/llvm-project

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

Open

#166,155 opened on 2025年11月3日

GitHub で見る
 (7 comments) (0 reactions) (2 assignees)C++ (26,378 stars) (10,782 forks)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.

コントリビューターガイド