reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lldb/unittests/Interpreter/TestOptionArgParser.cpp
   25       OptionArgParser::ToBoolean(llvm::StringRef("true"), false, &success));
   26   EXPECT_TRUE(success);
   28       OptionArgParser::ToBoolean(llvm::StringRef("on"), false, &success));
   29   EXPECT_TRUE(success);
   31       OptionArgParser::ToBoolean(llvm::StringRef("yes"), false, &success));
   32   EXPECT_TRUE(success);
   34       OptionArgParser::ToBoolean(llvm::StringRef("1"), false, &success));
   35   EXPECT_TRUE(success);
   46       OptionArgParser::ToBoolean(llvm::StringRef("false"), true, &success));
   47   EXPECT_TRUE(success);
   49       OptionArgParser::ToBoolean(llvm::StringRef("off"), true, &success));
   50   EXPECT_TRUE(success);
   52       OptionArgParser::ToBoolean(llvm::StringRef("no"), true, &success));
   53   EXPECT_TRUE(success);
   55       OptionArgParser::ToBoolean(llvm::StringRef("0"), true, &success));
   56   EXPECT_TRUE(success);
   59       OptionArgParser::ToBoolean(llvm::StringRef("10"), false, &success));
   60   EXPECT_FALSE(success);
   62       OptionArgParser::ToBoolean(llvm::StringRef("10"), true, &success));
   63   EXPECT_FALSE(success);
   64   EXPECT_TRUE(OptionArgParser::ToBoolean(llvm::StringRef(""), true, &success));
   65   EXPECT_FALSE(success);