1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-30 04:33:53 +00:00

Move to using clang 3.5

This commit is contained in:
Henry Fredrick Schreiner 2017-02-11 10:38:52 -05:00
parent 7a769fa996
commit 7fee3f3695
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ matrix:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
packages: packages:
- clang-3.5 - clang-3.5
env: COMPILER=3.5
- compiler: gcc - compiler: gcc
addons: addons:
apt: apt:
@ -33,6 +34,7 @@ matrix:
install: install:
- python -c 'import sys; print(sys.version_info[:])' - python -c 'import sys; print(sys.version_info[:])'
- if [ "$CXX" = "g++" ]; then export CXX="g++-$COMPILER" CC="gcc-$COMPILER"; fi - if [ "$CXX" = "g++" ]; then export CXX="g++-$COMPILER" CC="gcc-$COMPILER"; fi
- if [ "$CXX" = "clang++" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="clang++-$COMPILER" CC="clang-$COMPILER"; fi
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps" - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- CMAKE_URL="https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz" - CMAKE_URL="https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz"
- cd "${DEPS_DIR}" - cd "${DEPS_DIR}"

View File

@ -9,7 +9,7 @@ The following attributes are what I believe are important in a CLI parser librar
* Easy to include (i.e., header only, one file if possible, no external requirements): While many programs depend on Boost, that should not be a requirement if all you want is CLI parsing. * Easy to include (i.e., header only, one file if possible, no external requirements): While many programs depend on Boost, that should not be a requirement if all you want is CLI parsing.
* Short Syntax: This is one of the main points of a CLI parser, it should make variables from the command line nearly as easy to define as any other variables. If most of your program is hidden in CLI parsing, this is a problem for readability. * Short Syntax: This is one of the main points of a CLI parser, it should make variables from the command line nearly as easy to define as any other variables. If most of your program is hidden in CLI parsing, this is a problem for readability.
* Work with GCC 4.7+ (such as GCC 4.8 on CentOS 7) or above, or Clang 3.4+. (3.5 stdlib is required to build googlemock test) Works on Linux and MacOS. * Work with GCC 4.7+ (such as GCC 4.8 on CentOS 7) or above, or Clang 3.5+. (3.4 only fails because of tests, googlemock does not support it.) Works on Linux and MacOS.
* Well tested using Travis. * Well tested using Travis.
* Good help printing (in progress). * Good help printing (in progress).
* Standard idioms supported naturally, like grouping flags, the positional seperator, etc. * Standard idioms supported naturally, like grouping flags, the positional seperator, etc.