llvm/llvm-project

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

Open

#166155 opened on Nov 3, 2025

View on GitHub
 (7 comments) (0 reactions) (2 assignees)C++ (26,378 stars) (10,782 forks)batch import
documentationenhancementgood first issuellvm:adt

Description

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.

Contributor guide