mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
cmCPackGenerator: Move macros to bottom of file
Since the class name is used in the macros, the iwyu tool gets confused wheter it needs a forward declaration or not.
This commit is contained in:
@@ -17,20 +17,6 @@ class cmCPackLog;
|
|||||||
class cmInstalledFile;
|
class cmInstalledFile;
|
||||||
class cmMakefile;
|
class cmMakefile;
|
||||||
|
|
||||||
#define cmCPackTypeMacro(klass, superclass) \
|
|
||||||
typedef superclass Superclass; \
|
|
||||||
const char* GetNameOfClass() CM_OVERRIDE { return #klass; } \
|
|
||||||
static cmCPackGenerator* CreateGenerator() { return new klass; } \
|
|
||||||
class cmCPackTypeMacro_UseTrailingSemicolon
|
|
||||||
|
|
||||||
#define cmCPackLogger(logType, msg) \
|
|
||||||
do { \
|
|
||||||
std::ostringstream cmCPackLog_msg; \
|
|
||||||
cmCPackLog_msg << msg; \
|
|
||||||
this->Logger->Log(logType, __FILE__, __LINE__, \
|
|
||||||
cmCPackLog_msg.str().c_str()); \
|
|
||||||
} while (false)
|
|
||||||
|
|
||||||
/** \class cmCPackGenerator
|
/** \class cmCPackGenerator
|
||||||
* \brief A superclass of all CPack Generators
|
* \brief A superclass of all CPack Generators
|
||||||
*
|
*
|
||||||
@@ -311,4 +297,18 @@ private:
|
|||||||
cmMakefile* MakefileMap;
|
cmMakefile* MakefileMap;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define cmCPackTypeMacro(klass, superclass) \
|
||||||
|
typedef superclass Superclass; \
|
||||||
|
const char* GetNameOfClass() CM_OVERRIDE { return #klass; } \
|
||||||
|
static cmCPackGenerator* CreateGenerator() { return new klass; } \
|
||||||
|
class cmCPackTypeMacro_UseTrailingSemicolon
|
||||||
|
|
||||||
|
#define cmCPackLogger(logType, msg) \
|
||||||
|
do { \
|
||||||
|
std::ostringstream cmCPackLog_msg; \
|
||||||
|
cmCPackLog_msg << msg; \
|
||||||
|
this->Logger->Log(logType, __FILE__, __LINE__, \
|
||||||
|
cmCPackLog_msg.str().c_str()); \
|
||||||
|
} while (false)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user