mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
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.
This commit is contained in:
committed by
Brad King
parent
07953c18f3
commit
d58d28a941
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user