[all-commits] [llvm/llvm-project] 60f7fa: [clang][NFC] Refactor `Comment::CommentKind`

Vlad Serebrennikov via All-commits all-commits at lists.llvm.org
Mon Nov 6 11:17:20 PST 2023


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

  Changed paths:
    M clang/include/clang/AST/Comment.h
    M clang/include/clang/AST/CommentVisitor.h
    M clang/lib/AST/Comment.cpp
    M clang/lib/Index/CommentToXML.cpp
    M clang/tools/libclang/CXComment.cpp

  Log Message:
  -----------
  [clang][NFC] Refactor `Comment::CommentKind`

This patch converts `Comment::CommentKind` into a scoped enum at namespace scope, making it eligible for forward declaring. This is useful for e.g. annotating bit-fields with `preferred_type`.




More information about the All-commits mailing list