[all-commits] [llvm/llvm-project] 239f8b: [AST] RecursiveASTVisitor: Don't traverse the alia...

Haojian Wu via All-commits all-commits at lists.llvm.org
Thu May 16 03:45:10 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 239f8b9eb0725b4c6ff8342717b6abbfc9a7915a
      https://github.com/llvm/llvm-project/commit/239f8b9eb0725b4c6ff8342717b6abbfc9a7915a
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2024-05-16 (Thu, 16 May 2024)

  Changed paths:
    M clang/include/clang/AST/RecursiveASTVisitor.h
    A clang/unittests/Tooling/RecursiveASTVisitorTests/DeductionGuide.cpp

  Log Message:
  -----------
  [AST] RecursiveASTVisitor: Don't traverse the alias deduction guides in the default mode. (#91454)

By default (`shouldVisitImplicitCode()` returns `false`), RAV should not
traverse AST nodes that are not spelled in the source code. Deduction
guides for alias templates are always synthesized, so they should not be
traversed.

This is usually done by checking the implicit bit of the Decl. However,
this doesn't work deduction guides that are synthesized from explicit
user-defined deduction guides, as we must maintain the explicit bit to
ensure correct overload resolution.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list