Use typedef to represent storage type in FPOption and FPOptionsOverride
authorSerge Pavlov <sepavloff@gmail.com>
Mon, 20 Jul 2020 07:47:45 +0000 (14:47 +0700)
committerSerge Pavlov <sepavloff@gmail.com>
Tue, 21 Jul 2020 07:35:50 +0000 (14:35 +0700)
commit21cd7b72a3d4d1d5efaadc09533655090b678e57
tree08ff5cad7bcc70ded0618ee219a0e17d958e053a
parentb847859f379146a3c5df8dcd959b7635282ae4b7
Use typedef to represent storage type in FPOption and FPOptionsOverride

Size of FPOption is now 14 bit, which is closed to the current limit
of 16 bits. Adding new properties to FPOption would require change of
the types, which represent storage of FPOption and FPOptionsOverride.
To facilitate this change, the storage types were changed from standard
integer types to typedefs defined inside the proper classes. Checks for
size of these storage types were added.

No functional changes intended.

Differential Revision: https://reviews.llvm.org/D84147
clang/include/clang/Basic/FPOptions.def
clang/include/clang/Basic/LangOptions.h
clang/include/clang/Sema/Sema.h
clang/include/clang/Serialization/ASTReader.h