[all-commits] [llvm/llvm-project] 52bc4b: [NFC] [C++20] [Modules] Refactor Sema::isModuleUni...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Mon May 22 19:52:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 52bc4b16cb68d6d64c0d9499b2e6c1d719e78085
      https://github.com/llvm/llvm-project/commit/52bc4b16cb68d6d64c0d9499b2e6c1d719e78085
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2023-05-23 (Tue, 23 May 2023)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/include/clang/AST/DeclBase.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/DeclBase.cpp
    M clang/lib/Sema/SemaLookup.cpp
    M clang/lib/Sema/SemaModule.cpp
    M clang/lib/Sema/SemaOverload.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    A clang/test/Modules/redundant-template-default-arg4.cpp
    A clang/test/Modules/redundant-template-default-arg5.cpp

  Log Message:
  -----------
  [NFC] [C++20] [Modules] Refactor Sema::isModuleUnitOfCurrentTU into
Decl::isInAnotherModuleUnit

Refactor `Sema::isModuleUnitOfCurrentTU` to `Decl::isInAnotherModuleUnit`
to make code simpler a little bit. Note that although this patch
introduces a FIXME, this is an existing issue and this patch just tries
to describe it explicitly.




More information about the All-commits mailing list