summaryrefslogtreecommitdiffstats
path: root/clang/docs/LibTooling.rst
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-02-05 21:28:03 +0000
committerAlexander Kornienko <alexfh@google.com>2014-02-05 21:28:03 +0000
commit4fa81df4558833c70b85525cf0f677ce7897b915 (patch)
tree6773894d9aa14a2fb7205543cb16b3bb75406385 /clang/docs/LibTooling.rst
parente4e462c42c8feb9ae85ca30415dd3a60fde22797 (diff)
downloadbcm5719-llvm-4fa81df4558833c70b85525cf0f677ce7897b915.tar.gz
bcm5719-llvm-4fa81df4558833c70b85525cf0f677ce7897b915.zip
Changed OptionCategory variables to be static.
llvm-svn: 200876
Diffstat (limited to 'clang/docs/LibTooling.rst')
-rw-r--r--clang/docs/LibTooling.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/docs/LibTooling.rst b/clang/docs/LibTooling.rst
index d8432af6207..6fba98627a9 100644
--- a/clang/docs/LibTooling.rst
+++ b/clang/docs/LibTooling.rst
@@ -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.
OpenPOWER on IntegriCloud