Home | History | Annotate | Download | only in Support

Lines Matching refs:cl

45 cl::OptionCategory TestCategory("Test Options", "Description");
46 cl::opt<int> TestOption("test-option", cl::desc("old description"));
52 StringMap<cl::Option*> Map;
53 cl::getRegisteredOptions(Map);
58 cl::Option *Retrieved = Map["test-option"];
61 ASSERT_EQ(&cl::GeneralCategory,Retrieved->Category) <<
80 Retrieved->setHiddenFlag(cl::Hidden);
81 ASSERT_EQ(cl::Hidden, TestOption.getOptionHiddenFlag()) <<
88 cl::opt<std::string> EnvironmentTestOption("env-test-opt");
92 cl::ParseEnvironmentOptions("CommandLineTest", test_env_var);
101 // SEGFAULT. This can occur because the cl::opt in the test below is declared
103 // command line system will still hold a pointer to a deallocated cl::Option.
105 // Put cl::opt on stack to check for proper initialization of fields.
106 cl::opt<std::string> EnvironmentTestOptionLocal("env-test-opt-local");
109 cl::ParseEnvironmentOptions("CommandLineTest", test_env_var);
116 cl::opt<int> TestOption2("test-option", cl::cat(TestCategory));
122 class StrDupSaver : public cl::StringSaver {
128 typedef void ParserFunction(StringRef Source, llvm::cl::StringSaver &Saver,
151 testCommandLineTokenizer(cl::TokenizeGNUCommandLine, Input, Output,
160 testCommandLineTokenizer(cl::TokenizeWindowsCommandLine, Input, Output,