llvm/llvm-project

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

Aberta

#166.155 aberto em 3 de nov. de 2025

 (7 comentários) (0 reação) (2 responsáveis)C++ (10.782 forks)batch import
documentationenhancementgood first issuellvm:adt

Métricas do repositório

Stars
 (26.378 estrelas)
Métricas de merge de PR
 (Mesclagem média 1d 2h) (1.000 fundiu PRs em 30d)

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.

Guia do colaborador