diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-02-17 21:43:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-20 15:35:55 (GMT) |
commit | d58d28a94142bfd290ea8053a60927138ac98d4d (patch) | |
tree | 0c3e91778d16cfa2d91dcda429403106731185ce /Source/cmCommandArgumentParserHelper.h | |
parent | 07953c18f3cf64ae599d38bcf3cdc2408fb5533b (diff) | |
download | CMake-d58d28a94142bfd290ea8053a60927138ac98d4d.zip CMake-d58d28a94142bfd290ea8053a60927138ac98d4d.tar.gz CMake-d58d28a94142bfd290ea8053a60927138ac98d4d.tar.bz2 |
ParserHelper: Move macros to bottom of files
Since the class name is used in the macros, the iwyu tool gets confused
wheter it needs a forward declaration or not.
While editing the files, make sure structs have no typedef. Also,
remove confusing comments about Java.
Diffstat (limited to 'Source/cmCommandArgumentParserHelper.h')
-rw-r--r-- | Source/cmCommandArgumentParserHelper.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/Source/cmCommandArgumentParserHelper.h b/Source/cmCommandArgumentParserHelper.h index 95bf0ad..5bfb236 100644 --- a/Source/cmCommandArgumentParserHelper.h +++ b/Source/cmCommandArgumentParserHelper.h @@ -8,27 +8,15 @@ #include <string> #include <vector> -#define YYSTYPE cmCommandArgumentParserHelper::ParserType -#define YYSTYPE_IS_DECLARED -#define YY_EXTRA_TYPE cmCommandArgumentParserHelper* -#define YY_DECL \ - int cmCommandArgument_yylex(YYSTYPE* yylvalp, yyscan_t yyscanner) - -/** \class cmCommandArgumentParserHelper - * \brief Helper class for parsing java source files - * - * Finds dependencies for java file and list of outputs - */ - class cmMakefile; class cmCommandArgumentParserHelper { public: - typedef struct + struct ParserType { char* str; - } ParserType; + }; cmCommandArgumentParserHelper(); ~cmCommandArgumentParserHelper(); @@ -100,4 +88,10 @@ private: bool RemoveEmpty; }; +#define YYSTYPE cmCommandArgumentParserHelper::ParserType +#define YYSTYPE_IS_DECLARED +#define YY_EXTRA_TYPE cmCommandArgumentParserHelper* +#define YY_DECL \ + int cmCommandArgument_yylex(YYSTYPE* yylvalp, yyscan_t yyscanner) + #endif |