[PATCH] D135816: [clang] Support `constexpr` for some `ASTNodeKind` member functions

2022-10-13 Thread Eric Li via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. li.zhe.hua marked an inline comment as done. Closed by commit rG576283c3a8ef: [clang] Support `constexpr` for some `ASTNodeKind` member functions (authored by li.zhe.hu

[PATCH] D135816: [clang] Support `constexpr` for some `ASTNodeKind` member functions

2022-10-13 Thread Eric Li via Phabricator via cfe-commits
li.zhe.hua marked an inline comment as done. li.zhe.hua added inline comments. Comment at: clang/include/clang/AST/ASTTypeTraits.h:90-92 bool operator<(const ASTNodeKind &Other) const { return KindId < Other.KindId; } aaron.ballman wrote: > Any reason

[PATCH] D135816: [clang] Support `constexpr` for some `ASTNodeKind` member functions

2022-10-13 Thread Eric Li via Phabricator via cfe-commits
li.zhe.hua updated this revision to Diff 467512. li.zhe.hua added a comment. Appease clang-format, add constexpr to operator<. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D135816/new/ https://reviews.llvm.org/D135816 Files: clang/include/clang/

[PATCH] D135816: [clang] Support `constexpr` for some `ASTNodeKind` member functions

2022-10-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM aside from a minor question. Comment at: clang/include/clang/AST/ASTTypeTraits.h:90-92 bool operator<(const ASTNodeKind &Other) const { return Kind

[PATCH] D135816: [clang] Support `constexpr` for some `ASTNodeKind` member functions

2022-10-12 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik added a comment. LGTM, looks mostly straight forward but I am not super familiar with this code so I will let Aaron also review it too. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D135816/new/ https://reviews.llvm.org/D135816

[PATCH] D135816: [clang] Support `constexpr` for some `ASTNodeKind` member functions

2022-10-12 Thread Eric Li via Phabricator via cfe-commits
li.zhe.hua created this revision. li.zhe.hua added a reviewer: aaron.ballman. Herald added a project: All. li.zhe.hua requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Add `constexpr` support for: - The `getFromNodeKind` factory function - `