Lines Matching refs:cl

30 static cl::opt<bool> Help("h", cl::desc("Alias for -help"), cl::Hidden);
34 static cl::OptionCategory ClangFormatCategory("Clang-format options");
36 static cl::list<unsigned>
38 cl::desc("Format a range starting at this byte offset.\n"
42 cl::cat(ClangFormatCategory));
43 static cl::list<unsigned>
45 cl::desc("Format a range of this length (in bytes).\n"
52 cl::cat(ClangFormatCategory));
53 static cl::list<std::string>
55 cl::desc("<start line>:<end line> - format a range of\n"
61 cl::cat(ClangFormatCategory));
62 static cl::opt<std::string>
63 Style("style", cl::desc(clang::format::StyleOptionHelpDescription),
64 cl::init(clang::format::DefaultFormatStyle),
65 cl::cat(ClangFormatCategory));
66 static cl::opt<std::string>
68 cl::desc("The name of the predefined style used as a\n"
73 cl::init(clang::format::DefaultFallbackStyle),
74 cl::cat(ClangFormatCategory));
76 static cl::opt<std::string> AssumeFileName(
78 cl::desc("Override filename used to determine the language.\n"
81 cl::init("<stdin>"), cl::cat(ClangFormatCategory));
83 static cl::opt<bool> Inplace("i",
84 cl::desc("Inplace edit <file>s, if specified."),
85 cl::cat(ClangFormatCategory));
87 static cl::opt<bool> OutputXML("output-replacements-xml",
88 cl::desc("Output replacements as XML."),
89 cl::cat(ClangFormatCategory));
90 static cl::opt<bool>
92 cl::desc("Dump configuration options to stdout and exit.\n"
94 cl::cat(ClangFormatCategory));
95 static cl::opt<unsigned>
97 cl::desc("The position of the cursor when invoking\n"
99 cl::init(0), cl::cat(ClangFormatCategory));
101 static cl::opt<bool> SortIncludes(
103 cl::desc("If set, overrides the include sorting behavior determined by the "
105 cl::cat(ClangFormatCategory));
107 static cl::opt<bool>
108 Verbose("verbose", cl::desc("If set, shows the list of processed files"),
109 cl::cat(ClangFormatCategory));
113 static cl::opt<bool>
115 cl::desc("If set, do not actually make the formatting changes"),
116 cl::cat(ClangFormatCategory));
119 static cl::alias DryRunShort("n", cl::desc("Alias for --dry-run"),
120 cl::cat(ClangFormatCategory), cl::aliasopt(DryRun),
121 cl::NotHidden);
124 static cl::opt<bool>
126 cl::desc("Warnings about individual formatting changes needed. "
128 cl::init(true), cl::cat(ClangFormatCategory), cl::Hidden);
130 static cl::opt<bool>
132 cl::desc("Do not warn about individual formatting changes "
134 cl::init(false), cl::cat(ClangFormatCategory), cl::Hidden);
136 static cl::opt<unsigned> ErrorLimit(
138 cl::desc("Set the maximum number of clang-format errors to emit before "
140 cl::init(0), cl::cat(ClangFormatCategory));
142 static cl::opt<bool>
144 cl::desc("If set, changes formatting warnings to errors"),
145 cl::cat(ClangFormatCategory));
151 static cl::bits<WNoError> WNoErrorList(
153 cl::desc("If set don't error out on the specified warning type."),
154 cl::values(
162 cl::cat(ClangFormatCategory));
164 static cl::opt<bool>
166 cl::desc("If set, and on a color-capable terminal controls "
168 cl::init(true), cl::cat(ClangFormatCategory), cl::Hidden);
170 static cl::opt<bool>
172 cl::desc("If set, and on a color-capable terminal controls "
174 cl::init(false), cl::cat(ClangFormatCategory), cl::Hidden);
176 static cl::list<std::string> FileNames(cl::Positional, cl::desc("[<file> ...]"),
177 cl::cat(ClangFormatCategory));
340 const cl::opt<unsigned> &Cursor, in outputXML()
515 cl::HideUnrelatedOptions(ClangFormatCategory); in main()
517 cl::SetVersionPrinter(PrintVersion); in main()
518 cl::ParseCommandLineOptions( in main()
529 cl::PrintHelpMessage(); in main()