[all-commits] [llvm/llvm-project] 48a535: [clang][USR] Encode full decl-context also for ano...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Wed Oct 18 01:51:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 48a53509e851c93f352c967da1feb1c8fb2abd9a
      https://github.com/llvm/llvm-project/commit/48a53509e851c93f352c967da1feb1c8fb2abd9a
  Author: kadir çetinkaya <kadircet at google.com>
  Date:   2023-10-18 (Wed, 18 Oct 2023)

  Changed paths:
    M clang/lib/Index/USRGeneration.cpp
    A clang/test/Index/USR/decl-context.cpp

  Log Message:
  -----------
  [clang][USR] Encode full decl-context also for anon namespaces (#68325)

Otherwise we create collisions, e.g. a struct named Foo inside an
anonymous
namespace will get the same USR no matter what the surrounding
decl-context is.




More information about the All-commits mailing list