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

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 13 09:03:00 PDT 2022


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 KindId < Other.KindId;
   }
----------------
Any reason for this to not be `constexpr` as well?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135816/new/

https://reviews.llvm.org/D135816



More information about the cfe-commits mailing list