[all-commits] [llvm/llvm-project] a6d0e8: [clang][NFC] Refactor enums that hold size of `Typ...

Vlad Serebrennikov via All-commits all-commits at lists.llvm.org
Thu Oct 26 08:23:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a6d0e8791e1015a12f8277e6032eae9fdab686fe
      https://github.com/llvm/llvm-project/commit/a6d0e8791e1015a12f8277e6032eae9fdab686fe
  Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M clang/include/clang/AST/DeclBase.h
    M clang/include/clang/AST/Type.h
    M clang/lib/Serialization/ASTWriterDecl.cpp

  Log Message:
  -----------
  [clang][NFC] Refactor enums that hold size of `Type` and `DeclContext` bit-fields (#70296)

This patch refactor said enums to hold total size of a bit-field, and not just non-inherited bits. This brings `Type` and `DeclContext` in line with `Comment` and `Stmt`. It also makes it unnecessary to list all transitive bases of a bit-field as unnamed bit-fields, which makes it more friendly towards debuggers.




More information about the All-commits mailing list