r200876 - Changed OptionCategory variables to be static.
Alexander Kornienko
alexfh at google.com
Wed Feb 5 13:28:04 PST 2014
Author: alexfh
Date: Wed Feb 5 15:28:03 2014
New Revision: 200876
URL: http://llvm.org/viewvc/llvm-project?rev=200876&view=rev
Log:
Changed OptionCategory variables to be static.
Modified:
cfe/trunk/docs/LibTooling.rst
Modified: cfe/trunk/docs/LibTooling.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LibTooling.rst?rev=200876&r1=200875&r2=200876&view=diff
==============================================================================
--- cfe/trunk/docs/LibTooling.rst (original)
+++ cfe/trunk/docs/LibTooling.rst Wed Feb 5 15:28:03 2014
@@ -66,7 +66,7 @@ and automatic location of the compilatio
// 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 che
// 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.
More information about the cfe-commits
mailing list