- 13 Jan, 2016 3 commits
-
-
vitaut authored
-
Victor Zverovich authored
Improve find and package support
-
Mario Werner authored
-
- 12 Jan, 2016 6 commits
-
-
Mario Werner authored
Whitelist of repos: https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json Whitelist of packages: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
-
Mario Werner authored
The use of `CPACK_PACKAGE_NAME` leads to `cppformat-<version>-Source.zip` as the name for the source package which is different from the expected `cppformat-<version>.zip`.
-
vitaut authored
-
Victor Zverovich authored
Changed ArgMap to be backed by a vector instead of a map.
-
Mario Werner authored
-
Mario Werner authored
This commit upgrades cmake to 2.8.12 to implement proper cmake `find_package` support using config and export file generation. Having this support enables users to use installed cppformat with a simple `find_package` call. Directly using a version from a build directory is also supported. main.cpp: ``` #include <cppformat/format.h> int main(int argc, char** argv) { for(int i = 0; i < argc; ++i) fmt::print("{}: {}\n",i,argv[i]); return 0; } ``` CMakeLists.txt: ``` cmake_minimum_required(VERSION 2.8.12) project(cppformat-test) find_package(cppformat REQUIRED) add_executable(cppformat-test "main.cpp") target_link_libraries(cppformat-test cppformat) ``` Configuring when cppformat is installed under `CMAKE_INSTALL_PREFIX`: `cmake <PATH_TO_TEST_SRC>` Configuring when cppformat is installed `ELSEWHERE`: `cmake -Dcppformat_DIR=<ELSEWHERE>/lib/cmake/cppformat <PATH_TO_TEST_SRC>` Configuring when cppformat is only built: `cmake -Dcppformat_DIR=<cppformat_BUILD_DIR> <PATH_TO_TEST_SRC>`
-
- 10 Jan, 2016 1 commit
-
-
Michael Winterberg authored
The main reason for this is to avoid a dynamic memory allocation in every format() call with Visual Studio if there are no named arguments.
-
- 09 Jan, 2016 2 commits
- 08 Jan, 2016 2 commits
-
-
vitaut authored
-
Victor Zverovich authored
Fixed unknown pragma warnings for _BitScanReverse.
-
- 07 Jan, 2016 1 commit
-
-
Michael Winterberg authored
This is mainly just to avoid including intrin.h unnecessarily.
-
- 06 Jan, 2016 3 commits
-
-
Michael Winterberg authored
Changed to only define the MSVC implementations for clz and clzll if the builtins are not available to avoid warnings about an unknown #pragma for "intrinsic".
-
Victor Zverovich authored
Fixed macro redefinition warnings when compiling with clang-cl.
-
Michael Winterberg authored
Both clang-cl and Clang/C2 #define _MSC_VER but also have support for __builtin_clz and __builtin_clzll, leading to duplicate macro definition warnings. Emulation of clz using _BitScanReverse is suppressed if the builtins are already available. Additionally, the value of the output parameter of _BitScanReverse is undefined if the input value is 0, which is avoided by construction, so the code analysis warning for using uninitialized data is now suppressed.
-
- 02 Jan, 2016 1 commit
-
-
Michael Winterberg authored
Both clang-cl and Clang/C2 #define _MSC_VER but also have support for __builtin_clz and __builtin_clzll, leading to duplicate macro definition warnings. This change suppresses emulation of clz using _BitScanReverse if the __clang__ macro is defined.
-
- 24 Dec, 2015 3 commits
- 23 Dec, 2015 2 commits
-
-
Victor Zverovich authored
Add fprintf overload that writes to a std::ostream
-
Nicholas Hutchinson authored
For completeness, add an overload for printf that takes a std::ostream.
-
- 20 Dec, 2015 2 commits
-
-
vitaut authored
-
Victor Zverovich authored
Reduce compile time of variadic functions (2)
-
- 19 Dec, 2015 2 commits
-
-
Dean Moldovan authored
-
Dean Moldovan authored
-
- 18 Dec, 2015 7 commits
- 17 Dec, 2015 1 commit
-
-
vitaut authored
-
- 10 Dec, 2015 3 commits
-
-
vitaut authored
for consistency with used coding conventions.
-
Victor Zverovich authored
Declarations for shared library in Windows.
-
Maciej Dems authored
Added __declspec(dllimport) and __declspec(dllexport) declarations when compiled in Windows.
-
- 09 Dec, 2015 1 commit
-
-
vitaut authored
-