[llvm] eafb473 - [Option] Explicitly specify all args in test. NFC
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 29 01:40:34 PDT 2023
Author: Justin Bogner
Date: 2023-07-29T01:36:56-07:00
New Revision: eafb473b17065b0c504ff96096a52803a07d45f8
URL: https://github.com/llvm/llvm-project/commit/eafb473b17065b0c504ff96096a52803a07d45f8
DIFF: https://github.com/llvm/llvm-project/commit/eafb473b17065b0c504ff96096a52803a07d45f8.diff
LOG: [Option] Explicitly specify all args in test. NFC
This doesn't really do anything but should simplify updating these
APIs in the near future.
Added:
Modified:
llvm/unittests/Option/OptionParsingTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Option/OptionParsingTest.cpp b/llvm/unittests/Option/OptionParsingTest.cpp
index 6468872f8118d0..c1150c806b920c 100644
--- a/llvm/unittests/Option/OptionParsingTest.cpp
+++ b/llvm/unittests/Option/OptionParsingTest.cpp
@@ -342,7 +342,9 @@ TYPED_TEST(OptTableTest, FindNearest) {
EXPECT_EQ(Nearest, "--blurmp=foo");
// Flags should be included and excluded as specified.
- EXPECT_EQ(1U, T.findNearest("-doopf", Nearest, /*FlagsToInclude=*/OptFlag2));
+ EXPECT_EQ(1U, T.findNearest("-doopf", Nearest,
+ /*FlagsToInclude=*/OptFlag2,
+ /*FlagsToExclude=*/0));
EXPECT_EQ(Nearest, "-doopf2");
EXPECT_EQ(1U, T.findNearest("-doopf", Nearest,
/*FlagsToInclude=*/0,
More information about the llvm-commits
mailing list