Skip to content

Commit

Permalink
Set versions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jan 3, 2024
1 parent 5fe555b commit f608210
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
*
* @mainpage Cppcheck
* @version 2.12.99
* @version 2.13.99
*
* @section overview_sec Overview
* Cppcheck is a simple tool for static analysis of C/C++ code.
Expand Down
2 changes: 1 addition & 1 deletion cmake/versions.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Version for libraries CPP
# Version string must have 3 "parts". https://sourceforge.net/p/cppcheck/discussion/development/thread/e57efb2b62/
SET(VERSION "2.12.99")
SET(VERSION "2.13.99")
STRING(REGEX MATCHALL "[0-9]+" VERSION_PARTS "${VERSION}")
LIST(GET VERSION_PARTS 0 VERSION_MAJOR)
LIST(GET VERSION_PARTS 1 VERSION_MINOR)
Expand Down
8 changes: 4 additions & 4 deletions lib/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
#define versionH

#define CPPCHECK_MAJOR_VERSION 2
#define CPPCHECK_MINOR_VERSION 12
#define CPPCHECK_DEVMINOR_VERSION 13
#define CPPCHECK_MINOR_VERSION 13
#define CPPCHECK_BUGFIX_VERSION 99
#define CPPCHECK_FIX_VERSION 0

#define STRINGIFY(x) STRING(x)
#define STRING(VER) #VER
#if CPPCHECK_MINOR_VERSION == CPPCHECK_DEVMINOR_VERSION
#if CPPCHECK_MINOR_VERSION == CPPCHECK_BUGFIX_VERSION
#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR_VERSION) "." STRINGIFY(CPPCHECK_MINOR_VERSION) "." STRINGIFY(CPPCHECK_FIX_VERSION)
#define CPPCHECK_VERSION CPPCHECK_MAJOR_VERSION,CPPCHECK_MINOR_VERSION,CPPCHECK_FIX_VERSION,0
#else
#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR_VERSION) "." STRINGIFY(CPPCHECK_DEVMINOR_VERSION) " dev"
#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR_VERSION) "." STRINGIFY(CPPCHECK_BUGFIX_VERSION) " dev"
#define CPPCHECK_VERSION CPPCHECK_MAJOR_VERSION,CPPCHECK_MINOR_VERSION,99,0
#endif
#define LEGALCOPYRIGHT L"Copyright (C) 2007-2023 Cppcheck team."
Expand Down
2 changes: 1 addition & 1 deletion man/manual.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Cppcheck manual
subtitle: Version 2.12.99
subtitle: Version 2.13.99
author: Cppcheck team
lang: en
documentclass: report
Expand Down
2 changes: 1 addition & 1 deletion man/reference-cfg-format.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Cppcheck .cfg format
subtitle: Version 2.12.99
subtitle: Version 2.13.99
author: Cppcheck team
lang: en
documentclass: report
Expand Down
2 changes: 1 addition & 1 deletion man/writing-addons.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Writing addons
subtitle: Version 2.12.99
subtitle: Version 2.13.99
author: Cppcheck team
lang: en
documentclass: report
Expand Down

0 comments on commit f608210

Please sign in to comment.