================
@@ -119,6 +143,22 @@ class LLVM_ABI OptTable {
     }
   };
 
+public:
+  bool isValidForSubCommand(const Info *CandidateInfo,
+                            StringRef SubCommand) const {
+    assert(!SubCommand.empty() &&
+           "This helper is only for valid registered subcommands.");
+    typename ArrayRef<OptTable::SubCommand>::iterator SCIT =
----------------
Prabhuk wrote:

Done. But it didn't save a line unfortunately :) 

https://github.com/llvm/llvm-project/pull/155026
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to