From ba5888b03113eb35995001414e84e7207f2d7fa3 Mon Sep 17 00:00:00 2001 From: karel-burda <38255062+karel-burda@users.noreply.github.com> Date: Sat, 29 Sep 2018 08:28:54 +0200 Subject: [PATCH 1/4] Additional arguments on the static analysis --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 40d8df1..4c196c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ jobs: - cmake -Bbuild -H. -DEXAMPLE:BOOL=ON -DUNIT-TESTS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCOVERAGE:BOOL=ON - - cppcheck --enable=all -I include -I test-utils/include --language=c++ --platform=unix64 --std=c++11 --check-config --suppress=missingIncludeSystem -v ./example ./tests + - cppcheck --enable=all -I include -I test-utils/include -I tests/unit/include --language=c++ --platform=unix64 --std=c++11 --check-config --suppress=missingIncludeSystem -v ./example ./tests - cmake --build build --target example --config RelWithDebInfo @@ -35,6 +35,6 @@ jobs: - cmake --build build --target run-all-tests-verbose --config RelWithDebInfo - ls -la build && ls -la build/bin - - coveralls -e ./build/gtest-src -e ./build/CMakeFiles -e ./tests/unit -e ./example --gcov-options '\-lp' + - coveralls -e ./build/gtest-src -e ./build/CMakeFiles -e ./tests/unit -e ./example -e cmake-helpers --gcov-options '\-lp' - set +e From 7754ec53de925cae37ffff00c03ea5a3bb49fdbb Mon Sep 17 00:00:00 2001 From: karel-burda <38255062+karel-burda@users.noreply.github.com> Date: Sat, 29 Sep 2018 08:33:11 +0200 Subject: [PATCH 2/4] Improved excluding from the code coverage --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4c196c6..f32a615 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,6 @@ jobs: - cmake --build build --target run-all-tests-verbose --config RelWithDebInfo - ls -la build && ls -la build/bin - - coveralls -e ./build/gtest-src -e ./build/CMakeFiles -e ./tests/unit -e ./example -e cmake-helpers --gcov-options '\-lp' + - coveralls -e ./build/gtest-src -e build/demo-library -e ./build/CMakeFiles -e ./tests/unit -e ./example -e cmake-helpers -e demo-library --gcov-options '\-lp' - set +e From 91d298fb04d585010097026f2180f0d74d322f68 Mon Sep 17 00:00:00 2001 From: Karel Burda Date: Mon, 1 Oct 2018 05:45:31 +0200 Subject: [PATCH 3/4] Improved README --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7e4063b..aac49d2 100644 --- a/README.md +++ b/README.md @@ -13,23 +13,23 @@ with `--recurse-submodules` or `--recursive` on older versions of git. Alternati # Introduction `function_loader` is a header-only library that can find free functions in a shared library and provide and `std::function` wrapper around the found function. -Essentially a wrapper around the calls `LoadLibrary`, `GetProcedure` and `FreeLibrary` system calls on Windows and `dlopen`, `dlsym` and `dlclose` on POSIXes. +Essentially provides wrapper around the calls `LoadLibrary`, `GetProcedure` and `FreeLibrary` system calls on Windows and `dlopen`, `dlsym` and `dlclose` on POSIXes. -Implemented using C++11 for Windows and POSIX systems. +Implemented using C++11. These exceptions might be thrown: * `library_load_failed` * `function_does_not_exist` -See [exceptions.hpp](include/function_loader/exceptions.hpp) for more info. +Exceptions provide additional information about the reason using `what()`, see [exceptions.hpp](include/function_loader/exceptions.hpp) for more info. # Usage In order to use the `function_loader`, it's the `include` directory that matters. Just make sure that the header search path is pointing to the [include](include) directory located in the root directory. On POSIXes, the `libdl` has to be linked to the final executable. -Tou can use the provided package config at [function-loader-config.cmake.in](function-loader-config.cmake.in). +You can use the provided CMake package configuration at [function-loader-config.cmake.in](function-loader-config.cmake.in). -Implementation resides in the `burda::function_loader` namespace, so it might be useful to do `namespace fe = burda::function_loader;` in your project. +Implementation resides in the `burda::function_loader` namespace, so it might be useful to do something like `namespace fe = burda::function_loader;` in your project. ### Example ```cpp From a4706af4340d476b842e195e02a3ce41c400dcbc Mon Sep 17 00:00:00 2001 From: Karel Burda Date: Mon, 1 Oct 2018 05:57:24 +0200 Subject: [PATCH 4/4] Raised version to 1.0.0 --- CMakeLists.txt | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e352c12..895993f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.8 FATAL_ERROR) -project(function-loader VERSION 0.9.1 LANGUAGES CXX) +project(function-loader VERSION 1.0.0 LANGUAGES CXX) include("cmake-helpers/cmake-helpers/messages.cmake") include("cmake-helpers/cmake-helpers/standard-settings.cmake") diff --git a/README.md b/README.md index aac49d2..fb18f21 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Version](https://img.shields.io/badge/version-0.9.0-green.svg) +![Version](https://img.shields.io/badge/version-1.0.0-green.svg) [![License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat)](LICENSE) [![Build Status](https://travis-ci.org/karel-burda/function-loader.svg?branch=develop)](https://travis-ci.org/karel-burda/function-loader) [![Coverage Status](https://coveralls.io/repos/github/karel-burda/function-loader/badge.svg?branch=develop)](https://coveralls.io/github/karel-burda/function-loader?branch=develop)