[all-commits] [llvm/llvm-project] 6b755b: [clang] Split up `SemaDeclAttr.cpp` (#93966)

Vlad Serebrennikov via All-commits all-commits at lists.llvm.org
Tue Jun 4 22:46:58 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b755b0cf4ddfdc14b0371fd6e361c9b6d0ff702
      https://github.com/llvm/llvm-project/commit/6b755b0cf4ddfdc14b0371fd6e361c9b6d0ff702
  Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
  Date:   2024-06-05 (Wed, 05 Jun 2024)

  Changed paths:
    M clang/include/clang/Sema/Attr.h
    M clang/include/clang/Sema/Sema.h
    M clang/include/clang/Sema/SemaARM.h
    A clang/include/clang/Sema/SemaAVR.h
    M clang/include/clang/Sema/SemaBPF.h
    M clang/include/clang/Sema/SemaHLSL.h
    A clang/include/clang/Sema/SemaM68k.h
    M clang/include/clang/Sema/SemaMIPS.h
    A clang/include/clang/Sema/SemaMSP430.h
    M clang/include/clang/Sema/SemaObjC.h
    A clang/include/clang/Sema/SemaOpenCL.h
    M clang/include/clang/Sema/SemaOpenMP.h
    M clang/include/clang/Sema/SemaRISCV.h
    M clang/include/clang/Sema/SemaSYCL.h
    A clang/include/clang/Sema/SemaSwift.h
    M clang/include/clang/Sema/SemaX86.h
    M clang/lib/Sema/CMakeLists.txt
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaAPINotes.cpp
    M clang/lib/Sema/SemaARM.cpp
    A clang/lib/Sema/SemaAVR.cpp
    M clang/lib/Sema/SemaBPF.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/lib/Sema/SemaHLSL.cpp
    A clang/lib/Sema/SemaM68k.cpp
    M clang/lib/Sema/SemaMIPS.cpp
    A clang/lib/Sema/SemaMSP430.cpp
    M clang/lib/Sema/SemaObjC.cpp
    A clang/lib/Sema/SemaOpenCL.cpp
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/lib/Sema/SemaRISCV.cpp
    M clang/lib/Sema/SemaSYCL.cpp
    A clang/lib/Sema/SemaSwift.cpp
    M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/lib/Sema/SemaX86.cpp

  Log Message:
  -----------
  [clang] Split up `SemaDeclAttr.cpp` (#93966)

This patch moves language- and target-specific functions out of
`SemaDeclAttr.cpp`. As a consequence, `SemaAVR`, `SemaM68k`,
`SemaMSP430`, `SemaOpenCL`, `SemaSwift` were created (but they are not
the only languages and targets affected).

Notable things are that `Sema.h` actually grew a bit, because of
templated helpers that rely on `Sema` that I had to make available from
outside of `SemaDeclAttr.cpp`. I also had to left CUDA-related in
`SemaDeclAttr.cpp`, because it looks like HIP is building up on top of
CUDA attributes.

This is a follow-up to #93179 and continuation of efforts to split
`Sema` up. Additional context can be found in #84184 and #92682.



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