Skip to content
Snippets Groups Projects
Commit f153ec2a authored by Alexander Kornienko's avatar Alexander Kornienko
Browse files

Changed OptionCategory variables to be static.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200876 91177308-0d34-0410-b5e6-96231b3b80d8
parent 94328b69
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ and automatic location of the compilation database using source files paths.
// Apply a custom category to all command-line options so that they are the
// only ones displayed.
llvm::cl::OptionCategory MyToolCategory("my-tool options");
static llvm::cl::OptionCategory MyToolCategory("my-tool options");
int main(int argc, const char **argv) {
// CommonOptionsParser constructor will parse arguments and create a
......@@ -122,7 +122,7 @@ version of this example tool is also checked into the clang tree at
// Apply a custom category to all command-line options so that they are the
// only ones displayed.
cl::OptionCategory MyToolCategory("my-tool options");
static cl::OptionCategory MyToolCategory("my-tool options");
// CommonOptionsParser declares HelpMessage with a description of the common
// command-line options related to the compilation database and input files.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment