[all-commits] [llvm/llvm-project] d89c65: [Clang] Fix filtering of inline namespaces for fri...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Fri Apr 7 09:06:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d89c6530fdb57da31f4750bf941a0e4a090c4474
      https://github.com/llvm/llvm-project/commit/d89c6530fdb57da31f4750bf941a0e4a090c4474
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2023-04-07 (Fri, 07 Apr 2023)

  Changed paths:
    M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
    M clang/test/SemaTemplate/friend.cpp

  Log Message:
  -----------
  [Clang] Fix filtering of inline namespaces for friend functions

PR D135370 implemented a performance improvement but it restricted the filtering
of declaration from inline namespace too much. In particular it did not filter
for the function template case.

This led to a regression and this PR removes that check.

This fixes: https://github.com/llvm/llvm-project/issues/61851

Differential Revision: https://reviews.llvm.org/D147762




More information about the All-commits mailing list