summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsJavaParserHelper.h
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-02-17 21:43:43 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-20 15:35:55 (GMT)
commitd58d28a94142bfd290ea8053a60927138ac98d4d (patch)
tree0c3e91778d16cfa2d91dcda429403106731185ce /Source/cmDependsJavaParserHelper.h
parent07953c18f3cf64ae599d38bcf3cdc2408fb5533b (diff)
downloadCMake-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/cmDependsJavaParserHelper.h')
-rw-r--r--Source/cmDependsJavaParserHelper.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/Source/cmDependsJavaParserHelper.h b/Source/cmDependsJavaParserHelper.h
index 71b939c..5f28f70 100644
--- a/Source/cmDependsJavaParserHelper.h
+++ b/Source/cmDependsJavaParserHelper.h
@@ -8,26 +8,18 @@
#include <string>
#include <vector>
-class cmDependsJavaParserHelper;
-
-#define YYSTYPE cmDependsJavaParserHelper::ParserType
-#define YYSTYPE_IS_DECLARED
-#define YY_EXTRA_TYPE cmDependsJavaParserHelper*
-#define YY_DECL int cmDependsJava_yylex(YYSTYPE* yylvalp, yyscan_t yyscanner)
-
/** \class cmDependsJavaParserHelper
* \brief Helper class for parsing java source files
*
* Finds dependencies for java file and list of outputs
*/
-
class cmDependsJavaParserHelper
{
public:
- typedef struct
+ struct ParserType
{
char* str;
- } ParserType;
+ };
cmDependsJavaParserHelper();
~cmDependsJavaParserHelper();
@@ -96,4 +88,9 @@ private:
void CleanupParser();
};
+#define YYSTYPE cmDependsJavaParserHelper::ParserType
+#define YYSTYPE_IS_DECLARED
+#define YY_EXTRA_TYPE cmDependsJavaParserHelper*
+#define YY_DECL int cmDependsJava_yylex(YYSTYPE* yylvalp, yyscan_t yyscanner)
+
#endif