[NFC] [Serialization] Add static assert for Num*Declbits
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Fri, 3 Feb 2023 06:29:14 +0000 (14:29 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Fri, 3 Feb 2023 06:35:44 +0000 (14:35 +0800)
commit9b7e574701554fd496dc0fafe567b60767783b4b
tree9914259fea4d648d52146a28a7f342ac8f98d888
parentfd68c7d223fd2d544496dd6b3b06baf6f4d8d3dc
[NFC] [Serialization] Add static assert for Num*Declbits

This re-commits part of c79635cce845. It is reverted since it contains
platform-inconsistent constant. Now the patch only contains constant
defined in DeclBase.h so it should be platform-independent. And this
should be still helpful.

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D141992
clang/include/clang/AST/DeclBase.h
clang/lib/Serialization/ASTWriterDecl.cpp