[all-commits] [llvm/llvm-project] bef9eb: [clang] NFC: Refactor custom class into a lambda i...
Jan Svoboda via All-commits
all-commits at lists.llvm.org
Tue Dec 22 05:50:01 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: bef9eb84b2fb17b22ca771c8c5c34a85f141168d
https://github.com/llvm/llvm-project/commit/bef9eb84b2fb17b22ca771c8c5c34a85f141168d
Author: Jan Svoboda <jan_svoboda at apple.com>
Date: 2020-12-22 (Tue, 22 Dec 2020)
Changed paths:
M clang/lib/Frontend/CompilerInvocation.cpp
Log Message:
-----------
[clang] NFC: Refactor custom class into a lambda in CompilerInvocation
Change `makeFlagToValueNormalizer` so that one specialization converts all integral/enum arguments into `uint64_t` and forwards them to the more generic version.
This makes it easy to replace the custom `FlagToValueNormalizer` struct with a lambda, which is the common approach in other (de)normalizers.
Finally, drop custom `is_int_convertbile` in favor of `llvm::is_integral_or_enum`.
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D93628
More information about the All-commits
mailing list