diff options
author | Edwin Vane <edwin.vane@intel.com> | 2013-07-04 17:49:59 +0000 |
---|---|---|
committer | Edwin Vane <edwin.vane@intel.com> | 2013-07-04 17:49:59 +0000 |
commit | 17b31f3d43baee73b12cc2213db1785c889728f5 (patch) | |
tree | 6c48009a0039771752a384c8b02e0fc762776982 /clang-tools-extra/cpp11-migrate/Core/Transform.h | |
parent | 31c3b2ddeec555a34476c4f71fed754782c58696 (diff) | |
download | bcm5719-llvm-17b31f3d43baee73b12cc2213db1785c889728f5.tar.gz bcm5719-llvm-17b31f3d43baee73b12cc2213db1785c889728f5.zip |
cpp11-migrate: Minor command-line fixes and improvements
* all transforms are in the same category
* all transforms' options are in the same category
* display the CommonOptionParser extra-help (which describe in more details the
compilation database stuff)
* add EXAMPLES section
Author: Guillaume Papin <guillaume.papin@epitech.eu>
llvm-svn: 185660
Diffstat (limited to 'clang-tools-extra/cpp11-migrate/Core/Transform.h')
-rw-r--r-- | clang-tools-extra/cpp11-migrate/Core/Transform.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang-tools-extra/cpp11-migrate/Core/Transform.h b/clang-tools-extra/cpp11-migrate/Core/Transform.h index 997a95e1646..e273cf68c64 100644 --- a/clang-tools-extra/cpp11-migrate/Core/Transform.h +++ b/clang-tools-extra/cpp11-migrate/Core/Transform.h @@ -20,8 +20,9 @@ #include "Core/IncludeExcludeInfo.h" #include "Core/FileOverrides.h" #include "clang/Tooling/Refactoring.h" -#include "llvm/Support/Timer.h" #include "llvm/ADT/OwningPtr.h" +#include "llvm/Support/CommandLine.h" +#include "llvm/Support/Timer.h" /// \brief Description of the riskiness of actions that can be taken by @@ -51,6 +52,9 @@ class MatchFinder; class RewriterManager; +/// \brief To group transforms' options together when printing the help. +extern llvm::cl::OptionCategory TransformsOptionsCategory; + /// \brief Container for global options affecting all transforms. struct TransformOptions { /// \brief Enable the use of performance timers. |