[all-commits] [llvm/llvm-project] edc869: [lldb-vscode] Use a DenseMap to pacify overly aggr...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Thu Apr 22 04:09:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: edc869cb57fb4cf999c8a388b48ae4ecd027bfe7
      https://github.com/llvm/llvm-project/commit/edc869cb57fb4cf999c8a388b48ae4ecd027bfe7
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2021-04-22 (Thu, 22 Apr 2021)

  Changed paths:
    M lldb/tools/lldb-vscode/lldb-vscode.cpp

  Log Message:
  -----------
  [lldb-vscode] Use a DenseMap to pacify overly aggressive linters

Some linters get rather upset upon seeing
`std::unordered_map<const char*`, because it looks like a map of
strings but isn't. lldb uses interned strings so this is not a problem.
DenseMap is a better data structure for this anyways, so use that
instead.




More information about the All-commits mailing list