lib/version.h: add fix version option (#5216)

This commit is contained in:
Daniel Marjamäki 2023-07-02 18:13:28 +02:00 committed by GitHub
parent 72245b1b15
commit 3f832df6cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 9 deletions

View File

@ -1,17 +1,18 @@
// For a release version x.y the MAJOR should be x and both MINOR and DEVMINOR should be y. // For a release version x.y.z the MAJOR should be x and both MINOR and DEVMINOR should be y.
// After a release the DEVMINOR is incremented. MAJOR=x MINOR=y, DEVMINOR=y+1 // After a release the DEVMINOR is incremented. MAJOR=x MINOR=y, DEVMINOR=y+1
#define CPPCHECK_MAJOR 2 #define CPPCHECK_MAJOR_VERSION 2
#define CPPCHECK_MINOR 11 #define CPPCHECK_MINOR_VERSION 11
#define CPPCHECK_DEVMINOR 12 #define CPPCHECK_DEVMINOR_VERSION 12
#define CPPCHECK_FIX_VERSION 0
#define STRINGIFY(x) STRING(x) #define STRINGIFY(x) STRING(x)
#define STRING(VER) #VER #define STRING(VER) #VER
#if CPPCHECK_MINOR == CPPCHECK_DEVMINOR #if CPPCHECK_MINOR_VERSION == CPPCHECK_DEVMINOR_VERSION
#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR) #define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR_VERSION) "." STRINGIFY(CPPCHECK_MINOR_VERSION) "." STRINGIFY(CPPCHECK_FIX_VERSION)
#define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,0,0 #define CPPCHECK_VERSION CPPCHECK_MAJOR_VERSION,CPPCHECK_MINOR_VERSION,CPPCHECK_FIX_VERSION,0
#else #else
#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR) " dev" #define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR_VERSION) "." STRINGIFY(CPPCHECK_DEVMINOR_VERSION) " dev"
#define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,99,0 #define CPPCHECK_VERSION CPPCHECK_MAJOR_VERSION,CPPCHECK_MINOR_VERSION,99,0
#endif #endif
#define LEGALCOPYRIGHT L"Copyright (C) 2007-2023 Cppcheck team." #define LEGALCOPYRIGHT L"Copyright (C) 2007-2023 Cppcheck team."