[all-commits] [llvm/llvm-project] 6e35db: [clang][NFC] Refactor `PredefinedExpr::IdentKind`

Vlad Serebrennikov via All-commits all-commits at lists.llvm.org
Sun Nov 5 04:39:21 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e35db0694b2cb80ffe0c7edfed3090f9ede4805
      https://github.com/llvm/llvm-project/commit/6e35db0694b2cb80ffe0c7edfed3090f9ede4805
  Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
  Date:   2023-11-05 (Sun, 05 Nov 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/LambdaFunctionNameCheck.cpp
    M clang/include/clang/AST/Expr.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/Expr.cpp
    M clang/lib/AST/StmtProfile.cpp
    M clang/lib/AST/VTableBuilder.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/TreeTransform.h
    M clang/lib/Serialization/ASTWriterStmt.cpp

  Log Message:
  -----------
  [clang][NFC] Refactor `PredefinedExpr::IdentKind`

This patch converts `PredefinedExpr::IdentKind` into a scoped enum in namespace scope, making it eligible for forward declaring. This is useful in certain contexts, such as `preferred_type` annotations on bit-fields.




More information about the All-commits mailing list