Home
last modified time | relevance | path

Searched refs:OptionType (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerRegistryData.h45 StringRef OptionType; member
52 CmdLineOption(StringRef OptionType, StringRef OptionName, in CmdLineOption()
55 : OptionType(OptionType), OptionName(OptionName), in CmdLineOption()
59 assert((OptionType == "bool" || OptionType == "string" || in CmdLineOption()
60 OptionType == "int") && in CmdLineOption()
63 assert((OptionType != "bool" || in CmdLineOption()
69 assert((OptionType != "int" || !DefaultValStr.getAsInteger(0, Tmp)) && in CmdLineOption()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRefactoringOption.h53 template <typename OptionType>
54 std::shared_ptr<OptionType> createRefactoringOption() { in createRefactoringOption()
55 static_assert(std::is_base_of<RefactoringOption, OptionType>::value, in createRefactoringOption()
57 return std::make_shared<OptionType>(); in createRefactoringOption()
H A DRefactoringActionRuleRequirements.h95 template <typename OptionType>
98 OptionRequirement() : Opt(createRefactoringOption<OptionType>()) {} in OptionRequirement()
105 Expected<typename OptionType::ValueType>
107 return static_cast<OptionType *>(Opt.get())->getValue(); in evaluate()
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/
H A Doptions_parser.cpp20 enum class OptionType : uint8_t { enum
35 void registerOption(const char *Name, const char *Desc, OptionType Type,
51 OptionType Type;
159 case OptionType::OT_bool: in setOptionToValue()
166 case OptionType::OT_int: in setOptionToValue()
186 OptionType Type, void *Var) { in registerOption()
199 parser->registerOption(#Name, Description, OptionType::OT_##Type, &o->Name); in registerGwpAsanOptions()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Frontend/
H A DCheckerRegistry.h154 void addCheckerOption(StringRef OptionType, StringRef CheckerFullName,
171 void addPackageOption(StringRef OptionType, StringRef PackageFullName,
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAttr.cpp100 LoopHintAttr::OptionType Option; in handleLoopHintAttr()
103 auto SetHints = [&Option, &State](LoopHintAttr::OptionType O, in handleLoopHintAttr()
136 Option = llvm::StringSwitch<LoopHintAttr::OptionType>( in handleLoopHintAttr()
485 LoopHintAttr::OptionType Option = LH->getOption(); in CheckForIncompatibleAttributes()
H A DSemaTemplateInstantiate.cpp2131 LoopHintAttr::OptionType Option = LH->getOption(); in TransformLoopHintAttr()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGLoopInfo.cpp621 LoopHintAttr::OptionType Option = LoopHintAttr::Unroll; in push()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DAttr.td4135 let Args = [EnumArgument<"Option", "OptionType", /*is_string=*/false,