Lines Matching refs:Value
45 static void enumeration(IO &IO, FormatStyle::LanguageKind &Value) {
46 IO.enumCase(Value, "Cpp", FormatStyle::LK_Cpp);
47 IO.enumCase(Value, "Java", FormatStyle::LK_Java);
48 IO.enumCase(Value, "JavaScript", FormatStyle::LK_JavaScript);
49 IO.enumCase(Value, "Proto", FormatStyle::LK_Proto);
54 static void enumeration(IO &IO, FormatStyle::LanguageStandard &Value) {
55 IO.enumCase(Value, "Cpp03", FormatStyle::LS_Cpp03);
56 IO.enumCase(Value, "C++03", FormatStyle::LS_Cpp03);
57 IO.enumCase(Value, "Cpp11", FormatStyle::LS_Cpp11);
58 IO.enumCase(Value, "C++11", FormatStyle::LS_Cpp11);
59 IO.enumCase(Value, "Auto", FormatStyle::LS_Auto);
64 static void enumeration(IO &IO, FormatStyle::UseTabStyle &Value) {
65 IO.enumCase(Value, "Never", FormatStyle::UT_Never);
66 IO.enumCase(Value, "false", FormatStyle::UT_Never);
67 IO.enumCase(Value, "Always", FormatStyle::UT_Always);
68 IO.enumCase(Value, "true", FormatStyle::UT_Always);
69 IO.enumCase(Value, "ForIndentation", FormatStyle::UT_ForIndentation);
74 static void enumeration(IO &IO, FormatStyle::ShortFunctionStyle &Value) {
75 IO.enumCase(Value, "None", FormatStyle::SFS_None);
76 IO.enumCase(Value, "false", FormatStyle::SFS_None);
77 IO.enumCase(Value, "All", FormatStyle::SFS_All);
78 IO.enumCase(Value, "true", FormatStyle::SFS_All);
79 IO.enumCase(Value, "Inline", FormatStyle::SFS_Inline);
80 IO.enumCase(Value, "Empty", FormatStyle::SFS_Empty);
85 static void enumeration(IO &IO, FormatStyle::BinaryOperatorStyle &Value) {
86 IO.enumCase(Value, "All", FormatStyle::BOS_All);
87 IO.enumCase(Value, "true", FormatStyle::BOS_All);
88 IO.enumCase(Value, "None", FormatStyle::BOS_None);
89 IO.enumCase(Value, "false", FormatStyle::BOS_None);
90 IO.enumCase(Value, "NonAssignment", FormatStyle::BOS_NonAssignment);
95 static void enumeration(IO &IO, FormatStyle::BraceBreakingStyle &Value) {
96 IO.enumCase(Value, "Attach", FormatStyle::BS_Attach);
97 IO.enumCase(Value, "Linux", FormatStyle::BS_Linux);
98 IO.enumCase(Value, "Mozilla", FormatStyle::BS_Mozilla);
99 IO.enumCase(Value, "Stroustrup", FormatStyle::BS_Stroustrup);
100 IO.enumCase(Value, "Allman", FormatStyle::BS_Allman);
101 IO.enumCase(Value, "GNU", FormatStyle::BS_GNU);
102 IO.enumCase(Value, "WebKit", FormatStyle::BS_WebKit);
103 IO.enumCase(Value, "Custom", FormatStyle::BS_Custom);
109 static void enumeration(IO &IO, FormatStyle::ReturnTypeBreakingStyle &Value) {
110 IO.enumCase(Value, "None", FormatStyle::RTBS_None);
111 IO.enumCase(Value, "All", FormatStyle::RTBS_All);
112 IO.enumCase(Value, "TopLevel", FormatStyle::RTBS_TopLevel);
113 IO.enumCase(Value, "TopLevelDefinitions",
115 IO.enumCase(Value, "AllDefinitions", FormatStyle::RTBS_AllDefinitions);
122 enumeration(IO &IO, FormatStyle::DefinitionReturnTypeBreakingStyle &Value) {
123 IO.enumCase(Value, "None", FormatStyle::DRTBS_None);
124 IO.enumCase(Value, "All", FormatStyle::DRTBS_All);
125 IO.enumCase(Value, "TopLevel", FormatStyle::DRTBS_TopLevel);
128 IO.enumCase(Value, "false", FormatStyle::DRTBS_None);
129 IO.enumCase(Value, "true", FormatStyle::DRTBS_All);
136 FormatStyle::NamespaceIndentationKind &Value) {
137 IO.enumCase(Value, "None", FormatStyle::NI_None);
138 IO.enumCase(Value, "Inner", FormatStyle::NI_Inner);
139 IO.enumCase(Value, "All", FormatStyle::NI_All);
144 static void enumeration(IO &IO, FormatStyle::BracketAlignmentStyle &Value) {
145 IO.enumCase(Value, "Align", FormatStyle::BAS_Align);
146 IO.enumCase(Value, "DontAlign", FormatStyle::BAS_DontAlign);
147 IO.enumCase(Value, "AlwaysBreak", FormatStyle::BAS_AlwaysBreak);
150 IO.enumCase(Value, "true", FormatStyle::BAS_Align);
151 IO.enumCase(Value, "false", FormatStyle::BAS_DontAlign);
156 static void enumeration(IO &IO, FormatStyle::PointerAlignmentStyle &Value) {
157 IO.enumCase(Value, "Middle", FormatStyle::PAS_Middle);
158 IO.enumCase(Value, "Left", FormatStyle::PAS_Left);
159 IO.enumCase(Value, "Right", FormatStyle::PAS_Right);
162 IO.enumCase(Value, "true", FormatStyle::PAS_Left);
163 IO.enumCase(Value, "false", FormatStyle::PAS_Right);
170 FormatStyle::SpaceBeforeParensOptions &Value) {
171 IO.enumCase(Value, "Never", FormatStyle::SBPO_Never);
172 IO.enumCase(Value, "ControlStatements",
174 IO.enumCase(Value, "Always", FormatStyle::SBPO_Always);
177 IO.enumCase(Value, "false", FormatStyle::SBPO_Never);
178 IO.enumCase(Value, "true", FormatStyle::SBPO_ControlStatements);
208 IO.setError(Twine("Unknown value for BasedOnStyle: ", BasedOnStyle));
1937 "Use -style=\"{key: value, ...}\" to set specific\n"
1975 llvm::errs() << "Invalid value for -style, using " << FallbackStyle