Skip to content

Commit

Permalink
Merge C++20 test
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Jan 20, 2024
2 parents 41140f2 + 9b80afe commit ae148e7
Show file tree
Hide file tree
Showing 53 changed files with 1,774 additions and 1,149 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
# but only for the branches specified
branches:
# Push events on develop branch
- develop
- 'develop'
# Push events on ci-test branch (uncomment if needed for testing purposes)
# - ci-test
paths-ignore:
Expand Down Expand Up @@ -44,7 +44,7 @@ env:
# emscripten
EM_VERSION: latest
EM_CACHE_FOLDER: "emsdk-cache"
EM_CACHE_ID: 2
EM_CACHE_ID: 3

# gh-pages
GH_PAGES_REPO: ${{ github.repository_owner }}/verovio.org # works from rism-digital and from forks
Expand Down Expand Up @@ -74,10 +74,6 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
compiler: g++
version: "9"

- os: ubuntu-20.04
compiler: g++
version: "10"
Expand All @@ -86,13 +82,17 @@ jobs:
compiler: g++
version: "11"

- os: ubuntu-22.04
compiler: g++
version: "12"

- os: ubuntu-20.04
compiler: clang
version: "6.0"
version: "10"

- os: ubuntu-20.04
compiler: clang
version: "9"
version: "11"

- os: ubuntu-20.04
compiler: clang
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## [unreleased]
* Support for `fTrem@unitdur` (@eNote-GmbH)

## [4.1.0] - 2023-12-15
* Support for staves ordered by `scoreDef`
Expand Down
20 changes: 18 additions & 2 deletions Verovio.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,12 @@
4DE96E3B21C4373200CB85BE /* bracketspan.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4DE96E3A21C4373200CB85BE /* bracketspan.cpp */; };
4DE96E3C21C4373200CB85BE /* bracketspan.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4DE96E3A21C4373200CB85BE /* bracketspan.cpp */; };
4DE96E3D21C4373200CB85BE /* bracketspan.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4DE96E3A21C4373200CB85BE /* bracketspan.cpp */; };
4DEBE6E12B36E78900B67DFB /* facsimilefunctor.h in Headers */ = {isa = PBXBuildFile; fileRef = 4DEBE6E02B36E78900B67DFB /* facsimilefunctor.h */; };
4DEBE6E22B36E78900B67DFB /* facsimilefunctor.h in Headers */ = {isa = PBXBuildFile; fileRef = 4DEBE6E02B36E78900B67DFB /* facsimilefunctor.h */; settings = {ATTRIBUTES = (Public, ); }; };
4DEBE6E42B36E79600B67DFB /* facsimilefunctor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4DEBE6E32B36E79600B67DFB /* facsimilefunctor.cpp */; };
4DEBE6E52B36E79600B67DFB /* facsimilefunctor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4DEBE6E32B36E79600B67DFB /* facsimilefunctor.cpp */; };
4DEBE6E62B36E9B300B67DFB /* facsimilefunctor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4DEBE6E32B36E79600B67DFB /* facsimilefunctor.cpp */; };
4DEBE6E72B36E9B400B67DFB /* facsimilefunctor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4DEBE6E32B36E79600B67DFB /* facsimilefunctor.cpp */; };
4DEC4D5A21C800A000D1D273 /* abbr.h in Headers */ = {isa = PBXBuildFile; fileRef = 4DEC4D5921C8009600D1D273 /* abbr.h */; };
4DEC4D7A21C8048700D1D273 /* abbr.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4DEC4D7921C8048700D1D273 /* abbr.cpp */; };
4DEC4D7B21C8048700D1D273 /* abbr.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4DEC4D7921C8048700D1D273 /* abbr.cpp */; };
Expand Down Expand Up @@ -2014,6 +2020,8 @@
4DE644F41EDBEA01002FBE6C /* breath.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = breath.cpp; path = src/breath.cpp; sourceTree = "<group>"; };
4DE96E3821C4370E00CB85BE /* bracketspan.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = bracketspan.h; path = include/vrv/bracketspan.h; sourceTree = "<group>"; };
4DE96E3A21C4373200CB85BE /* bracketspan.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = bracketspan.cpp; path = src/bracketspan.cpp; sourceTree = "<group>"; };
4DEBE6E02B36E78900B67DFB /* facsimilefunctor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = facsimilefunctor.h; path = include/vrv/facsimilefunctor.h; sourceTree = "<group>"; };
4DEBE6E32B36E79600B67DFB /* facsimilefunctor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = facsimilefunctor.cpp; path = src/facsimilefunctor.cpp; sourceTree = "<group>"; };
4DEC4D5921C8009600D1D273 /* abbr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = abbr.h; path = include/vrv/abbr.h; sourceTree = "<group>"; };
4DEC4D7921C8048700D1D273 /* abbr.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = abbr.cpp; path = src/abbr.cpp; sourceTree = "<group>"; };
4DEC4D7D21C804C500D1D273 /* add.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = add.cpp; path = src/add.cpp; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3012,6 +3020,8 @@
E7265E6D29DC6FD200D11F41 /* castofffunctor.h */,
E763EF4129E939FB0029E56D /* convertfunctor.cpp */,
E763EF3E29E939C00029E56D /* convertfunctor.h */,
4DEBE6E32B36E79600B67DFB /* facsimilefunctor.cpp */,
4DEBE6E02B36E78900B67DFB /* facsimilefunctor.h */,
E74A806028BC9111005274E7 /* findfunctor.cpp */,
E74A806528BC97D5005274E7 /* findfunctor.h */,
E722106528F856C4002CD6E9 /* findlayerelementsfunctor.cpp */,
Expand Down Expand Up @@ -3384,6 +3394,7 @@
40DA9C3720905CEB006BED92 /* ioabc.h in Headers */,
4DB3D8CD1F83D11100B5FC2B /* harm.h in Headers */,
40D45EC2204EEAFB009C1EC9 /* instrdef.h in Headers */,
4DEBE6E12B36E78900B67DFB /* facsimilefunctor.h in Headers */,
4D94E0E22995411100F49F89 /* meibasic.h in Headers */,
BD2E4D9B2875882200B04350 /* stem.h in Headers */,
4DACC9EA2990F29A00B55913 /* attmodule.h in Headers */,
Expand Down Expand Up @@ -3441,6 +3452,7 @@
E7908EA0298582090004C1F9 /* alignfunctor.h in Headers */,
BB4C4B9822A932E5001F6AF0 /* durationinterface.h in Headers */,
BB4C4BB722A932F6001F6AF0 /* jsonxx.h in Headers */,
4DEBE6E22B36E78900B67DFB /* facsimilefunctor.h in Headers */,
BB4C4B1622A932C8001F6AF0 /* systemelement.h in Headers */,
BB4C4AC622A932B6001F6AF0 /* measure.h in Headers */,
E741AD00299A3D3500854426 /* calcslurdirectionfunctor.h in Headers */,
Expand Down Expand Up @@ -3926,6 +3938,7 @@
E7F39C6229A62B430055DBE0 /* adjustclefchangesfunctor.cpp in Sources */,
E79320682991454000D80975 /* calcstemfunctor.cpp in Sources */,
4DED4F18294733140073E504 /* altsyminterface.cpp in Sources */,
4DEBE6E72B36E9B400B67DFB /* facsimilefunctor.cpp in Sources */,
4DEF8A6521B7AAF90093A76B /* f.cpp in Sources */,
4D2073F922A3BCE000E0765F /* tabdursym.cpp in Sources */,
4D16940B1E3A44F300569BF4 /* keysig.cpp in Sources */,
Expand Down Expand Up @@ -4206,6 +4219,7 @@
8F086EF1188539540037FD8E /* keysig.cpp in Sources */,
E74A806C28BC98B2005274E7 /* functorinterface.cpp in Sources */,
E7870357299CF06D00156DC4 /* adjustarpegfunctor.cpp in Sources */,
4DEBE6E62B36E9B300B67DFB /* facsimilefunctor.cpp in Sources */,
4DEC4D9E21C81E9400D1D273 /* orig.cpp in Sources */,
4DDBBB5D1C7AE45900054AFF /* hairpin.cpp in Sources */,
4D43C30C1A9BB22A00EA28F3 /* view_mensural.cpp in Sources */,
Expand Down Expand Up @@ -4489,6 +4503,7 @@
4DB3D8D51F83D12B00B5FC2B /* tempo.cpp in Sources */,
4DEC4DA021C81E9400D1D273 /* orig.cpp in Sources */,
E7F39C6329A62B440055DBE0 /* adjustclefchangesfunctor.cpp in Sources */,
4DEBE6E42B36E79600B67DFB /* facsimilefunctor.cpp in Sources */,
E79320692991454000D80975 /* calcstemfunctor.cpp in Sources */,
8F3DD33E18854B2E0051330C /* beam.cpp in Sources */,
4DED4F19294733140073E504 /* altsyminterface.cpp in Sources */,
Expand Down Expand Up @@ -4771,6 +4786,7 @@
E793206A2991454100D80975 /* calcstemfunctor.cpp in Sources */,
BB4C4AD722A932B6001F6AF0 /* staff.cpp in Sources */,
4DED4F1A294733140073E504 /* altsyminterface.cpp in Sources */,
4DEBE6E52B36E79600B67DFB /* facsimilefunctor.cpp in Sources */,
BB4C4B9F22A932E5001F6AF0 /* positioninterface.cpp in Sources */,
BB4C4B5322A932D7001F6AF0 /* halfmrpt.cpp in Sources */,
BB4C4B8722A932DF001F6AF0 /* num.cpp in Sources */,
Expand Down Expand Up @@ -5008,7 +5024,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CLANG_CXX_LANGUAGE_STANDARD = "c++20";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
Expand Down Expand Up @@ -5067,7 +5083,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CLANG_CXX_LANGUAGE_STANDARD = "c++20";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
Expand Down
4 changes: 2 additions & 2 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if(MSVC)
add_definitions(/wd4244) # suppress warning of possible loss of precision
add_definitions(-DNO_PAE_SUPPORT) # regex is working differently under Windows so PAE is not supported (yet)
add_definitions(-DUSE_PAE_OLD_PARSER)
add_definitions(/std:c++17)
add_definitions(/std:c++20)
include_directories(../include/win32)
else()
if(CMAKE_BUILD_TYPE MATCHES Debug)
Expand All @@ -60,7 +60,7 @@ else()
# jsonxx raises -Wdollar-in-identifier-extension
# gcc 8.3.1 does not like -Wdollar-in-identifier-extension option.
add_definitions(-Wall -W -pedantic -Wno-unused-parameter -Wno-dollar-in-identifier-extension)
add_definitions(-std=c++17)
add_definitions(-std=c++20)

# extra warnings similar to Xcode compiling settings (most probably covered by -Wall):
# https://github.com/llvm-mirror/clang/blob/master/include/clang/Basic/DiagnosticGroups.td
Expand Down
2 changes: 1 addition & 1 deletion emscripten/buildToolkit
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ my ($lightQ, $version, $chattyQ, $helpQ, $exclusion, $wasmQ, $makeQ, $modularize
my ($nopae, $nohumdrum, $nomusicxml, $nodarms);
my ($FLAGS_NAME, $VERSION, $CHATTY);

my $cpp = 17; # c++ version to compile (11, 14, 17)
my $cpp = 20; # c++ version to compile (11, 14, 17)
my $VEROVIO_ROOT = "..";

Getopt::Long::Configure("bundling");
Expand Down
Loading

0 comments on commit ae148e7

Please sign in to comment.