mirror of
https://github.com/boostorg/static_string.git
synced 2026-01-20 05:02:33 +00:00
Compare commits
63 Commits
boost-1.77
...
boost-1.90
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c915934529 | ||
|
|
10b5491104 | ||
|
|
a58319dbdd | ||
|
|
4c84b61975 | ||
|
|
fbd6051165 | ||
|
|
db1ea76a17 | ||
|
|
ee172b86fd | ||
|
|
bd3dd01259 | ||
|
|
a841869405 | ||
|
|
3613e9578d | ||
|
|
6f17b60377 | ||
|
|
815678e1e7 | ||
|
|
2cc22bf5a8 | ||
|
|
d6f976a7df | ||
|
|
7b564d8d26 | ||
|
|
3c37deed99 | ||
|
|
34ef5c45be | ||
|
|
0f34644488 | ||
|
|
4c27826548 | ||
|
|
9c5d69475d | ||
|
|
300781d954 | ||
|
|
cd1a1a41c3 | ||
|
|
0d255f7438 | ||
|
|
17d77ef5bb | ||
|
|
20afd07676 | ||
|
|
7f903ef7ce | ||
|
|
5dfbb1f2b1 | ||
|
|
37a557d937 | ||
|
|
cd546285c4 | ||
|
|
645bf0a27d | ||
|
|
5067dfce5f | ||
|
|
d37197d773 | ||
|
|
a421cf742c | ||
|
|
7a53b7ff20 | ||
|
|
24d62635a3 | ||
|
|
a8f671ea1e | ||
|
|
d677c9436c | ||
|
|
a3cc7bcf95 | ||
|
|
70578731e7 | ||
|
|
3fb22ed769 | ||
|
|
32824bfa1d | ||
|
|
f15a4d0586 | ||
|
|
cd5bc51e9e | ||
|
|
77d6a43dce | ||
|
|
8f969a62f7 | ||
|
|
bff5cb65a5 | ||
|
|
42bb99ed25 | ||
|
|
175f467a03 | ||
|
|
6275cd7fe3 | ||
|
|
ac84c4f40e | ||
|
|
269987446e | ||
|
|
82ff4e0679 | ||
|
|
9c3d5febe7 | ||
|
|
0c914ff05b | ||
|
|
bfce6eea90 | ||
|
|
ffce33d483 | ||
|
|
c4f6491537 | ||
|
|
25579e482f | ||
|
|
3e9489a7af | ||
|
|
7822f1b991 | ||
|
|
5d6fefdd2a | ||
|
|
f92940bfab | ||
|
|
c5df271a1a |
121
.appveyor.yml
121
.appveyor.yml
@@ -1,5 +1,6 @@
|
||||
# Copyright 2016, 2017 Peter Dimov
|
||||
# Copyright (C) 2017 - 2019 James E. King III
|
||||
# Copyright 2017 - 2019 James E. King III
|
||||
# Copyright 2019 - 2021 Alexander Grund
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
||||
|
||||
@@ -21,7 +22,7 @@
|
||||
|
||||
version: 1.0.{build}-{branch}
|
||||
|
||||
shallow_clone: true
|
||||
shallow_clone: false
|
||||
|
||||
branches:
|
||||
only:
|
||||
@@ -33,115 +34,101 @@ branches:
|
||||
- /pr\/.*/
|
||||
|
||||
matrix:
|
||||
fast_finish: false
|
||||
# Adding MAYFAIL to any matrix job allows it to fail but the build stays green:
|
||||
allow_failures:
|
||||
- MAYFAIL: true
|
||||
|
||||
environment:
|
||||
global:
|
||||
B2_CI_VERSION: 1
|
||||
GIT_FETCH_JOBS: 4
|
||||
# see: http://www.boost.org/build/doc/html/bbv2/overview/invocation.html#bbv2.overview.invocation.properties
|
||||
# to use the default for a given environment, comment it out; recommend you build debug and release however:
|
||||
# on Windows it is important to exercise all the possibilities, especially shared vs static, however most
|
||||
# libraries that care about this exercise it in their Jamfiles...
|
||||
# B2_ADDRESS_MODEL: address-model=64,32
|
||||
# B2_LINK: link=shared,static
|
||||
B2_ADDRESS_MODEL: 32,64
|
||||
B2_LINK: shared,static
|
||||
# B2_THREADING: threading=multi,single
|
||||
B2_VARIANT: variant=release
|
||||
B2_VARIANT: release
|
||||
|
||||
matrix:
|
||||
- FLAVOR: Visual Studio 2022
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
||||
B2_CXXFLAGS: -permissive-
|
||||
B2_CXXSTD: 14,17,20
|
||||
B2_TOOLSET: msvc-14.3
|
||||
|
||||
- FLAVOR: Visual Studio 2019
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
B2_ADDRESS_MODEL: address-model=64
|
||||
B2_CXXFLAGS: cxxflags=-permissive-
|
||||
B2_CXXSTD: 17 # 2a
|
||||
B2_CXXFLAGS: -permissive-
|
||||
B2_CXXSTD: 14,17,2a
|
||||
B2_TOOLSET: msvc-14.2
|
||||
|
||||
- FLAVOR: Visual Studio 2017 C++2a Strict
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
B2_ADDRESS_MODEL: address-model=64
|
||||
B2_CXXFLAGS: cxxflags=-permissive-
|
||||
B2_CXXSTD: 17 # 2a
|
||||
B2_CXXFLAGS: -permissive-
|
||||
B2_CXXSTD: 2a
|
||||
B2_TOOLSET: msvc-14.1
|
||||
|
||||
- FLAVOR: Visual Studio 2017 C++17
|
||||
- FLAVOR: Visual Studio 2017 C++14/17
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
B2_ADDRESS_MODEL: address-model=64
|
||||
B2_CXXSTD: 17
|
||||
B2_TOOLSET: msvc-14.1
|
||||
B2_VARIANT: variant=debug
|
||||
|
||||
- FLAVOR: Visual Studio 2017 C++14 (Default)
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
B2_ADDRESS_MODEL: address-model=64,32
|
||||
B2_CXXSTD: 14,17
|
||||
B2_TOOLSET: msvc-14.1
|
||||
|
||||
- FLAVOR: clang-cl
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
B2_ADDRESS_MODEL: address-model=64
|
||||
B2_CXXSTD: 11
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
ADDCOMMANDS: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"'
|
||||
B2_ADDRESS_MODEL: 64
|
||||
B2_CXXSTD: 11,14,17
|
||||
B2_TOOLSET: clang-win
|
||||
|
||||
- FLAVOR: Visual Studio 2015 C++14 (Default)
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||
B2_ADDRESS_MODEL: address-model=64,32
|
||||
B2_TOOLSET: msvc-14.0
|
||||
B2_VARIANT: variant=debug
|
||||
# not supported
|
||||
# - FLAVOR: Visual Studio 2015, 2013
|
||||
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||
# B2_TOOLSET: msvc-12.0,msvc-14.0
|
||||
|
||||
- FLAVOR: Visual Studio 2010, 2012, 2013
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||
B2_TOOLSET: msvc-10.0,msvc-11.0,msvc-12.0
|
||||
# - FLAVOR: Visual Studio 2008, 2010, 2012
|
||||
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||
# B2_TOOLSET: msvc-9.0,msvc-10.0,msvc-11.0
|
||||
# B2_ADDRESS_MODEL: 32 # No 64bit support
|
||||
|
||||
- FLAVOR: cygwin (32-bit)
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
ADDPATH: C:\cygwin\bin;
|
||||
B2_ADDRESS_MODEL: address-model=32
|
||||
B2_CXXSTD: 03,11
|
||||
# https://github.com/boostorg/test/issues/144
|
||||
B2_DEFINES: define=_POSIX_C_SOURCE=200112L
|
||||
B2_THREADING: threadapi=pthread
|
||||
B2_ADDRESS_MODEL: 32
|
||||
B2_CXXSTD: 11,14,1z
|
||||
B2_TOOLSET: gcc
|
||||
B2_VARIANT: variant=debug
|
||||
|
||||
- FLAVOR: cygwin (64-bit)
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
ADDPATH: C:\cygwin64\bin;
|
||||
B2_ADDRESS_MODEL: address-model=64
|
||||
B2_CXXSTD: 11,17
|
||||
# https://github.com/boostorg/test/issues/144
|
||||
B2_DEFINES: define=_POSIX_C_SOURCE=200112L define=__USE_ISOC99
|
||||
B2_THREADING: threadapi=pthread
|
||||
B2_ADDRESS_MODEL: 64
|
||||
B2_CXXSTD: 11,14,1z
|
||||
B2_TOOLSET: gcc
|
||||
|
||||
- FLAVOR: mingw32
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
ARCH: i686
|
||||
B2_ADDRESS_MODEL: address-model=32
|
||||
B2_CXXSTD: 03,11
|
||||
SCRIPT: ci\appveyor\mingw.bat
|
||||
B2_VARIANT: variant=debug
|
||||
- FLAVOR: mingw64 (32-bit)
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
ADDPATH: C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin;
|
||||
B2_ADDRESS_MODEL: 32
|
||||
B2_CXXSTD: 11,14,17,2a
|
||||
B2_TOOLSET: gcc
|
||||
|
||||
- FLAVOR: mingw64
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
ARCH: x86_64
|
||||
B2_ADDRESS_MODEL: address-model=64
|
||||
B2_CXXSTD: 11,17
|
||||
B2_DEFINES: define=__USE_ISOC99
|
||||
SCRIPT: ci\appveyor\mingw.bat
|
||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
||||
ADDPATH: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;
|
||||
B2_ADDRESS_MODEL: 64
|
||||
B2_CXXSTD: 11,14,17,2a
|
||||
B2_TOOLSET: gcc
|
||||
|
||||
install:
|
||||
- set SELF=%APPVEYOR_PROJECT_NAME:-=_%
|
||||
- git clone https://github.com/boostorg/boost-ci.git C:\boost-ci
|
||||
- xcopy /s /e /q /i C:\boost-ci\ci .\ci
|
||||
- '%ADDCOMMANDS%'
|
||||
- git clone --depth 1 https://github.com/boostorg/boost-ci.git C:\boost-ci-cloned
|
||||
# Copy ci folder if not testing Boost.CI
|
||||
- if NOT "%APPVEYOR_PROJECT_NAME%" == "boost-ci" xcopy /s /e /q /i /y C:\boost-ci-cloned\ci .\ci
|
||||
- rmdir /s /q C:\boost-ci-cloned
|
||||
- ci\appveyor\install.bat
|
||||
|
||||
build: off
|
||||
|
||||
test_script:
|
||||
- set SELF=%APPVEYOR_PROJECT_NAME:-=_%
|
||||
- PATH=%ADDPATH%%PATH%
|
||||
# The definition of B2_TOOLCXX omits B2_CXXSTD= if it was not defined above
|
||||
- IF NOT DEFINED B2_CXXSTD (SET B2_TOOLCXX=toolset=%B2_TOOLSET%) ELSE (SET B2_TOOLCXX=toolset=%B2_TOOLSET% cxxstd=%B2_CXXSTD%)
|
||||
# Echo the complete build command to the build log
|
||||
- IF NOT DEFINED SCRIPT (ECHO b2 libs/%SELF:\=/% %B2_TOOLCXX% %B2_CXXFLAGS% %B2_DEFINES% %B2_THREADING% %B2_ADDRESS_MODEL% %B2_LINK% %B2_THREADING% %B2_VARIANT% -j3)
|
||||
# Now go build...
|
||||
- IF DEFINED SCRIPT (call libs\%SELF%\%SCRIPT%) ELSE (b2 libs/%SELF:\=/% %B2_TOOLCXX% %B2_CXXFLAGS% %B2_DEFINES% %B2_THREADING% %B2_ADDRESS_MODEL% %B2_LINK% %B2_THREADING% %B2_VARIANT% -j3)
|
||||
test_script: ci\build.bat
|
||||
|
||||
@@ -1,276 +0,0 @@
|
||||
# Copyright 2015-2019 Rene Rivera.
|
||||
# Copyright 2019 Mateusz Loskot <mateusz at loskot dot net>
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#
|
||||
# Generic Azure Pipelines build script for boostorg repositories
|
||||
# See: https://github.com/boostorg/boost-ci/
|
||||
#
|
||||
# Instructions for customizing this script for your library:
|
||||
#
|
||||
# 1. Customize the compilers and language levels you want.
|
||||
# 2. If you have more than include/, src/, test/, example/, examples/,
|
||||
# benchmark/ or tools/ directories, set the environment variable DEPINST.
|
||||
# For example if your build uses code in "bench/" and "fog/" directories:
|
||||
# - DEPINST: --include bench --include fog
|
||||
# 3. Enable pull request builds in your boostorg/<library> account.
|
||||
#
|
||||
# That's it - the script will do everything else for you.
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- develop
|
||||
- master
|
||||
- bugfix/*
|
||||
- feature/*
|
||||
- fix/*
|
||||
- pr/*
|
||||
|
||||
pr:
|
||||
branches:
|
||||
include:
|
||||
- develop
|
||||
|
||||
variables:
|
||||
- name: B2_VARIANT
|
||||
value: variant=release,debug
|
||||
|
||||
stages:
|
||||
|
||||
- stage: Test
|
||||
jobs:
|
||||
|
||||
- job: 'Linux'
|
||||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
strategy:
|
||||
matrix:
|
||||
GCC 8:
|
||||
B2_TOOLSET: gcc
|
||||
B2_CXXSTD: 14,17
|
||||
CXX: g++-8
|
||||
PACKAGES: g++-8
|
||||
GCC 7:
|
||||
B2_TOOLSET: gcc
|
||||
B2_CXXSTD: 11,14,17
|
||||
CXX: g++-7
|
||||
PACKAGES: g++-7
|
||||
GCC 6:
|
||||
B2_TOOLSET: gcc
|
||||
B2_CXXSTD: 11,14
|
||||
CXX: g++-6
|
||||
PACKAGES: g++-6
|
||||
GCC 5:
|
||||
B2_TOOLSET: gcc
|
||||
B2_CXXSTD: 11
|
||||
CXX: g++-5
|
||||
PACKAGES: g++-5
|
||||
GCC 4.9:
|
||||
B2_TOOLSET: gcc
|
||||
B2_CXXSTD: 11
|
||||
CXX: g++-4.9
|
||||
PACKAGES: g++-4.9
|
||||
GCC 4.8:
|
||||
B2_TOOLSET: gcc
|
||||
B2_CXXSTD: 11
|
||||
CXX: g++-4.8
|
||||
PACKAGES: g++-4.8
|
||||
Clang 8:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 14,17
|
||||
CXX: clang++-8
|
||||
PACKAGES: clang-8
|
||||
LLVM_REPO: llvm-toolchain-xenial-8
|
||||
Clang 7:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 14,17
|
||||
CXX: clang++-7
|
||||
PACKAGES: clang-7
|
||||
LLVM_REPO: llvm-toolchain-xenial-7
|
||||
Clang 6:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 14,17
|
||||
CXX: clang++-6.0
|
||||
PACKAGES: clang-6.0
|
||||
LLVM_REPO: llvm-toolchain-xenial-6.0
|
||||
Clang 5:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 11,14,17
|
||||
PACKAGES: clang-5.0
|
||||
CXX: clang++-5.0
|
||||
LLVM_REPO: llvm-toolchain-xenial-5.0
|
||||
Clang 4:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 11,14,17
|
||||
CXX: clang++-4.0
|
||||
PACKAGES: clang-4.0
|
||||
LLVM_REPO: llvm-toolchain-xenial-4.0
|
||||
Clang 3.9:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 11,14
|
||||
CXX: clang++-3.9
|
||||
PACKAGES: clang-3.9
|
||||
Clang 3.8:
|
||||
B2_TOOLSET: clang
|
||||
CXX: clang++-3.8
|
||||
B2_CXXSTD: 11,14
|
||||
PACKAGES: clang-3.8
|
||||
Clang 3.7:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 11
|
||||
CXX: clang++-3.7
|
||||
PACKAGES: clang-3.7
|
||||
Clang 3.6:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 11
|
||||
CXX: clang++-3.6
|
||||
PACKAGES: clang-3.6
|
||||
Clang 3.5:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 11
|
||||
CXX: clang++-3.5
|
||||
PACKAGES: clang-3.5
|
||||
steps:
|
||||
- bash: |
|
||||
set -e
|
||||
uname -a
|
||||
sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
|
||||
if test -n "${LLVM_REPO}" ; then
|
||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
sudo -E apt-add-repository "deb http://apt.llvm.org/xenial/ ${LLVM_REPO} main"
|
||||
fi
|
||||
sudo -E apt-get update
|
||||
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install ${PACKAGES}
|
||||
|
||||
git clone --branch master https://github.com/boostorg/boost-ci.git boost-ci
|
||||
cp -pr boost-ci/ci boost-ci/.codecov.yml .
|
||||
rm -rf boost-ci
|
||||
source ci/azure-pipelines/install.sh
|
||||
|
||||
# AzP requires to run special task in order to export
|
||||
# SELF and BOOST_ROOT as job-scoped variable from a script.
|
||||
# NOTE: Disable set -x is necessary, see the troubleshooting guide
|
||||
# on "Variables having ' (single quote) appended":
|
||||
# https://docs.microsoft.com/en-us/azure/devops/pipelines/troubleshooting
|
||||
set +x
|
||||
echo "##vso[task.setvariable variable=SELF]"$SELF
|
||||
echo "##vso[task.setvariable variable=BOOST_ROOT]"$BOOST_ROOT
|
||||
set -x
|
||||
displayName: 'Install'
|
||||
- bash: |
|
||||
set -e
|
||||
echo "SELF=$SELF"
|
||||
echo "BOOST_ROOT=$BOOST_ROOT"
|
||||
|
||||
cd $BOOST_ROOT/libs/$SELF
|
||||
ci/azure-pipelines/build.sh --debug-configuration
|
||||
displayName: 'Build'
|
||||
|
||||
- job: 'Windows'
|
||||
strategy:
|
||||
matrix:
|
||||
VS 2019 C++17 Strict:
|
||||
B2_TOOLSET: msvc-14.2
|
||||
B2_CXXSTD: 17
|
||||
B2_CXXFLAGS: cxxflags=-permissive-
|
||||
B2_ADDRESS_MODEL: address-model=64
|
||||
VM_IMAGE: 'windows-2019'
|
||||
VS 2017 C++17 Strict:
|
||||
B2_TOOLSET: msvc-14.1
|
||||
B2_CXXSTD: 17
|
||||
B2_CXXFLAGS: cxxflags=-permissive-
|
||||
B2_ADDRESS_MODEL: address-model=64
|
||||
VM_IMAGE: 'vs2017-win2016'
|
||||
VS 2017 C++17:
|
||||
B2_TOOLSET: msvc-14.1
|
||||
B2_CXXSTD: 17
|
||||
B2_ADDRESS_MODEL: address-model=64,32
|
||||
VM_IMAGE: 'vs2017-win2016'
|
||||
VS 2017 C++14:
|
||||
B2_TOOLSET: msvc-14.1
|
||||
#B2_CXXSTD: 14 # default
|
||||
B2_ADDRESS_MODEL: address-model=64,32
|
||||
VM_IMAGE: 'vs2017-win2016'
|
||||
|
||||
pool:
|
||||
vmImage: $(VM_IMAGE)
|
||||
steps:
|
||||
- script: |
|
||||
set SELF=%BUILD_REPOSITORY_NAME:-=_%
|
||||
for /f "tokens=2 delims=/" %%a in ("%SELF%") do set SELF=%%a
|
||||
set BOOST_ROOT=%BUILD_SOURCESDIRECTORY%\boost-root
|
||||
|
||||
git clone --branch master https://github.com/boostorg/boost-ci.git boost-ci
|
||||
xcopy /s /e /q /i boost-ci\ci .\ci
|
||||
cmd /k ci\azure-pipelines\install.bat
|
||||
|
||||
echo ##vso[task.setvariable variable=SELF]%SELF%
|
||||
echo ##vso[task.setvariable variable=BOOST_ROOT]%BOOST_ROOT%
|
||||
displayName: 'Install'
|
||||
- script: |
|
||||
PATH=%ADDPATH%%PATH%
|
||||
REM The definition of B2_TOOLCXX omits B2_CXXSTD= if it was not defined above
|
||||
IF NOT DEFINED B2_CXXSTD (SET B2_TOOLCXX=toolset=%B2_TOOLSET%) ELSE (SET B2_TOOLCXX=toolset=%B2_TOOLSET% cxxstd=%B2_CXXSTD%)
|
||||
cd %BOOST_ROOT%
|
||||
ECHO b2 libs/%SELF:\=/% %B2_TOOLCXX% %B2_CXXFLAGS% %B2_DEFINES% %B2_THREADING% %B2_ADDRESS_MODEL% %B2_LINK% %B2_THREADING% %B2_VARIANT% -j3
|
||||
b2 libs/%SELF:\=/% %B2_TOOLCXX% %B2_CXXFLAGS% %B2_DEFINES% %B2_THREADING% %B2_ADDRESS_MODEL% %B2_LINK% %B2_THREADING% %B2_VARIANT% -j3
|
||||
displayName: 'Build'
|
||||
|
||||
- job: 'macOS'
|
||||
pool:
|
||||
vmImage: 'macOS-10.14'
|
||||
strategy:
|
||||
matrix:
|
||||
Xcode_11_3_1:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 14,17,2a
|
||||
XCODE_APP: /Applications/Xcode_11.3.1.app
|
||||
Xcode_11_2_1:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 14,17,2a
|
||||
XCODE_APP: /Applications/Xcode_11.2.1.app
|
||||
Xcode_11_2:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 14,17,2a
|
||||
XCODE_APP: /Applications/Xcode_11.2.app
|
||||
Xcode_11_1:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 14,17,2a
|
||||
XCODE_APP: /Applications/Xcode_11.1.app
|
||||
Xcode_10_3:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 11,14,17,2a
|
||||
XCODE_APP: /Applications/Xcode_10.3.app
|
||||
Xcode_10_2_1:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 11,14,17,2a
|
||||
XCODE_APP: /Applications/Xcode_10.2.1.app
|
||||
Xcode_10_2:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 11,14,17,2a
|
||||
XCODE_APP: /Applications/Xcode_10.2.app
|
||||
Xcode_10_1:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 11,14,17,2a
|
||||
XCODE_APP: /Applications/Xcode_10.1.app
|
||||
Xcode_10_0:
|
||||
B2_TOOLSET: clang
|
||||
B2_CXXSTD: 11,14,17,2a
|
||||
XCODE_APP: /Applications/Xcode_10.app
|
||||
steps:
|
||||
- bash: |
|
||||
set -e
|
||||
git clone --branch master https://github.com/boostorg/boost-ci.git boost-ci-cloned
|
||||
cp -prf boost-ci-cloned/ci .
|
||||
rm -rf boost-ci-cloned
|
||||
source ci/azure-pipelines/install.sh
|
||||
displayName: Install
|
||||
- bash: |
|
||||
set -e
|
||||
echo "SELF=$SELF"
|
||||
echo "BOOST_ROOT=$BOOST_ROOT"
|
||||
cd $BOOST_ROOT/libs/$SELF
|
||||
ci/azure-pipelines/build.sh
|
||||
displayName: 'Build'
|
||||
25
.codecov.yml
Normal file
25
.codecov.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
# Copyright 2019 - 2021 Alexander Grund
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
||||
#
|
||||
# Sample codecov configuration file. Edit as required
|
||||
|
||||
codecov:
|
||||
max_report_age: off
|
||||
require_ci_to_pass: yes
|
||||
notify:
|
||||
# Increase this if you have multiple coverage collection jobs
|
||||
after_n_builds: 1
|
||||
wait_for_ci: yes
|
||||
|
||||
# Change how pull request comments look
|
||||
comment:
|
||||
layout: "reach,diff,flags,files,footer"
|
||||
|
||||
# Ignore specific files or folders. Glob patterns are supported.
|
||||
# See https://docs.codecov.com/docs/ignoring-paths
|
||||
ignore:
|
||||
- extra/*
|
||||
- extra/**/*
|
||||
- test/*
|
||||
- test/**/*
|
||||
117
.drone.star
Normal file
117
.drone.star
Normal file
@@ -0,0 +1,117 @@
|
||||
# Use, modification, and distribution are
|
||||
# subject to the Boost Software License, Version 1.0. (See accompanying
|
||||
# file LICENSE.txt)
|
||||
#
|
||||
# Copyright (c) 2020 Rene Rivera
|
||||
# Copyright (c) 2022 Alan de Freitas
|
||||
# Copyright (c) 2022-2025 Alexander Grund
|
||||
|
||||
# For Drone CI we use the Starlark scripting language to reduce duplication.
|
||||
# As the yaml syntax for Drone CI is rather limited.
|
||||
|
||||
# Base environment for all jobs
|
||||
globalenv={'B2_VARIANT': 'release'}
|
||||
|
||||
# Wrapper function to apply the globalenv to all jobs
|
||||
def job(
|
||||
# job specific environment options
|
||||
env={},
|
||||
**kwargs):
|
||||
real_env = dict(globalenv)
|
||||
real_env.update(env)
|
||||
return job_impl(env=real_env, **kwargs)
|
||||
|
||||
def main(ctx):
|
||||
return [
|
||||
job(compiler='clang-3.8', cxxstd='11,14', os='ubuntu-16.04'),
|
||||
job(compiler='clang-3.9', cxxstd='11,14', os='ubuntu-18.04'),
|
||||
job(compiler='clang-4.0', cxxstd='11,14', os='ubuntu-18.04'),
|
||||
job(compiler='clang-5.0', cxxstd='11,14,1z', os='ubuntu-18.04'),
|
||||
job(compiler='clang-6.0', cxxstd='11,14,17', os='ubuntu-18.04'),
|
||||
job(compiler='clang-7', cxxstd='11,14,17', os='ubuntu-18.04'),
|
||||
job(compiler='clang-8', cxxstd='11,14,17,2a', os='ubuntu-18.04'),
|
||||
job(compiler='clang-9', cxxstd='11,14,17,2a', os='ubuntu-18.04'),
|
||||
job(compiler='clang-10', cxxstd='11,14,17,2a', os='ubuntu-18.04'),
|
||||
job(compiler='clang-11', cxxstd='11,14,17,2a', os='ubuntu-22.04'),
|
||||
job(compiler='clang-12', cxxstd='11,14,17,20', os='ubuntu-22.04'),
|
||||
job(compiler='clang-13', cxxstd='11,14,17,20,2b', os='ubuntu-22.04'),
|
||||
job(compiler='clang-14', cxxstd='11,14,17,20,2b', os='ubuntu-22.04'),
|
||||
job(compiler='clang-15', cxxstd='11,14,17,20,2b', os='ubuntu-22.04', add_llvm=True,
|
||||
env={'B2_CXXFLAGS': '-Werror'}),
|
||||
job(name='Clang 15 standalone', compiler='clang-15', cxxstd='17,20,2b', os='ubuntu-22.04', add_llvm=True,
|
||||
env={'B2_CXXFLAGS': '-Werror', 'B2_DEFINES': 'BOOST_STATIC_STRING_STANDALONE'}),
|
||||
|
||||
job(compiler='gcc-4.8', cxxstd='11', os='ubuntu-16.04'),
|
||||
job(compiler='gcc-4.9', cxxstd='11', os='ubuntu-16.04'),
|
||||
job(compiler='gcc-5', cxxstd='11,14,1z', os='ubuntu-18.04'),
|
||||
job(compiler='gcc-6', cxxstd='11,14,1z', os='ubuntu-18.04'),
|
||||
job(compiler='gcc-7', cxxstd='11,14,1z', os='ubuntu-18.04'),
|
||||
job(compiler='gcc-8', cxxstd='11,14,17,2a', os='ubuntu-18.04'),
|
||||
job(compiler='gcc-9', cxxstd='11,14,17,2a', os='ubuntu-18.04'),
|
||||
job(compiler='gcc-10', cxxstd='11,14,17,20', os='ubuntu-22.04'),
|
||||
job(compiler='gcc-11', cxxstd='11,14,17,20,2b', os='ubuntu-22.04'),
|
||||
job(compiler='gcc-12', cxxstd='11,14,17,20,2b', os='ubuntu-22.04'),
|
||||
|
||||
job(name='Coverage', buildtype='codecov', buildscript='codecov_coveralls', env={'LCOV_BRANCH_COVERAGE': 1, "COVERALLS_REPO_TOKEN": {"from_secret": "coveralls_repo_token"}},
|
||||
compiler='gcc-8', cxxstd='11,14,17,2a', os='ubuntu-18.04'),
|
||||
# Sanitizers
|
||||
job(name='ASAN', asan=True,
|
||||
compiler='gcc-12', cxxstd='11,14,17,20', os='ubuntu-22.04'),
|
||||
job(name='UBSAN', ubsan=True,
|
||||
compiler='gcc-12', cxxstd='11,14,17,20', os='ubuntu-22.04'),
|
||||
job(name='TSAN', tsan=True,
|
||||
compiler='gcc-12', cxxstd='11,14,17,20', os='ubuntu-22.04'),
|
||||
job(name='Clang 14 w/ sanitizers', asan=True, ubsan=True,
|
||||
compiler='clang-14', cxxstd='11,14,17,20', os='ubuntu-22.04'),
|
||||
job(name='Clang 11 libc++ w/ sanitizers', asan=True, ubsan=True, # libc++-11 is the latest working with ASAN: https://github.com/llvm/llvm-project/issues/59432
|
||||
compiler='clang-11', cxxstd='11,14,17,20', os='ubuntu-20.04', stdlib='libc++', install='libc++-11-dev libc++abi-11-dev'),
|
||||
job(name='Valgrind', valgrind=True,
|
||||
compiler='clang-6.0', cxxstd='11,14,1z', os='ubuntu-18.04', install='libc6-dbg libc++-dev libstdc++-8-dev'),
|
||||
|
||||
# libc++
|
||||
job(compiler='clang-6.0', cxxstd='11,14,17,2a', os='ubuntu-18.04', stdlib='libc++', install='libc++-dev libc++abi-dev'),
|
||||
job(compiler='clang-7', cxxstd='11,14,17,2a', os='ubuntu-20.04', stdlib='libc++', install='libc++-7-dev libc++abi-7-dev'),
|
||||
job(compiler='clang-8', cxxstd='11,14,17,2a', os='ubuntu-20.04', stdlib='libc++', install='libc++-8-dev libc++abi-8-dev'),
|
||||
job(compiler='clang-9', cxxstd='11,14,17,2a', os='ubuntu-20.04', stdlib='libc++', install='libc++-9-dev libc++abi-9-dev'),
|
||||
job(compiler='clang-10', cxxstd='11,14,17,20', os='ubuntu-20.04', stdlib='libc++', install='libc++-10-dev libc++abi-10-dev'),
|
||||
job(compiler='clang-11', cxxstd='11,14,17,20', os='ubuntu-20.04', stdlib='libc++', install='libc++-11-dev libc++abi-11-dev'),
|
||||
job(compiler='clang-12', cxxstd='11,14,17,20', os='ubuntu-22.04', stdlib='libc++', install='libc++-12-dev libc++abi-12-dev libunwind-12-dev'),
|
||||
job(compiler='clang-13', cxxstd='11,14,17,20', os='ubuntu-22.04', stdlib='libc++', install='libc++-13-dev libc++abi-13-dev'),
|
||||
job(compiler='clang-14', cxxstd='11,14,17,20', os='ubuntu-22.04', stdlib='libc++', install='libc++-14-dev libc++abi-14-dev'),
|
||||
job(compiler='clang-15', cxxstd='11,14,17,20', os='ubuntu-22.04', stdlib='libc++', install='libc++-15-dev libc++abi-15-dev', add_llvm=True),
|
||||
|
||||
# FreeBSD
|
||||
job(compiler='clang-10', cxxstd='11,14,17,20', os='freebsd-13.1'),
|
||||
job(compiler='clang-15', cxxstd='11,14,17,20', os='freebsd-13.1'),
|
||||
job(compiler='gcc-11', cxxstd='11,14,17,20', os='freebsd-13.1', linkflags='-Wl,-rpath=/usr/local/lib/gcc11'),
|
||||
# OSX
|
||||
job(compiler='clang', cxxstd='11,14,17,2a', os='osx-xcode-10.1'),
|
||||
job(compiler='clang', cxxstd='11,14,17,2a', os='osx-xcode-10.3'),
|
||||
job(compiler='clang', cxxstd='11,14,17,2a', os='osx-xcode-11.1'),
|
||||
job(compiler='clang', cxxstd='11,14,17,2a', os='osx-xcode-11.7'),
|
||||
job(compiler='clang', cxxstd='11,14,17,2a', os='osx-xcode-12'),
|
||||
job(compiler='clang', cxxstd='11,14,17,20', os='osx-xcode-12.5.1'),
|
||||
job(compiler='clang', cxxstd='11,14,17,20', os='osx-xcode-13.0'),
|
||||
job(compiler='clang', cxxstd='11,14,17,20', os='osx-xcode-13.4.1'),
|
||||
job(compiler='clang', cxxstd='11,14,17,20,2b', os='osx-xcode-14.0'),
|
||||
job(compiler='clang', cxxstd='11,14,17,20,2b', os='osx-xcode-14.3.1'),
|
||||
job(compiler='clang', cxxstd='11,14,17,20,2b', os='osx-xcode-15.0.1'),
|
||||
# ARM64
|
||||
job(compiler='clang-12', cxxstd='11,14,17,20', os='ubuntu-20.04', arch='arm64', add_llvm=True),
|
||||
job(compiler='gcc-11', cxxstd='11,14,17,20', os='ubuntu-20.04', arch='arm64'),
|
||||
# S390x
|
||||
job(compiler='clang-12', cxxstd='11,14,17,20', os='ubuntu-20.04', arch='s390x', add_llvm=True),
|
||||
job(compiler='gcc-11', cxxstd='11,14,17,20', os='ubuntu-20.04', arch='s390x'),
|
||||
# Windows
|
||||
job(compiler='msvc-14.0', cxxstd=None, os='windows', env={'B2_DONT_EMBED_MANIFEST': 1}),
|
||||
job(compiler='msvc-14.1', cxxstd=None, os='windows'),
|
||||
job(compiler='msvc-14.2', cxxstd=None, os='windows'),
|
||||
job(compiler='msvc-14.3', cxxstd=None, os='windows'),
|
||||
job(compiler='msvc-14.0', cxxstd='14,17,20', os='windows', env={'B2_DONT_EMBED_MANIFEST': 1}),
|
||||
job(compiler='msvc-14.1', cxxstd='14,17,20', os='windows'),
|
||||
job(compiler='msvc-14.2', cxxstd='14,17,20', os='windows'),
|
||||
job(compiler='msvc-14.3', cxxstd='14,17,20,latest', os='windows'),
|
||||
]
|
||||
|
||||
# from https://github.com/boostorg/boost-ci
|
||||
load("@boost_ci//ci/drone/:functions.star", "linux_cxx", "windows_cxx", "osx_cxx", "freebsd_cxx", "job_impl")
|
||||
28
.drone/codecov_coveralls.sh
Normal file
28
.drone/codecov_coveralls.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright 2020 Rene Rivera, Sam Darwin
|
||||
# Copyright 2025 Alexander Grund
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# (See accompanying file LICENSE.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
set -xe
|
||||
|
||||
# Run the regular Boost CI script which does the test & upload to codecov.io
|
||||
wget https://github.com/boostorg/boost-ci/raw/refs/heads/master/.drone/drone.sh
|
||||
. drone.sh
|
||||
|
||||
# coveralls
|
||||
# uses multiple lcov steps from boost-ci codecov.sh script
|
||||
if [ -n "${COVERALLS_REPO_TOKEN}" ]; then
|
||||
echo "processing coveralls"
|
||||
pip3 install --user cpp-coveralls
|
||||
cd "$BOOST_CI_SRC_FOLDER"
|
||||
|
||||
export PATH=/tmp/lcov/bin:$PATH
|
||||
command -v lcov
|
||||
lcov --version
|
||||
|
||||
lcov --remove coverage.info -o coverage_filtered.info '*/test/*' '*/extra/*'
|
||||
cpp-coveralls --verbose -l coverage_filtered.info
|
||||
fi
|
||||
50
.github/workflows/ci.yml
vendored
Normal file
50
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
#
|
||||
# Copyright 2020-2021 Peter Dimov
|
||||
# Copyright 2021 Andrey Semashev
|
||||
# Copyright 2021-2025 Alexander Grund
|
||||
# Copyright 2022-2025 James E. King III
|
||||
#
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
||||
#
|
||||
# This workflow uses the Boost.CI reusable workflow which builds a variety of
|
||||
# configurations of your project, runs tests, and generates code coverage reports.
|
||||
#
|
||||
# To use it, copy this file into your repository as `.github/workflows/ci.yml` and
|
||||
# customize it appropriately.
|
||||
#
|
||||
---
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
- bugfix/**
|
||||
- feature/**
|
||||
- fix/**
|
||||
- github/**
|
||||
- pr/**
|
||||
paths-ignore:
|
||||
- LICENSE
|
||||
- meta/**
|
||||
- README.md
|
||||
|
||||
jobs:
|
||||
call-boost-ci:
|
||||
name: Run Boost.CI
|
||||
uses: boostorg/boost-ci/.github/workflows/reusable.yml@master
|
||||
with:
|
||||
exclude_cxxstd: '98,03,0x'
|
||||
enable_pr_coverage: false
|
||||
enable_multiarch: false
|
||||
# Example of customization:
|
||||
# with:
|
||||
# enable_reflection: true
|
||||
# enable_windows: false
|
||||
# secrets:
|
||||
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
# COVERITY_SCAN_NOTIFICATION_EMAIL: ${{ secrets.COVERITY_SCAN_NOTIFICATION_EMAIL }}
|
||||
# COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
||||
275
.travis.yml
275
.travis.yml
@@ -1,275 +0,0 @@
|
||||
# Copyright 2016 Peter Dimov
|
||||
# Copyright 2017 - 2019 James E. King III
|
||||
# Copyright 2020 Krystian Stasiowski
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#
|
||||
# Generic Travis CI build script for boostorg repositories
|
||||
# See: https://github.com/boostorg/boost-ci
|
||||
#
|
||||
# Instructions for customizing this script for your library:
|
||||
#
|
||||
# 1. Customize the compilers and language levels you want in the 'jobs'.
|
||||
# 2. If you have more than include/, src/, test/, example/, examples/, or
|
||||
# tools/ directories, modify your Travis CI project and add the environment
|
||||
# variable DEPINST. For example if your build uses code in "bench/" and
|
||||
# "fog/" directories, then set DEPINST to the following:
|
||||
# --include bench --include fog
|
||||
# 3. If you want to enable Coverity Scan, you need to provide the environment
|
||||
# variables COVERITY_SCAN_TOKEN and COVERITY_SCAN_NOTIFICATION_EMAIL in
|
||||
# your github settings.
|
||||
# 4. If you want to enable a big-endian build, you need to uncomment the
|
||||
# big-endian build job.
|
||||
# 5. Enable pull request builds in your boostorg/<library> account.
|
||||
#
|
||||
# That's it - the scripts will do everything else for you.
|
||||
|
||||
dist: xenial
|
||||
language: cpp
|
||||
|
||||
env:
|
||||
global:
|
||||
# see: http://www.boost.org/build/doc/html/bbv2/overview/invocation.html#bbv2.overview.invocation.properties
|
||||
# - B2_ADDRESS_MODEL=address-model=64,32
|
||||
# - B2_LINK=link=shared,static
|
||||
# - B2_THREADING=threading=multi,single
|
||||
- B2_VARIANT=variant=release
|
||||
|
||||
install:
|
||||
- git clone https://github.com/boostorg/boost-ci.git boost-ci
|
||||
- cp -pr boost-ci/ci boost-ci/.codecov.yml .
|
||||
- source ci/travis/install.sh
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- binutils-gold
|
||||
- gdb
|
||||
- libc6-dbg
|
||||
- qemu-user-static
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- develop
|
||||
- /bugfix\/.*/
|
||||
- /feature\/.*/
|
||||
- /fix\/.*/
|
||||
- /pr\/.*/
|
||||
|
||||
script:
|
||||
- cd $BOOST_ROOT/libs/$SELF
|
||||
- ci/travis/build.sh
|
||||
|
||||
#
|
||||
# Default toolsets in Ubuntu
|
||||
#
|
||||
# trusty xenial bionic
|
||||
# 14.04 16.04 18.04
|
||||
# ------ ------ ------
|
||||
# clang 3.4 3.8 6.0
|
||||
# gcc 4.8.2 5.3.1 7.3.0
|
||||
#
|
||||
|
||||
anchors:
|
||||
clang-38: &clang-38 { apt: { packages: [ "clang-3.8",
|
||||
"libstdc++-6-dev" ], sources: [ "llvm-toolchain-xenial-3.8",
|
||||
"ubuntu-toolchain-r-test" ] } }
|
||||
clang-4: &clang-4 { apt: { packages: [ "clang-4.0",
|
||||
"libstdc++-6-dev" ], sources: [ "llvm-toolchain-xenial-4.0",
|
||||
"ubuntu-toolchain-r-test" ] } }
|
||||
clang-5: &clang-5 { apt: { packages: [ "clang-5.0",
|
||||
"libstdc++-7-dev" ], sources: [ "llvm-toolchain-xenial-5.0",
|
||||
"ubuntu-toolchain-r-test" ] } }
|
||||
clang-6: &clang-6 { apt: { packages: [ "clang-6.0",
|
||||
"libc6-dbg",
|
||||
"libc++-dev",
|
||||
"libstdc++-8-dev" ], sources: [ "llvm-toolchain-xenial-6.0",
|
||||
"ubuntu-toolchain-r-test" ] } }
|
||||
clang-7: &clang-7 { apt: { packages: [ "clang-7",
|
||||
"libc6-dbg",
|
||||
"libc++-dev",
|
||||
"libstdc++-8-dev" ], sources: [ "llvm-toolchain-xenial-7",
|
||||
"ubuntu-toolchain-r-test" ] } }
|
||||
clang-8: &clang-8 { apt: { packages: [ "clang-8",
|
||||
"libc6-dbg",
|
||||
"libc++-dev",
|
||||
"libstdc++-8-dev" ], sources: [ "llvm-toolchain-xenial-8",
|
||||
"ubuntu-toolchain-r-test" ] } }
|
||||
|
||||
gcc-48: &gcc-48 { apt: { packages: [ "g++-4.8" ] } }
|
||||
gcc-49: &gcc-49 { apt: { packages: [ "g++-4.9" ], sources: [ "ubuntu-toolchain-r-test" ] } }
|
||||
gcc-5: &gcc-5 { apt: { packages: [ "g++-5" ] } }
|
||||
gcc-6: &gcc-6 { apt: { packages: [ "g++-6" ], sources: [ "ubuntu-toolchain-r-test" ] } }
|
||||
gcc-7: &gcc-7 { apt: { packages: [ "g++-7" ], sources: [ "ubuntu-toolchain-r-test" ] } }
|
||||
gcc-8: &gcc-8 { apt: { packages: [ "g++-8" ], sources: [ "ubuntu-toolchain-r-test" ] } }
|
||||
gcc-9: &gcc-9 { apt: { packages: [ "g++-9" ], sources: [ "ubuntu-toolchain-r-test" ] } }
|
||||
|
||||
jobs:
|
||||
allow_failures:
|
||||
- env:
|
||||
- COPY="all the environment settings from your job"
|
||||
|
||||
include:
|
||||
# coverage
|
||||
- os: linux
|
||||
env:
|
||||
- COMMENT=codecov.io
|
||||
- B2_CXXSTD=11
|
||||
- B2_TOOLSET=gcc-8
|
||||
- B2_DEFINES="define=BOOST_NO_STRESS_TEST=1"
|
||||
addons: *gcc-8
|
||||
script:
|
||||
- cd $BOOST_ROOT/libs/$SELF
|
||||
- tools/codecov.sh
|
||||
|
||||
- os: linux
|
||||
env:
|
||||
- COMMENT=asan
|
||||
- B2_VARIANT=variant=debug
|
||||
- B2_TOOLSET=gcc-8
|
||||
- B2_CXXSTD=11,14
|
||||
- B2_CXXFLAGS="address-sanitizer=norecover"
|
||||
- B2_DEFINES="define=BOOST_NO_STRESS_TEST=1"
|
||||
addons: *gcc-8
|
||||
|
||||
- os: linux
|
||||
env:
|
||||
- COMMENT=tsan
|
||||
- B2_VARIANT=variant=debug
|
||||
- B2_TOOLSET=gcc-8
|
||||
- B2_CXXSTD=11,14
|
||||
- B2_CXXFLAGS="thread-sanitizer=norecover"
|
||||
- B2_DEFINES="define=BOOST_NO_STRESS_TEST=1"
|
||||
addons: *gcc-8
|
||||
|
||||
- os: linux
|
||||
env:
|
||||
- COMMENT=ubsan
|
||||
- B2_VARIANT=variant=debug
|
||||
- B2_TOOLSET=gcc-8
|
||||
- B2_CXXSTD=11,14
|
||||
- B2_CXXFLAGS="undefined-sanitizer=norecover"
|
||||
- B2_DEFINES="define=BOOST_NO_STRESS_TEST=1"
|
||||
- B2_LINKFLAGS="linkflags=-fuse-ld=gold"
|
||||
- UBSAN_OPTIONS=print_stacktrace=1
|
||||
addons: *gcc-8
|
||||
|
||||
- os: linux
|
||||
env:
|
||||
- COMMENT=valgrind
|
||||
- B2_TOOLSET=clang-6.0
|
||||
- B2_CXXSTD=11,14
|
||||
- B2_DEFINES="define=BOOST_NO_STRESS_TEST=1"
|
||||
- B2_VARIANT=variant=debug
|
||||
- B2_TESTFLAGS=testing.launcher=valgrind
|
||||
- VALGRIND_OPTS=--error-exitcode=1
|
||||
addons: *clang-6
|
||||
script:
|
||||
- cd $BOOST_ROOT/libs/$SELF
|
||||
- ci/travis/valgrind.sh
|
||||
|
||||
# libstdc++
|
||||
- { os: "linux", dist: "trusty", # xenial has libstdc++ from gcc 5.4.0 with newer ABI
|
||||
env: [ "B2_TOOLSET=gcc-4.8", "B2_CXXSTD=11" ], addons: *gcc-48 }
|
||||
- { os: "linux", dist: "trusty", # xenial has libstdc++ from gcc 5.4.0 with newer ABI
|
||||
env: [ "B2_TOOLSET=gcc-4.9", "B2_CXXSTD=11" ], addons: *gcc-49 }
|
||||
- { os: "linux", env: [ "B2_TOOLSET=gcc-5", "B2_CXXSTD=11,14" ], addons: *gcc-5 }
|
||||
- { os: "linux", env: [ "B2_TOOLSET=gcc-6", "B2_CXXSTD=11,14" ], addons: *gcc-6 }
|
||||
- { os: "linux", env: [ "B2_TOOLSET=gcc-7", "B2_CXXSTD=14,17" ], addons: *gcc-7 }
|
||||
- { os: "linux", env: [ "B2_TOOLSET=gcc-8", "B2_CXXSTD=17" ], addons: *gcc-8 }
|
||||
- { os: "linux", env: [ "B2_TOOLSET=gcc-9", "B2_CXXSTD=17" ], addons: *gcc-9 }
|
||||
- { os: "linux", dist: "trusty", # xenial has libstdc++ from gcc 5.4.0 with newer ABI
|
||||
env: [ "B2_TOOLSET=clang-3.8", "B2_CXXSTD=11" ], addons: *clang-38 }
|
||||
- { os: "linux", env: [ "B2_TOOLSET=clang-4.0", "B2_CXXSTD=11,14" ], addons: *clang-4 }
|
||||
- { os: "linux", env: [ "B2_TOOLSET=clang-5.0", "B2_CXXSTD=11,14" ], addons: *clang-5 }
|
||||
- { os: "linux", env: [ "B2_TOOLSET=clang-6.0", "B2_CXXSTD=14,17" ], addons: *clang-6 }
|
||||
- { os: "linux", env: [ "B2_TOOLSET=clang-7", "B2_CXXSTD=17" ], addons: *clang-7 }
|
||||
- { os: "linux", env: [ "B2_TOOLSET=clang-8", "B2_CXXSTD=17" ], addons: *clang-8 }
|
||||
|
||||
- os: "linux"
|
||||
env: ["B2_TOOLSET=clang-9", "B2_CXXSTD=11,14,17"]
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main'
|
||||
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
|
||||
packages:
|
||||
- clang-9
|
||||
- libc6-dbg
|
||||
- libc++-dev
|
||||
- libstdc++-8-dev
|
||||
|
||||
# libc++
|
||||
- { os: "linux", env: [ "B2_TOOLSET=clang-6.0", "B2_CXXSTD=11,14",
|
||||
"B2_CXXFLAGS=-stdlib=libc++" ], addons: *clang-6 }
|
||||
- { os: "osx" , env: [ "B2_TOOLSET=clang", "B2_CXXSTD=11,17" ] }
|
||||
|
||||
# to enable Intel ICC define INTEL_ICC_SERIAL_NUMBER and the following (under development):
|
||||
# - { os: "linux", env: [ "B2_TOOLSET=intel-linux", "B2_CXXSTD=11,14,17" ], addons: *gcc-7,
|
||||
# script: cd $BOOST_ROOT/libs/$SELF && ci/travis/intelicc.sh }
|
||||
|
||||
# uncomment to enable a big-endian build job, just note that it is 5-10 times slower
|
||||
# than a regular build and travis has a 50 minute time limit per job
|
||||
# - os: linux
|
||||
# env:
|
||||
# - COMMENT=big-endian
|
||||
# - B2_CXXSTD=03
|
||||
# - B2_TOOLSET=gcc
|
||||
# - B2_DEFINES="define=BOOST_NO_STRESS_TEST=1"
|
||||
# - BDDE_OS=red
|
||||
# - BDDE_ARCH=ppc64
|
||||
# script:
|
||||
# - cd $BOOST_ROOT/libs/$SELF
|
||||
# - ci/travis/bdde.sh
|
||||
|
||||
# - os: linux
|
||||
# env:
|
||||
# - COMMENT=cppcheck
|
||||
# script:
|
||||
# - cd $BOOST_ROOT/libs/$SELF
|
||||
# - ci/travis/cppcheck.sh
|
||||
|
||||
#################### Jobs to run on pushes to master, develop ###################
|
||||
|
||||
# Coverity Scan
|
||||
- os: linux
|
||||
if: (env(COVERITY_SCAN_NOTIFICATION_EMAIL) IS present) AND (branch IN (develop, master)) AND (type IN (cron, push))
|
||||
env:
|
||||
- COMMENT="Coverity Scan"
|
||||
- B2_TOOLSET=clang
|
||||
script:
|
||||
- cd $BOOST_ROOT/libs/$SELF
|
||||
- ci/travis/coverity.sh
|
||||
|
||||
# Standalone tests for StaticString
|
||||
- { os: "linux", env: [ "COMMENT=STANDALONE", "B2_TOOLSET=gcc-7", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17" ], addons: *gcc-7 }
|
||||
- { os: "linux", env: [ "COMMENT=STANDALONE", "B2_TOOLSET=gcc-8", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17" ], addons: *gcc-8 }
|
||||
- { os: "linux", env: [ "COMMENT=STANDALONE", "B2_TOOLSET=gcc-9", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17" ], addons: *gcc-9 }
|
||||
- { os: "linux", env: [ "COMMENT=STANDALONE", "B2_TOOLSET=clang-6.0", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17" ], addons: *clang-6 }
|
||||
- { os: "linux", env: [ "COMMENT=STANDALONE", "B2_TOOLSET=clang-7", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17" ], addons: *clang-7 }
|
||||
- { os: "linux", env: [ "COMMENT=STANDALONE", "B2_TOOLSET=clang-8", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17" ], addons: *clang-8 }
|
||||
- os: "linux"
|
||||
env: ["COMMENT=STANDALONE", "B2_TOOLSET=clang-9", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17"]
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main'
|
||||
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
|
||||
packages:
|
||||
- clang-9
|
||||
- libc6-dbg
|
||||
- libc++-dev
|
||||
- libstdc++-8-dev
|
||||
|
||||
- { os: "osx" , env: [ "COMMENT=STANDALONE", "B2_TOOLSET=clang", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17" ] }
|
||||
|
||||
notifications:
|
||||
email:
|
||||
false
|
||||
240
CMakeLists.txt
240
CMakeLists.txt
@@ -1,32 +1,5 @@
|
||||
# Generated by `boostdep --cmake static_string`
|
||||
# Copyright 2020 Peter Dimov
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# https://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
cmake_minimum_required(VERSION 3.5...3.16)
|
||||
|
||||
project(boost_static_string VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
|
||||
|
||||
if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
|
||||
add_library(boost_static_string INTERFACE)
|
||||
add_library(Boost::static_string ALIAS boost_static_string)
|
||||
|
||||
target_include_directories(boost_static_string INTERFACE include)
|
||||
|
||||
target_link_libraries(boost_static_string
|
||||
INTERFACE
|
||||
Boost::assert
|
||||
Boost::container_hash
|
||||
Boost::static_assert
|
||||
Boost::throw_exception
|
||||
Boost::utility
|
||||
)
|
||||
|
||||
else()
|
||||
|
||||
#
|
||||
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
||||
# Copyright (c) 2022 Alan de Freitas (alandefreitas@gmail.com)
|
||||
#
|
||||
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
@@ -34,140 +7,111 @@ else()
|
||||
# Official repository: https://github.com/boostorg/static_string
|
||||
#
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
cmake_minimum_required(VERSION 3.8...3.16)
|
||||
|
||||
function (DoGroupSources curdir rootdir folder)
|
||||
file (GLOB children RELATIVE ${PROJECT_SOURCE_DIR}/${curdir} ${PROJECT_SOURCE_DIR}/${curdir}/*)
|
||||
foreach (child ${children})
|
||||
if (IS_DIRECTORY ${PROJECT_SOURCE_DIR}/${curdir}/${child})
|
||||
DoGroupSources (${curdir}/${child} ${rootdir} ${folder})
|
||||
elseif (${child} STREQUAL "CMakeLists.txt")
|
||||
source_group("" FILES ${PROJECT_SOURCE_DIR}/${curdir}/${child})
|
||||
else()
|
||||
string (REGEX REPLACE ^${rootdir} ${folder} groupname ${curdir})
|
||||
string (REPLACE "/" "\\" groupname ${groupname})
|
||||
source_group (${groupname} FILES ${PROJECT_SOURCE_DIR}/${curdir}/${child})
|
||||
endif()
|
||||
endforeach()
|
||||
endfunction()
|
||||
project(boost_static_string VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
|
||||
|
||||
function (GroupSources curdir folder)
|
||||
DoGroupSources (${curdir} ${curdir} ${folder})
|
||||
endfunction()
|
||||
set(BOOST_STATIC_STRING_IS_ROOT OFF)
|
||||
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
set(BOOST_STATIC_STRING_IS_ROOT ON)
|
||||
endif ()
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#
|
||||
# StaticString
|
||||
#
|
||||
#-------------------------------------------------------------------------------
|
||||
if (BOOST_STATIC_STRING_IS_ROOT)
|
||||
include(CTest)
|
||||
endif ()
|
||||
|
||||
set_property (GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
# Options
|
||||
if (NOT BOOST_SUPERPROJECT_VERSION)
|
||||
option(BOOST_STATIC_STRING_INSTALL "Install boost::static_string files" ${BOOST_STATIC_STRING_IS_ROOT})
|
||||
option(BOOST_STATIC_STRING_BUILD_TESTS "Build boost::static_string tests" OFF)
|
||||
else ()
|
||||
set(BOOST_STATIC_STRING_BUILD_TESTS ${BUILD_TESTING})
|
||||
endif ()
|
||||
|
||||
if (MSVC)
|
||||
set (CMAKE_VERBOSE_MAKEFILE FALSE)
|
||||
# Find boost
|
||||
if (BOOST_SUPERPROJECT_VERSION)
|
||||
set(BOOST_STATIC_STRING_FIND_PACKAGE_BOOST OFF)
|
||||
elseif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.txt" AND
|
||||
EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../Jamroot" AND
|
||||
EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../boost-build.jam" AND
|
||||
EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../bootstrap.sh" AND
|
||||
EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../libs")
|
||||
set(BOOST_STATIC_STRING_FIND_PACKAGE_BOOST OFF)
|
||||
else ()
|
||||
set(BOOST_STATIC_STRING_FIND_PACKAGE_BOOST ON)
|
||||
endif ()
|
||||
|
||||
add_definitions (
|
||||
-D_WIN32_WINNT=0x0601
|
||||
)
|
||||
if (BOOST_STATIC_STRING_FIND_PACKAGE_BOOST)
|
||||
find_package(Boost 1.78.0 REQUIRED COMPONENTS container)
|
||||
elseif (BOOST_STATIC_STRING_IS_ROOT)
|
||||
set(BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES core)
|
||||
set(BOOST_INCLUDE_LIBRARIES static_string assert container_hash throw_exception utility ${BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES})
|
||||
set(BOOST_EXCLUDE_LIBRARIES static_string)
|
||||
set(CMAKE_FOLDER Dependencies)
|
||||
add_subdirectory(../.. Dependencies/boost EXCLUDE_FROM_ALL)
|
||||
unset(CMAKE_FOLDER)
|
||||
endif ()
|
||||
|
||||
add_compile_options(
|
||||
/permissive- # strict C++
|
||||
/W4 # enable all warnings
|
||||
/MP # Multi-processor compilation
|
||||
# Sources
|
||||
include(GNUInstallDirs)
|
||||
file(GLOB_RECURSE BOOST_STATIC_STRING_HEADERS CONFIGURE_DEPENDS
|
||||
include/boost/*.hpp
|
||||
include/boost/*.ipp
|
||||
include/boost/*.natvis
|
||||
)
|
||||
|
||||
set (Boost_USE_STATIC_LIBS ON)
|
||||
set (Boost_USE_STATIC_RUNTIME ON)
|
||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/include/boost PREFIX "" FILES ${BOOST_STATIC_STRING_HEADERS})
|
||||
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/src PREFIX "" FILES ${BOOST_STATIC_STRING_SOURCES})
|
||||
|
||||
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
|
||||
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Ob2 /Oi /Ot /GL /MT")
|
||||
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Oi /Ot /MT")
|
||||
# Target
|
||||
add_library(boost_static_string INTERFACE)
|
||||
add_library(Boost::static_string ALIAS boost_static_string)
|
||||
|
||||
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
|
||||
set (CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG")
|
||||
target_compile_features(boost_static_string INTERFACE cxx_constexpr)
|
||||
if (BOOST_SUPERPROJECT_VERSION)
|
||||
target_include_directories(boost_static_string INTERFACE "${PROJECT_SOURCE_DIR}/include")
|
||||
else ()
|
||||
target_include_directories(boost_static_string
|
||||
INTERFACE
|
||||
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
|
||||
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
|
||||
)
|
||||
endif ()
|
||||
|
||||
# for RelWithDebInfo builds, disable incremental linking
|
||||
# since CMake sets it ON by default for that build type and it
|
||||
# causes warnings
|
||||
#
|
||||
string (REPLACE "/INCREMENTAL" "/INCREMENTAL:NO" replacement_flags
|
||||
${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO})
|
||||
set (CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO ${replacement_flags})
|
||||
if (BOOST_STATIC_STRING_FIND_PACKAGE_BOOST)
|
||||
target_link_libraries(boost_static_string
|
||||
INTERFACE
|
||||
Boost::headers
|
||||
)
|
||||
else ()
|
||||
target_link_libraries(boost_static_string
|
||||
INTERFACE
|
||||
Boost::assert
|
||||
Boost::container_hash
|
||||
Boost::core
|
||||
Boost::throw_exception
|
||||
Boost::utility
|
||||
)
|
||||
endif ()
|
||||
|
||||
else()
|
||||
set (THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package (Threads)
|
||||
if (BOOST_STATIC_STRING_INSTALL AND NOT BOOST_SUPERPROJECT_VERSION)
|
||||
install(TARGETS boost_static_string
|
||||
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
)
|
||||
|
||||
set( CMAKE_CXX_FLAGS
|
||||
"${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -Wpedantic -Wno-unused-parameter")
|
||||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/boost
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
FILES_MATCHING
|
||||
PATTERN "*.hpp"
|
||||
PATTERN "*.ipp"
|
||||
)
|
||||
endif ()
|
||||
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wrange-loop-analysis")
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
# Must come before Boost includes, otherwise the
|
||||
# IDE sees the wrong file due to boost/ symlinks.
|
||||
include_directories (include)
|
||||
if (BUILD_TESTING OR BOOST_STATIC_STRING_BUILD_TESTS)
|
||||
add_subdirectory(test)
|
||||
endif ()
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#
|
||||
# Boost
|
||||
#
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
get_filename_component (BOOST_ROOT ../../ ABSOLUTE)
|
||||
|
||||
# VFALCO I want static but "b2 stage" builds a minimal set which excludes static
|
||||
add_definitions (-DBOOST_ALL_STATIC_LINK=1)
|
||||
|
||||
include_directories (${BOOST_ROOT})
|
||||
|
||||
link_directories(${BOOST_ROOT}/stage/lib)
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
if ("${VARIANT}" STREQUAL "coverage")
|
||||
if (MSVC)
|
||||
else()
|
||||
set (CMAKE_BUILD_TYPE DEBUG)
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.2 --coverage")
|
||||
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
|
||||
endif()
|
||||
|
||||
elseif ("${VARIANT}" STREQUAL "ubasan")
|
||||
if (MSVC)
|
||||
else()
|
||||
set (CMAKE_BUILD_TYPE RELWITHDEBINFO)
|
||||
set (CMAKE_CXX_FLAGS
|
||||
"${CMAKE_CXX_FLAGS} -msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=address,undefined -fsanitize-blacklist=${PROJECT_SOURCE_DIR}/tools/blacklist.supp")
|
||||
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=address,undefined -fno-sanitize-recover=address,undefined")
|
||||
endif()
|
||||
|
||||
elseif ("${VARIANT}" STREQUAL "debug")
|
||||
set (CMAKE_BUILD_TYPE DEBUG)
|
||||
|
||||
elseif ("${VARIANT}" STREQUAL "release")
|
||||
set (CMAKE_BUILD_TYPE RELEASE)
|
||||
|
||||
endif()
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
#GroupSources (test "/")
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#
|
||||
# Tests and examples
|
||||
#
|
||||
|
||||
#include_directories (.)
|
||||
|
||||
file (GLOB_RECURSE PROJECT_FILES
|
||||
${PROJECT_SOURCE_DIR}/include/boost/static_string/*.hpp
|
||||
${PROJECT_SOURCE_DIR}/include/boost/static_string/*.ipp
|
||||
)
|
||||
|
||||
add_subdirectory (test)
|
||||
|
||||
endif()
|
||||
|
||||
10
Jamfile
10
Jamfile
@@ -1,10 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2019 Vinnie Falco (vinnie dot falco at gmail dot com)
|
||||
#
|
||||
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
#
|
||||
# Official repository: https://github.com/boostorg/static_string
|
||||
#
|
||||
|
||||
build-project test ;
|
||||
@@ -1,9 +1,9 @@
|
||||
# Boost.StaticString
|
||||
|
||||
Branch | Travis | Appveyor | Azure Pipelines | codecov.io | Docs | Matrix |
|
||||
Branch | GHA CI | Appveyor | Azure Pipelines | codecov.io | Docs | Matrix |
|
||||
:-------------: | ------ | -------- | --------------- | ---------- | ---- | ------ |
|
||||
[`master`](https://github.com/boostorg/static_string/tree/master) | [](https://travis-ci.org/boostorg/static_string) | [](https://ci.appveyor.com/project/sdkrystian/static-string/branch/master) | [](https://krystiands.visualstudio.com/static_string/_build/latest?definitionId=3&branchName=master) | [](https://codecov.io/gh/boostorg/static_string/branch/master) | [](http://www.boost.org/doc/libs/release/libs/static_string) | [](http://www.boost.org/development/tests/master/developer/static_string.html)
|
||||
[`develop`](https://github.com/boostorg/static_string/tree/develop) | [](https://travis-ci.org/boostorg/static_string) | [](https://ci.appveyor.com/project/sdkrystian/static-string/branch/develop) | [](https://krystiands.visualstudio.com/static_string/_build/latest?definitionId=3&branchName=develop) | [](https://codecov.io/gh/boostorg/static_string/branch/develop) | [](http://www.boost.org/doc/libs/develop/libs/static_string) | [](http://www.boost.org/development/tests/develop/developer/static_string.html)
|
||||
[`master`](https://github.com/boostorg/static_string/tree/master) | [](https://github.com/boostorg/static_string/actions?query=branch:master) | [](https://ci.appveyor.com/project/sdkrystian/static-string/branch/master) | [](https://krystiands.visualstudio.com/static_string/_build/latest?definitionId=3&branchName=master) | [](https://codecov.io/gh/boostorg/static_string/branch/master) | [](http://www.boost.org/doc/libs/release/libs/static_string) | [](https://regression.boost.org/master/developer/static_string.html)
|
||||
[`develop`](https://github.com/boostorg/static_string/tree/develop) | [](https://github.com/boostorg/static_string/actions?query=branch:develop) | [](https://ci.appveyor.com/project/sdkrystian/static-string/branch/develop) | [](https://krystiands.visualstudio.com/static_string/_build/latest?definitionId=3&branchName=develop) | [](https://codecov.io/gh/boostorg/static_string/branch/develop) | [](http://www.boost.org/doc/libs/develop/libs/static_string) | [](https://regression.boost.org/develop/developer/static_string.html)
|
||||
|
||||
## Introduction
|
||||
|
||||
|
||||
27
build.jam
Normal file
27
build.jam
Normal file
@@ -0,0 +1,27 @@
|
||||
# Copyright René Ferdinand Rivera Morell 2023-2024
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
require-b2 5.2 ;
|
||||
|
||||
constant boost_dependencies :
|
||||
/boost/assert//boost_assert
|
||||
/boost/config//boost_config
|
||||
/boost/container_hash//boost_container_hash
|
||||
/boost/core//boost_core
|
||||
/boost/throw_exception//boost_throw_exception
|
||||
/boost/utility//boost_utility ;
|
||||
|
||||
project /boost/static_string
|
||||
;
|
||||
|
||||
explicit
|
||||
[ alias boost_static_string : : :
|
||||
: <include>include <library>$(boost_dependencies) ]
|
||||
[ alias all : boost_static_string test ]
|
||||
;
|
||||
|
||||
call-if : boost-library static_string
|
||||
;
|
||||
|
||||
274
doc/Jamfile
274
doc/Jamfile
@@ -1,6 +1,7 @@
|
||||
#
|
||||
# Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
||||
# Copyright (c) 2020 Krystian Stasiowski (sdkrystian at gmail dot com)
|
||||
# Copyright (c) 2022 Alan de Freitas (alandefreitas@gmail.com)
|
||||
#
|
||||
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
@@ -8,245 +9,50 @@
|
||||
|
||||
project static_string/doc ;
|
||||
|
||||
import os ;
|
||||
import-search /boost/docca ;
|
||||
|
||||
import docca ;
|
||||
import path ;
|
||||
import boostbook ;
|
||||
import quickbook ;
|
||||
import xsltproc ;
|
||||
import doxygen ;
|
||||
import modules ;
|
||||
import saxonhe ;
|
||||
import common ;
|
||||
import os ;
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#
|
||||
# Build the list of header files that Doxygen will scan. We need
|
||||
# this list to inform the build system of the dependencies so the
|
||||
# docs can be rebuild if any of the header files change.
|
||||
#
|
||||
local include-prefix = [ path.root $(__file__:D) [ path.pwd ] ] ;
|
||||
include-prefix = [ path.native $(include-prefix:D)/include ] ;
|
||||
|
||||
local sources = [ path.glob-tree ../include/boost/static_string : *.hpp *.ipp : detail impl ] ;
|
||||
|
||||
# Get the configured paths to doxygen and xsltproc
|
||||
|
||||
.doxygen = [ doxygen.name ] ;
|
||||
.doxygen ?= doxygen ;
|
||||
|
||||
#ECHO Using doxygen from "$(.doxygen)" ;
|
||||
|
||||
.xsltproc = [ xsltproc.name ] ;
|
||||
.xsltproc ?= xsltproc ;
|
||||
|
||||
#ECHO Using xsltproc from "$(.xsltproc)" ;
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#
|
||||
# Invoke Doxygen to process the header files and produce the XML
|
||||
# containing the description of the C++ declarations and extracted
|
||||
# Javadoc comments.
|
||||
#
|
||||
make index.xml
|
||||
docca.pyreference reference.qbk
|
||||
:
|
||||
./source.dox
|
||||
[ glob-tree-ex ../include/boost/static_string : *.hpp *.ipp : detail impl ]
|
||||
externals.hpp
|
||||
:
|
||||
@make_doxygen_xml
|
||||
:
|
||||
<dependency>$(sources)
|
||||
<doxygen:param>ALIASES="esafe=\"@par Exception Safety\""
|
||||
<doxygen:param>DISTRIBUTE_GROUP_DOC=YES
|
||||
<doxygen:param>MACRO_EXPANSION=YES
|
||||
<doxygen:param>EXPAND_ONLY_PREDEF=YES
|
||||
<doxygen:param>PREDEFINED="\\
|
||||
BOOST_STATIC_STRING_DOCS \\
|
||||
\"BOOST_STATIC_STRING_CPP11_CONSTEXPR=constexpr\" \\
|
||||
\"BOOST_STATIC_STRING_CPP14_CONSTEXPR=constexpr\" \\
|
||||
\"BOOST_STATIC_STRING_CPP17_CONSTEXPR=constexpr\" \\
|
||||
\"BOOST_STATIC_STRING_CPP20_CONSTEXPR=constexpr\""
|
||||
<doxygen:param>ABBREVIATE_BRIEF=
|
||||
<doxygen:param>INLINE_INHERITED_MEMB=YES
|
||||
<doxygen:param>JAVADOC_AUTOBRIEF=YES
|
||||
<doxygen:param>AUTOLINK_SUPPORT=NO
|
||||
<doxygen:param>EXTRACT_ALL=YES
|
||||
<doxygen:param>EXTRACT_PRIVATE=YES
|
||||
<doxygen:param>EXTRACT_LOCAL_CLASSES=NO
|
||||
<doxygen:param>INLINE_INFO=NO
|
||||
<doxygen:param>SORT_MEMBER_DOCS=NO
|
||||
<doxygen:param>SORT_MEMBERS_CTORS_1ST=YES
|
||||
<doxygen:param>STRIP_FROM_PATH=$(include-prefix)
|
||||
|
||||
# <doxygen:param>ALLOW_UNICODE_NAMES=NO
|
||||
# <doxygen:param>GROUP_NESTED_COMPOUNDS=NO
|
||||
# <doxygen:param>HIDE_COMPOUND_REFERENCE=NO
|
||||
# <doxygen:param>WARN_AS_ERROR=NO
|
||||
|
||||
<docca:config>config.json
|
||||
;
|
||||
|
||||
rule make_doxygen_xml ( targets * : sources * : properties * )
|
||||
{
|
||||
LIB_DIR on $(targets) =
|
||||
[ path.native [ path.parent [ path.root
|
||||
[ on $(sources[1]) return $(SEARCH) ] [ path.pwd ] ] ] ] ;
|
||||
}
|
||||
|
||||
if [ os.name ] = NT
|
||||
{
|
||||
actions make_doxygen_xml
|
||||
{
|
||||
SET LIB_DIR=$(LIB_DIR)
|
||||
SET XML_OUTPUT=$(1:D)
|
||||
"$(.doxygen)" $(2)
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
actions make_doxygen_xml
|
||||
{
|
||||
export LIB_DIR=$(LIB_DIR)
|
||||
export XML_OUTPUT=$(1:D)
|
||||
"$(.doxygen)" $(2)
|
||||
}
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#
|
||||
# Copy all the XSLT modules to the target directory.
|
||||
#
|
||||
# FIXME: Change this so we can just specify a directory,
|
||||
# rather than every file individually.
|
||||
#
|
||||
# Also, somehow force dependencies in a general way
|
||||
# such that the XSLT has to be executed again
|
||||
# if any of the modules change. For example,
|
||||
# if base-extract-xml-pages.xml changes, then
|
||||
# an invocation of extract-xml-pages.xsl (which
|
||||
# imports the former) must be run again.
|
||||
#
|
||||
path-constant docca : ../../../tools/docca ;
|
||||
make extract-xml-pages.xsl : $(docca)/include/docca/extract-xml-pages.xsl : @copy_script ;
|
||||
make base-extract-xml-pages.xsl : $(docca)/include/docca/base-extract-xml-pages.xsl : @copy_script ;
|
||||
make common.xsl : $(docca)/include/docca/common.xsl : @copy_script ;
|
||||
make stage1.xsl : $(docca)/include/docca/stage1.xsl : @copy_script ;
|
||||
make base-stage1.xsl : $(docca)/include/docca/base-stage1.xsl : @copy_script ;
|
||||
make stage2.xsl : $(docca)/include/docca/stage2.xsl : @copy_script ;
|
||||
make base-stage2.xsl : $(docca)/include/docca/base-stage2.xsl : @copy_script ;
|
||||
make assemble-quickbook.xsl : $(docca)/include/docca/assemble-quickbook.xsl : @copy_script ;
|
||||
make emphasized-types.xsl : $(docca)/include/docca/emphasized-types.xsl : @copy_script ;
|
||||
make base-config.xsl : $(docca)/include/docca/base-config.xsl : @copy_script ;
|
||||
|
||||
# Copy the project-specific config XSLT
|
||||
make custom-overrides.xsl : xsl/custom-overrides.xsl : @copy_script ;
|
||||
|
||||
# Make a copy of the given file.
|
||||
#
|
||||
actions copy_script
|
||||
{
|
||||
cp $(2[1]) $(1)
|
||||
}
|
||||
|
||||
|
||||
# This is to initially create the directory as a side effect; I'm sure there's a better way...
|
||||
make xml-pages/directory/placeholder : index.xml : @null_action ;
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#
|
||||
# Run index.xml through the first transformation stage
|
||||
# (assembling and splitting the XML into page-specific files).
|
||||
#
|
||||
make xml-pages.xml
|
||||
:
|
||||
index.xml
|
||||
extract-xml-pages.xsl
|
||||
|
||||
# Make bjam aware of additional dependencies
|
||||
base-extract-xml-pages.xsl
|
||||
base-config.xsl
|
||||
custom-overrides.xsl
|
||||
common.xsl
|
||||
:
|
||||
saxonhe.saxonhe
|
||||
;
|
||||
|
||||
# This is just to make the directory eligible as a source
|
||||
make xml-pages : index.xml : @null_action ;
|
||||
|
||||
# Not ready for prime time until I figure out how to get the xslt-visualizer code in place
|
||||
#make stage1/code-trace-enabled/stage1.xsl
|
||||
# :
|
||||
# stage1.xsl
|
||||
# xslt-visualizer/xsl/trace-enable.xsl
|
||||
# :
|
||||
# saxonhe.saxonhe
|
||||
# ;
|
||||
|
||||
# This is to initially create the directory as a side effect; I'm sure there's a better way...
|
||||
make stage1/results/directory/placeholder : xml-pages.xml : @null_action ;
|
||||
make stage2/results/directory/placeholder : xml-pages.xml : @null_action ;
|
||||
|
||||
# TODO: figure out why this (and the following stage) get built every time
|
||||
make stage1/results
|
||||
:
|
||||
xml-pages
|
||||
stage1.xsl
|
||||
|
||||
# additional dependencies
|
||||
xml-pages.xml
|
||||
base-stage1.xsl
|
||||
base-config.xsl
|
||||
custom-overrides.xsl
|
||||
common.xsl
|
||||
:
|
||||
saxonhe.saxonhe_dir
|
||||
;
|
||||
|
||||
make stage2/results
|
||||
:
|
||||
stage1/results
|
||||
stage2.xsl
|
||||
|
||||
# additional dependencies
|
||||
emphasized-types.xsl
|
||||
base-stage2.xsl
|
||||
base-config.xsl
|
||||
custom-overrides.xsl
|
||||
common.xsl
|
||||
:
|
||||
saxonhe.saxonhe_dir
|
||||
;
|
||||
|
||||
make reference.qbk
|
||||
:
|
||||
xml-pages.xml
|
||||
assemble-quickbook.xsl
|
||||
|
||||
# TODO: make this input to the XSLT somehow
|
||||
# rather than relying on it being hard-coded
|
||||
# in the XSLT (which it is!)
|
||||
stage2/results
|
||||
:
|
||||
saxonhe.saxonhe
|
||||
;
|
||||
|
||||
actions make_dir
|
||||
{
|
||||
mkdir $(1)
|
||||
}
|
||||
|
||||
make combine.xslt : index.xml : @null_action ;
|
||||
|
||||
actions touch_file
|
||||
{
|
||||
touch $(1) ;
|
||||
}
|
||||
|
||||
actions null_action
|
||||
{
|
||||
touch -c $(1) ;
|
||||
}
|
||||
|
||||
make reference.xml
|
||||
:
|
||||
combine.xslt
|
||||
index.xml
|
||||
:
|
||||
@call-xsltproc
|
||||
;
|
||||
|
||||
actions call-xsltproc
|
||||
{
|
||||
"$(.xsltproc)" $(2) > $(1)
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#
|
||||
# Produce the reference.qbk file by running
|
||||
# the reference xml through the transform.
|
||||
#
|
||||
#make reference.qbk
|
||||
# :
|
||||
# reference.xml
|
||||
# transform.xsl
|
||||
# :
|
||||
# saxonhe.saxonhe
|
||||
# ;
|
||||
|
||||
# We have to make a copy of reference.qbk and put it
|
||||
# in a place where the static .qbk files can find it
|
||||
#
|
||||
install qbk : reference.qbk ;
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#
|
||||
# Produce the Boost.Book XML from the QuickBook
|
||||
@@ -265,7 +71,7 @@ xml static_string_doc
|
||||
qbk/main.qbk
|
||||
:
|
||||
<dependency>images
|
||||
<dependency>qbk
|
||||
<dependency>reference.qbk
|
||||
;
|
||||
|
||||
explicit static_string_doc ;
|
||||
@@ -284,7 +90,7 @@ boostbook static_string
|
||||
<xsl:param>chapter.autolabel=0
|
||||
<xsl:param>chunk.section.depth=8 # Depth to which sections should be chunked
|
||||
<xsl:param>chunk.first.sections=1 # Chunk the first top-level section?
|
||||
<xsl:param>generate.toc=""
|
||||
<xsl:param>generate.toc="chapter toc,title section nop reference nop"
|
||||
<include>../../../tools/boostbook/dtd
|
||||
:
|
||||
<dependency>images
|
||||
|
||||
12
doc/config.json
Normal file
12
doc/config.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"include_private": false,
|
||||
"legacy_behavior": false,
|
||||
"external_marker": "!EXTERNAL!",
|
||||
"link_prefix": "static_string.ref.",
|
||||
"default_namespace": "boost::static_strings",
|
||||
"allowed_prefixes": ["boost::static_strings::", "std::"],
|
||||
"convenience_header": "boost/static_string.hpp",
|
||||
"replace_strings": {
|
||||
"__see_below__": "``['see-below]``"
|
||||
}
|
||||
}
|
||||
64
doc/externals.hpp
Normal file
64
doc/externals.hpp
Normal file
@@ -0,0 +1,64 @@
|
||||
#pragma once
|
||||
|
||||
namespace boost {
|
||||
|
||||
/// !EXTERNAL!
|
||||
///
|
||||
/// @see https://www.boost.org/doc/libs/release/libs/utility/doc/html/utility/utilities/string_view.html
|
||||
template <class T, class Traits>
|
||||
struct basic_string_view {};
|
||||
|
||||
} // namespace boost
|
||||
|
||||
namespace std {
|
||||
|
||||
/// !EXTERNAL!
|
||||
///
|
||||
/// @see https://en.cppreference.com/w/cpp/iterator/reverse_iterator
|
||||
template <class T>
|
||||
struct reverse_iterator {};
|
||||
|
||||
/// !EXTERNAL!
|
||||
///
|
||||
/// @see https://en.cppreference.com/w/cpp/types/size_t
|
||||
struct size_t {};
|
||||
|
||||
/// !EXTERNAL!
|
||||
///
|
||||
/// @see https://en.cppreference.com/w/cpp/types/integer
|
||||
struct uint64_t {};
|
||||
|
||||
/// !EXTERNAL!
|
||||
///
|
||||
/// @see https://en.cppreference.com/w/cpp/types/integer
|
||||
struct int64_t {};
|
||||
|
||||
/// !EXTERNAL!
|
||||
///
|
||||
/// @see https://en.cppreference.com/w/cpp/types/nullptr_t
|
||||
struct nullptr_t {};
|
||||
|
||||
/// !EXTERNAL!
|
||||
///
|
||||
/// @see https://en.cppreference.com/w/cpp/types/ptrdiff_t
|
||||
struct ptrdiff_t {};
|
||||
|
||||
/// !EXTERNAL!
|
||||
///
|
||||
/// @see https://en.cppreference.com/w/cpp/utility/initializer_list
|
||||
template <class T>
|
||||
struct initializer_list {};
|
||||
|
||||
/// !EXTERNAL!
|
||||
///
|
||||
/// @see https://en.cppreference.com/w/cpp/io/basic_ostream
|
||||
template <class T, class Traits>
|
||||
struct basic_ostream {};
|
||||
|
||||
/// !EXTERNAL!
|
||||
///
|
||||
/// @see https://en.cppreference.com/w/cpp/types/numeric_limits
|
||||
template <class T>
|
||||
struct numeric_limits {};
|
||||
|
||||
} // namespace std
|
||||
252
doc/source.dox
252
doc/source.dox
@@ -1,252 +0,0 @@
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to the input files
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
INPUT = \
|
||||
$(LIB_DIR)/include/boost/static_string
|
||||
|
||||
ALIASES += esafe="@par Exception Safety"
|
||||
|
||||
INPUT_ENCODING = UTF-8
|
||||
FILE_PATTERNS =
|
||||
RECURSIVE = NO
|
||||
EXCLUDE =
|
||||
EXCLUDE_SYMLINKS = NO
|
||||
EXCLUDE_PATTERNS =
|
||||
EXCLUDE_SYMBOLS =
|
||||
EXAMPLE_PATH =
|
||||
EXAMPLE_PATTERNS =
|
||||
EXAMPLE_RECURSIVE = NO
|
||||
IMAGE_PATH =
|
||||
INPUT_FILTER =
|
||||
FILTER_PATTERNS =
|
||||
FILTER_SOURCE_FILES = NO
|
||||
FILTER_SOURCE_PATTERNS =
|
||||
USE_MDFILE_AS_MAINPAGE =
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to the preprocessor
|
||||
#---------------------------------------------------------------------------
|
||||
ENABLE_PREPROCESSING = YES
|
||||
MACRO_EXPANSION = YES
|
||||
EXPAND_ONLY_PREDEF = YES
|
||||
SEARCH_INCLUDES = YES
|
||||
INCLUDE_PATH = ../
|
||||
INCLUDE_FILE_PATTERNS =
|
||||
|
||||
PREDEFINED = \
|
||||
BOOST_STATIC_STRING_DOCS \
|
||||
"BOOST_STATIC_STRING_CPP11_CONSTEXPR=constexpr" \
|
||||
"BOOST_STATIC_STRING_CPP14_CONSTEXPR=constexpr" \
|
||||
"BOOST_STATIC_STRING_CPP17_CONSTEXPR=constexpr" \
|
||||
"BOOST_STATIC_STRING_CPP20_CONSTEXPR=constexpr"
|
||||
|
||||
EXPAND_AS_DEFINED =
|
||||
SKIP_FUNCTION_MACROS = YES
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Project related configuration options
|
||||
#---------------------------------------------------------------------------
|
||||
DOXYFILE_ENCODING = UTF-8
|
||||
PROJECT_NAME = "StaticString"
|
||||
PROJECT_NUMBER =
|
||||
PROJECT_BRIEF = String Library
|
||||
PROJECT_LOGO =
|
||||
OUTPUT_DIRECTORY =
|
||||
CREATE_SUBDIRS = NO
|
||||
#####ALLOW_UNICODE_NAMES = NO
|
||||
OUTPUT_LANGUAGE = English
|
||||
BRIEF_MEMBER_DESC = YES
|
||||
REPEAT_BRIEF = YES
|
||||
ABBREVIATE_BRIEF =
|
||||
ALWAYS_DETAILED_SEC = NO
|
||||
INLINE_INHERITED_MEMB = YES
|
||||
FULL_PATH_NAMES = YES
|
||||
#STRIP_FROM_PATH = $(LIB_DIR)/include # Requires doxygen 1.8.7+
|
||||
STRIP_FROM_INC_PATH =
|
||||
SHORT_NAMES = NO
|
||||
JAVADOC_AUTOBRIEF = YES
|
||||
QT_AUTOBRIEF = NO
|
||||
MULTILINE_CPP_IS_BRIEF = NO
|
||||
INHERIT_DOCS = YES
|
||||
SEPARATE_MEMBER_PAGES = NO
|
||||
TAB_SIZE = 4
|
||||
TCL_SUBST =
|
||||
OPTIMIZE_OUTPUT_FOR_C = NO
|
||||
OPTIMIZE_OUTPUT_JAVA = NO
|
||||
OPTIMIZE_FOR_FORTRAN = NO
|
||||
OPTIMIZE_OUTPUT_VHDL = NO
|
||||
EXTENSION_MAPPING =
|
||||
MARKDOWN_SUPPORT = YES
|
||||
AUTOLINK_SUPPORT = YES
|
||||
BUILTIN_STL_SUPPORT = NO
|
||||
CPP_CLI_SUPPORT = NO
|
||||
SIP_SUPPORT = NO
|
||||
IDL_PROPERTY_SUPPORT = YES
|
||||
DISTRIBUTE_GROUP_DOC = YES
|
||||
#####GROUP_NESTED_COMPOUNDS = NO
|
||||
SUBGROUPING = YES
|
||||
INLINE_GROUPED_CLASSES = NO
|
||||
INLINE_SIMPLE_STRUCTS = NO
|
||||
TYPEDEF_HIDES_STRUCT = NO
|
||||
LOOKUP_CACHE_SIZE = 0
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Build related configuration options
|
||||
#---------------------------------------------------------------------------
|
||||
EXTRACT_ALL = YES
|
||||
EXTRACT_PRIVATE = YES
|
||||
EXTRACT_PACKAGE = NO
|
||||
EXTRACT_STATIC = NO
|
||||
EXTRACT_LOCAL_CLASSES = NO
|
||||
EXTRACT_LOCAL_METHODS = NO
|
||||
EXTRACT_ANON_NSPACES = NO
|
||||
HIDE_UNDOC_MEMBERS = NO
|
||||
HIDE_UNDOC_CLASSES = NO
|
||||
HIDE_FRIEND_COMPOUNDS = NO
|
||||
HIDE_IN_BODY_DOCS = NO
|
||||
INTERNAL_DOCS = NO
|
||||
CASE_SENSE_NAMES = YES
|
||||
HIDE_SCOPE_NAMES = NO
|
||||
#####HIDE_COMPOUND_REFERENCE= NO
|
||||
SHOW_INCLUDE_FILES = NO
|
||||
SHOW_GROUPED_MEMB_INC = NO
|
||||
FORCE_LOCAL_INCLUDES = NO
|
||||
INLINE_INFO = NO
|
||||
SORT_MEMBER_DOCS = NO
|
||||
SORT_BRIEF_DOCS = NO
|
||||
SORT_MEMBERS_CTORS_1ST = YES
|
||||
SORT_GROUP_NAMES = NO
|
||||
SORT_BY_SCOPE_NAME = NO
|
||||
STRICT_PROTO_MATCHING = NO
|
||||
GENERATE_TODOLIST = NO
|
||||
GENERATE_TESTLIST = NO
|
||||
GENERATE_BUGLIST = NO
|
||||
GENERATE_DEPRECATEDLIST= NO
|
||||
ENABLED_SECTIONS =
|
||||
MAX_INITIALIZER_LINES = 30
|
||||
SHOW_USED_FILES = NO
|
||||
SHOW_FILES = NO
|
||||
SHOW_NAMESPACES = NO
|
||||
FILE_VERSION_FILTER =
|
||||
LAYOUT_FILE =
|
||||
CITE_BIB_FILES =
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to warning and progress messages
|
||||
#---------------------------------------------------------------------------
|
||||
QUIET = NO
|
||||
WARNINGS = YES
|
||||
WARN_IF_UNDOCUMENTED = YES
|
||||
WARN_IF_DOC_ERROR = YES
|
||||
WARN_NO_PARAMDOC = NO
|
||||
#####WARN_AS_ERROR = NO
|
||||
WARN_FORMAT = "$file:$line: $text"
|
||||
WARN_LOGFILE =
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to source browsing
|
||||
#---------------------------------------------------------------------------
|
||||
SOURCE_BROWSER = NO
|
||||
INLINE_SOURCES = NO
|
||||
STRIP_CODE_COMMENTS = YES
|
||||
REFERENCED_BY_RELATION = NO
|
||||
REFERENCES_RELATION = NO
|
||||
REFERENCES_LINK_SOURCE = YES
|
||||
SOURCE_TOOLTIPS = YES
|
||||
USE_HTAGS = NO
|
||||
VERBATIM_HEADERS = YES
|
||||
CLANG_ASSISTED_PARSING = NO
|
||||
CLANG_OPTIONS =
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to the alphabetical class index
|
||||
#---------------------------------------------------------------------------
|
||||
ALPHABETICAL_INDEX = YES
|
||||
COLS_IN_ALPHA_INDEX = 5
|
||||
IGNORE_PREFIX =
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to the HTML output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_HTML = NO
|
||||
HTML_OUTPUT = dhtm
|
||||
HTML_FILE_EXTENSION = .html
|
||||
HTML_HEADER =
|
||||
HTML_FOOTER =
|
||||
HTML_STYLESHEET =
|
||||
HTML_EXTRA_STYLESHEET =
|
||||
HTML_EXTRA_FILES =
|
||||
HTML_COLORSTYLE_HUE = 220
|
||||
HTML_COLORSTYLE_SAT = 100
|
||||
HTML_COLORSTYLE_GAMMA = 80
|
||||
HTML_TIMESTAMP = NO
|
||||
HTML_DYNAMIC_SECTIONS = NO
|
||||
HTML_INDEX_NUM_ENTRIES = 100
|
||||
GENERATE_DOCSET = NO
|
||||
DOCSET_FEEDNAME = "Doxygen generated docs"
|
||||
DOCSET_BUNDLE_ID = org.doxygen.Project
|
||||
DOCSET_PUBLISHER_ID = org.doxygen.Publisher
|
||||
DOCSET_PUBLISHER_NAME = Publisher
|
||||
GENERATE_HTMLHELP = NO
|
||||
CHM_FILE =
|
||||
HHC_LOCATION =
|
||||
GENERATE_CHI = NO
|
||||
CHM_INDEX_ENCODING =
|
||||
BINARY_TOC = NO
|
||||
TOC_EXPAND = NO
|
||||
GENERATE_QHP = NO
|
||||
QCH_FILE =
|
||||
QHP_NAMESPACE = org.doxygen.Project
|
||||
QHP_VIRTUAL_FOLDER = doc
|
||||
QHP_CUST_FILTER_NAME =
|
||||
QHP_CUST_FILTER_ATTRS =
|
||||
QHP_SECT_FILTER_ATTRS =
|
||||
QHG_LOCATION =
|
||||
GENERATE_ECLIPSEHELP = NO
|
||||
ECLIPSE_DOC_ID = org.doxygen.Project
|
||||
DISABLE_INDEX = NO
|
||||
GENERATE_TREEVIEW = NO
|
||||
ENUM_VALUES_PER_LINE = 4
|
||||
TREEVIEW_WIDTH = 250
|
||||
EXT_LINKS_IN_WINDOW = NO
|
||||
FORMULA_FONTSIZE = 10
|
||||
FORMULA_TRANSPARENT = YES
|
||||
USE_MATHJAX = NO
|
||||
MATHJAX_FORMAT = HTML-CSS
|
||||
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
|
||||
MATHJAX_EXTENSIONS =
|
||||
MATHJAX_CODEFILE =
|
||||
SEARCHENGINE = YES
|
||||
SERVER_BASED_SEARCH = NO
|
||||
EXTERNAL_SEARCH = NO
|
||||
SEARCHENGINE_URL =
|
||||
SEARCHDATA_FILE = searchdata.xml
|
||||
EXTERNAL_SEARCH_ID =
|
||||
EXTRA_SEARCH_MAPPINGS =
|
||||
|
||||
GENERATE_LATEX = NO
|
||||
GENERATE_RTF = NO
|
||||
GENERATE_MAN = NO
|
||||
GENERATE_DOCBOOK = NO
|
||||
GENERATE_AUTOGEN_DEF = NO
|
||||
GENERATE_PERLMOD = NO
|
||||
CLASS_DIAGRAMS = NO
|
||||
HAVE_DOT = NO
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to the XML output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_XML = YES
|
||||
XML_OUTPUT = $(XML_OUTPUT)
|
||||
XML_PROGRAMLISTING = YES
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to external references
|
||||
#---------------------------------------------------------------------------
|
||||
TAGFILES =
|
||||
GENERATE_TAGFILE =
|
||||
ALLEXTERNALS = NO
|
||||
EXTERNAL_GROUPS = YES
|
||||
EXTERNAL_PAGES = YES
|
||||
PERL_PATH = /usr/bin/perl
|
||||
@@ -1,11 +0,0 @@
|
||||
<xsl:stylesheet version="3.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
exclude-result-prefixes="xs"
|
||||
expand-text="yes">
|
||||
|
||||
<xsl:variable name="doc-ref" select="'static_string.ref'"/>
|
||||
<xsl:variable name="doc-ns" select="'boost::static_strings'"/>
|
||||
<xsl:variable name="include-private-members" select="false()"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -14,13 +14,24 @@
|
||||
// Are we dependent on Boost?
|
||||
// #define BOOST_STATIC_STRING_STANDALONE
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
// detect 32/64 bit
|
||||
#if UINTPTR_MAX == UINT64_MAX
|
||||
#define BOOST_STATIC_STRING_ARCH 64
|
||||
#elif UINTPTR_MAX == UINT32_MAX
|
||||
#define BOOST_STATIC_STRING_ARCH 32
|
||||
#else
|
||||
#error Unknown or unsupported architecture, please open an issue
|
||||
#endif
|
||||
|
||||
// Can we have deduction guides?
|
||||
#if __cpp_deduction_guides >= 201703L
|
||||
#define BOOST_STATIC_STRING_USE_DEDUCT
|
||||
#endif
|
||||
|
||||
// Include <version> if we can
|
||||
#ifdef __has_include
|
||||
#ifdef __has_include
|
||||
#if __has_include(<version>)
|
||||
#include <version>
|
||||
#endif
|
||||
@@ -45,7 +56,7 @@
|
||||
#define BOOST_STATIC_STRING_CHECK_FOR_ATTR(x) __has_cpp_attribute(x)
|
||||
#elif defined(__has_attribute)
|
||||
#define BOOST_STATIC_STRING_CHECK_FOR_ATTR(x) __has_attribute(x)
|
||||
#else
|
||||
#else
|
||||
#define BOOST_STATIC_STRING_CHECK_FOR_ATTR(x) 0
|
||||
#endif
|
||||
|
||||
@@ -128,9 +139,6 @@
|
||||
#ifndef BOOST_STATIC_STRING_THROW
|
||||
#define BOOST_STATIC_STRING_THROW(ex) BOOST_THROW_EXCEPTION(ex)
|
||||
#endif
|
||||
#ifndef BOOST_STATIC_STRING_STATIC_ASSERT
|
||||
#define BOOST_STATIC_STRING_STATIC_ASSERT(cond, msg) BOOST_STATIC_ASSERT_MSG(cond, msg)
|
||||
#endif
|
||||
#ifndef BOOST_STATIC_STRING_ASSERT
|
||||
#define BOOST_STATIC_STRING_ASSERT(cond) BOOST_ASSERT(cond)
|
||||
#endif
|
||||
@@ -138,24 +146,60 @@
|
||||
#ifndef BOOST_STATIC_STRING_THROW
|
||||
#define BOOST_STATIC_STRING_THROW(ex) throw ex
|
||||
#endif
|
||||
#ifndef BOOST_STATIC_STRING_STATIC_ASSERT
|
||||
#define BOOST_STATIC_STRING_STATIC_ASSERT(cond, msg) static_assert(cond, msg)
|
||||
#endif
|
||||
#ifndef BOOST_STATIC_STRING_ASSERT
|
||||
#define BOOST_STATIC_STRING_ASSERT(cond) assert(cond)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef BOOST_STATIC_STRING_STANDALONE
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/container_hash/hash.hpp>
|
||||
#include <boost/static_assert.hpp>
|
||||
#include <boost/utility/string_view.hpp>
|
||||
#include <boost/core/detail/string_view.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
|
||||
#if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) || \
|
||||
defined(BOOST_STATIC_STRING_CXX17_STRING_VIEW)
|
||||
#include <string_view>
|
||||
#define BOOST_STATIC_STRING_HAS_STD_STRING_VIEW
|
||||
#endif
|
||||
#else
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
#if defined(__has_include)
|
||||
# if !__has_include(<string_view>)
|
||||
# define BOOST_STATIC_STRING_NO_CXX17_HDR_STRING_VIEW
|
||||
# endif
|
||||
/*
|
||||
* Replicate the logic from Boost.Config
|
||||
*/
|
||||
// GNU libstdc++3:
|
||||
#elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
|
||||
# if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 70100) || (__cplusplus <= 201402L)
|
||||
# define BOOST_STATIC_STRING_NO_CXX17_HDR_STRING_VIEW
|
||||
# endif
|
||||
// libc++:
|
||||
#elif defined(_LIBCPP_VERSION)
|
||||
# if (_LIBCPP_VERSION < 4000) || (__cplusplus <= 201402L)
|
||||
# define BOOST_STATIC_STRING_NO_CXX17_HDR_STRING_VIEW
|
||||
# endif
|
||||
// MSVC uses logic from catch all for BOOST_NO_CXX17_HDR_STRING_VIEW
|
||||
// catch all:
|
||||
#elif !defined(_YVALS) && !defined(_CPPLIB_VER)
|
||||
# if (!defined(__has_include) || (__cplusplus < 201700))
|
||||
# define BOOST_STATIC_STRING_NO_CXX17_HDR_STRING_VIEW
|
||||
# elif !__has_include(<string_view>)
|
||||
# define BOOST_STATIC_STRING_NO_CXX17_HDR_STRING_VIEW
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(BOOST_STATIC_STRING_NO_CXX17_HDR_STRING_VIEW) || \
|
||||
defined(BOOST_STATIC_STRING_CXX17_STRING_VIEW)
|
||||
#include <string_view>
|
||||
#define BOOST_STATIC_STRING_HAS_STD_STRING_VIEW
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Compiler bug prevents constexpr from working with clang 4.x and 5.x
|
||||
@@ -192,6 +236,30 @@ defined(BOOST_STATIC_STRING_CPP14)
|
||||
#define BOOST_STATIC_STRING_GCC5_BAD_CONSTEXPR
|
||||
#endif
|
||||
|
||||
#ifndef BOOST_STATIC_STRING_STANDALONE
|
||||
#if ! defined(BOOST_NO_CWCHAR) && ! defined(BOOST_NO_SWPRINTF)
|
||||
#define BOOST_STATIC_STRING_HAS_WCHAR
|
||||
#endif
|
||||
#else
|
||||
#ifndef __has_include
|
||||
// If we don't have __has_include in standalone,
|
||||
// we will assume that <cwchar> exists.
|
||||
#define BOOST_STATIC_STRING_HAS_WCHAR
|
||||
#elif __has_include(<cwchar>)
|
||||
#define BOOST_STATIC_STRING_HAS_WCHAR
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_STATIC_STRING_HAS_WCHAR
|
||||
#include <cwchar>
|
||||
#endif
|
||||
|
||||
// Define the basic string_view type used by the library
|
||||
// Conversions to and from other available string_view types
|
||||
// are still defined.
|
||||
#if !defined(BOOST_STATIC_STRING_STANDALONE) || \
|
||||
defined(BOOST_STATIC_STRING_HAS_STD_STRING_VIEW)
|
||||
#define BOOST_STATIC_STRING_HAS_ANY_STRING_VIEW
|
||||
namespace boost {
|
||||
namespace static_strings {
|
||||
|
||||
@@ -205,4 +273,10 @@ using basic_string_view =
|
||||
#endif
|
||||
} // static_strings
|
||||
} // boost
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__cpp_lib_to_string) && __cpp_lib_to_string >= 202306L // std::to_[w]string() redefined in terms of std::format()
|
||||
#define BOOST_STATIC_STRING_USE_STD_FORMAT
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -7,11 +7,12 @@
|
||||
],
|
||||
"description": "A fixed capacity dynamically sized string.",
|
||||
"category": [
|
||||
"Container",
|
||||
"Containers",
|
||||
"String"
|
||||
],
|
||||
"maintainers": [
|
||||
"Krystian Stasiowski <sdkrystian@gmail.com>",
|
||||
"Alan de Freitas <alandefreitas@gmail.com>",
|
||||
"Vinnie Falco <vinnie.falco@gmail.com>"
|
||||
],
|
||||
"cxxstd": "11"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
||||
# Copyright (c) 2022 Alan de Freitas (alandefreitas@gmail.com)
|
||||
#
|
||||
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
@@ -7,16 +7,26 @@
|
||||
# Official repository: https://github.com/boostorg/static_string
|
||||
#
|
||||
|
||||
GroupSources (include/boost/static_string static_string)
|
||||
GroupSources (test "/")
|
||||
# Custom target used by the boost super-project
|
||||
if(NOT TARGET tests)
|
||||
add_custom_target(tests)
|
||||
set_property(TARGET tests PROPERTY FOLDER _deps)
|
||||
endif()
|
||||
|
||||
add_executable (tests
|
||||
${PROJECT_FILES}
|
||||
Jamfile
|
||||
static_string.cpp
|
||||
)
|
||||
set(BOOST_STATIC_STRING_TESTS_FILES
|
||||
CMakeLists.txt
|
||||
Jamfile
|
||||
constexpr_tests.hpp
|
||||
compile_fail.hpp
|
||||
static_string.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(tests
|
||||
)
|
||||
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${BOOST_STATIC_STRING_TESTS_FILES})
|
||||
add_executable(boost_static_string_tests ${BOOST_STATIC_STRING_TESTS_FILES})
|
||||
|
||||
set_property(TARGET tests PROPERTY FOLDER "tests")
|
||||
# The include dependencies are found in the CMakeLists.txt
|
||||
# of the root project directory.
|
||||
# See: BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES
|
||||
target_link_libraries(boost_static_string_tests PRIVATE Boost::static_string)
|
||||
add_test(NAME boost_static_string_tests COMMAND boost_static_string_tests)
|
||||
add_dependencies(tests boost_static_string_tests)
|
||||
|
||||
@@ -8,18 +8,21 @@
|
||||
#
|
||||
|
||||
import testing ;
|
||||
import ../../config/checks/config : requires ;
|
||||
import-search /boost/config/checks ;
|
||||
import config : requires ;
|
||||
|
||||
local defines =
|
||||
[ requires
|
||||
cxx11_constexpr
|
||||
cxx11_decltype
|
||||
cxx11_hdr_tuple
|
||||
cxx11_hdr_type_traits
|
||||
cxx11_template_aliases
|
||||
cxx11_variadic_templates
|
||||
]
|
||||
;
|
||||
|
||||
project : requirements $(defines) ;
|
||||
project : requirements $(defines)
|
||||
<library>/boost/static_string//boost_static_string ;
|
||||
|
||||
run static_string.cpp ;
|
||||
|
||||
24
test/cmake_test/CMakeLists.txt
Normal file
24
test/cmake_test/CMakeLists.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
# Copyright 2021-2025 Alexander Grund
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
cmake_minimum_required(VERSION 3.8...3.16)
|
||||
|
||||
project(cmake_subdir_test LANGUAGES CXX)
|
||||
|
||||
# Those 2 should work the same
|
||||
# while using find_package for the installed Boost avoids the need to manually specify dependencies
|
||||
if(BOOST_CI_INSTALL_TEST)
|
||||
find_package(boost_static_string REQUIRED)
|
||||
else()
|
||||
set(BOOST_INCLUDE_LIBRARIES static_string)
|
||||
add_subdirectory(../../../.. deps/boost EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
|
||||
add_executable(main main.cpp)
|
||||
target_link_libraries(main Boost::static_string)
|
||||
|
||||
enable_testing()
|
||||
add_test(NAME main COMMAND main)
|
||||
|
||||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)
|
||||
18
test/cmake_test/main.cpp
Normal file
18
test/cmake_test/main.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// Copyright (c) 2025 Alexander Grund
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/static_string
|
||||
//
|
||||
|
||||
#include <boost/static_string.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
// Smoke test only
|
||||
boost::static_string<1> s_empty;
|
||||
boost::static_string<4> s_3(3, 'x');
|
||||
return (s_empty.empty() && s_3.size() == 3) ? 0 : 1;
|
||||
}
|
||||
@@ -41,14 +41,14 @@ struct cxper_char_traits
|
||||
*(dest++) = *(src++);
|
||||
return temp;
|
||||
}
|
||||
static constexpr char_type* copy(char_type* dest, const char_type* src, std::size_t n)
|
||||
{
|
||||
static constexpr char_type* copy(char_type* dest, const char_type* src, std::size_t n)
|
||||
{
|
||||
const auto temp = dest;
|
||||
while (n--)
|
||||
*(dest++) = *(src++);
|
||||
return temp;
|
||||
}
|
||||
static constexpr char_type* assign(char_type* dest, std::size_t n, char_type ch)
|
||||
static constexpr char_type* assign(char_type* dest, std::size_t n, char_type ch)
|
||||
{
|
||||
const auto temp = dest;
|
||||
while (n--)
|
||||
@@ -62,8 +62,8 @@ using cxper_char_traits = std::char_traits<char>;
|
||||
using cstatic_string = basic_static_string<50, char, cxper_char_traits>;
|
||||
|
||||
inline
|
||||
constexpr
|
||||
bool
|
||||
constexpr
|
||||
bool
|
||||
testConstantEvaluation()
|
||||
{
|
||||
#ifdef BOOST_STATIC_STRING_CPP20
|
||||
@@ -171,8 +171,10 @@ testConstantEvaluation()
|
||||
|
||||
a.substr(0);
|
||||
|
||||
#ifdef BOOST_STATIC_STRING_HAS_ANY_STRING_VIEW
|
||||
// subview
|
||||
a.subview(0);
|
||||
#endif
|
||||
|
||||
// copy
|
||||
char k[20]{};
|
||||
@@ -357,8 +359,10 @@ testConstantEvaluation()
|
||||
a.substr(0);
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_STATIC_STRING_HAS_STRING_VIEW
|
||||
// subview
|
||||
a.subview(0);
|
||||
#endif
|
||||
|
||||
// copy
|
||||
char k[20]{};
|
||||
@@ -421,7 +425,7 @@ testConstantEvaluation()
|
||||
// ends_with
|
||||
a.ends_with('a');
|
||||
a.ends_with("a");
|
||||
|
||||
|
||||
return true;
|
||||
#elif defined(BOOST_STATIC_STRING_CPP14)
|
||||
// c++14 constexpr tests
|
||||
@@ -521,17 +525,17 @@ testConstantEvaluation()
|
||||
a.compare("a");
|
||||
a.compare(0, 1, "a");
|
||||
a.compare(0, 1, "a", 1);
|
||||
|
||||
|
||||
// substr
|
||||
// in gcc 5, a constexpr non-static member function returning the class
|
||||
// is a member of causes an ICE
|
||||
#ifndef BOOST_STATIC_STRING_GCC5_BAD_CONSTEXPR
|
||||
a.substr(0, 1);
|
||||
#endif
|
||||
|
||||
|
||||
// subview
|
||||
a.subview(0);
|
||||
|
||||
|
||||
// copy
|
||||
char k[20]{};
|
||||
a.copy(k, 1, 0);
|
||||
@@ -596,12 +600,12 @@ testConstantEvaluation()
|
||||
return true;
|
||||
#elif defined(BOOST_STATIC_STRING_CPP11)
|
||||
// c++11 constexpr tests
|
||||
return (cstatic_string().size() +
|
||||
cstatic_string().length() +
|
||||
cstatic_string().max_size() +
|
||||
return (cstatic_string().size() +
|
||||
cstatic_string().length() +
|
||||
cstatic_string().max_size() +
|
||||
cstatic_string().capacity()) != 0 &&
|
||||
cstatic_string().empty();
|
||||
#endif
|
||||
}
|
||||
} // static_strings
|
||||
} // boost
|
||||
} // boost
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user