[llvm] [NFC][Support] Create helper function to parse bool. (PR #102818)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 11 14:48:30 PDT 2024
================
@@ -400,6 +400,22 @@ class CommandLineParser {
SubCommand *LookupSubCommand(StringRef Name, std::string &NearestString);
};
+template <typename T, T TrueVal, T FalseVal>
+bool parseBool(Option &O, StringRef ArgName, StringRef Arg, T &Value) {
----------------
jurahul wrote:
Done.
https://github.com/llvm/llvm-project/pull/102818
More information about the llvm-commits
mailing list