[llvm] [Support]Look up in top-level subcommand as a fallback when looking options for a custom subcommand. (PR #71776)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 18:45:17 PST 2023


================
@@ -525,6 +525,58 @@ TEST(CommandLineTest, LookupFailsInWrongSubCommand) {
   EXPECT_FALSE(Errs.empty());
 }
 
+TEST(CommandLineTest, SubcommandOptions) {
----------------
MaskRay wrote:

There are other Subcommand tests. The name `SubcommandOptions` can be changed to reflect that the test intends to check, e.g. `TopLevelOptInSubcommand`

https://github.com/llvm/llvm-project/pull/71776


More information about the llvm-commits mailing list