Timothy Rae
2123ef0348
Use pedantic warnings
...
From the gcc manual:
Issue all the warnings demanded by strict ISO C and ISO C++; reject all programs that use forbidden extensions, and some other programs that do not follow ISO C and ISO C++. For ISO C, follows the version of the ISO C standard specified by any -std option used.
Note: ISO C++98 doesn't support the "long long" data type, so we disable that warning
-Winit-self can be removed as it's enabled by -Wall
2017-03-31 12:41:21 +09:00
Timothy Rae
b23f2e155f
Use -Wextra flag with gcc
...
From the manual:
This enables some extra warning flags that are not enabled by -Wall. (This option used to be called -W. The older name is still supported, but the newer name is more descriptive.)
-Wclobbered
-Wempty-body
-Wignored-qualifiers
-Wimplicit-fallthrough=3
-Wmissing-field-initializers
-Wmissing-parameter-type (C only)
-Wold-style-declaration (C only)
-Woverride-init
-Wsign-compare (C only)
-Wtype-limits
-Wuninitialized
-Wshift-negative-value (in C++03 and in C99 and newer)
-Wunused-parameter (only with -Wunused or -Wall)
-Wunused-but-set-parameter (only with -Wunused or -Wall)
2017-03-31 12:22:38 +09:00
Timothy Rae
8387b594eb
Add install step
2017-03-27 18:41:44 +09:00
Ashley Williams
acbad05257
Revert linking ssp in SQLiteCpp and link ssp in the example project for MSYS and MINGW
2016-08-30 20:06:05 +01:00
Ashley Williams
4b4bc3f17a
Link libssp when targetted
2016-08-29 18:50:28 +01:00
Sébastien Rombauts
1470735e94
Switch googletest submodule to latest commit of github.com/google/googletest.git
2016-08-01 22:29:40 +02:00
Sébastien Rombauts
93dd526341
Fix issue #92 : force MSVC to use static runtime only if unit-tests are build
...
googletest recommend using this runtime
2016-07-19 08:30:01 +02:00
Sébastien Rombauts
2b36f52b6e
Add an explicit CMake error message on missing googletest submodule
...
- build.bat now exit on error instead of trying to build or run tests
2016-07-18 18:20:40 +02:00
Sébastien Rombauts
fd8f50bdd9
Remove last #include <sqlite3.h> from a header : add a few public constants
...
- Move #include <sqlite3.h> from Exception.h to a new corresponding .cpp
- Add SQLite::OPEN_READONLY...
2016-07-13 17:16:41 +02:00
Bruno Coelho
d78c4d5713
Automatically propagate public headers to other projects with CMake
2016-07-11 11:32:26 +01:00
Sébastien Rombauts
4e7c12f629
Add VariadicBind.h from PR #85 to CMake for Visual Studio
...
+ fix style issues (cpplint)
2016-07-02 14:04:39 +02:00
Sébastien Rombauts
c5ca1db62c
Print cppcheck version at CMake generation
2016-06-30 21:29:04 +02:00
Sébastien Rombauts
c0b2d81db9
Add a unit test for error in exec()
2016-06-30 17:41:23 +02:00
Sébastien Rombauts
b913932be2
Add a unit test for transactions
...
+ a few small minor new assert in other tests
2016-06-28 13:17:33 +02:00
Sébastien Rombauts
d98cc930cc
CMake prints the compiler version instead of the Travis script
2016-06-27 11:36:25 +02:00
Sébastien Rombauts
50501a41e2
Fix test coverage by using gcov '-lp' options
...
NOTE: it would be good to also be able to keep unused inline functions,
but there is a problem between gcc 4.8 and -fkeep-inline-functions
2016-06-21 12:20:23 +02:00
Sébastien Rombauts
b9f3e4d585
Switch to Ubuntu 14.04 Trusty VM : CMake 2.8.12 with add_compile_options()
2016-06-20 13:12:01 +02:00
Paul Dreik
808a9c894e
add unit test for variadic bind
2016-06-15 20:39:20 +02:00
Sébastien Rombauts
60652b3767
Update to a few CMake debug messages
2016-02-20 20:54:19 +01:00
Sébastien Rombauts
e9a2c9bb57
Remove biicode support, as servers will shutdown the 16th of February
2016-02-10 10:24:17 +01:00
Sébastien Rombauts
aafd35a863
Do not build Doxygen documentation by default
2015-12-01 22:55:14 +01:00
Sébastien Rombauts
a573c8c6b1
Now build the provided copy of SQLite3 C library instead of using the Linux sqlite3-dev package
...
- for ease of use and cross-platform/linux distribution compatibility
2015-11-10 18:16:02 +01:00
hongshibao
e8f956be22
Add Backup test
2015-10-28 03:04:13 +08:00
hongshibao
05d304b7c9
add Backup class
2015-10-25 18:31:16 +08:00
Sébastien Rombauts
65309d5db8
Enable GCov instrumentation in Debug build mode and upload results to coveralls
2015-10-07 22:24:18 +02:00
Sébastien Rombauts
9bb0aed805
Update googletest to latest, and deactivate certain class of warnings for its compilation
2015-05-27 11:45:59 +02:00
Sébastien Rombauts
7e16e8545f
Re-enable SQLITE_ENABLE_COLUMN_METADATA by default under Windows
2015-05-03 23:30:33 +02:00
Sébastien Rombauts
18620457b1
Add some more Unit Tests
2015-05-03 23:29:22 +02:00
Sébastien Rombauts
b10bf6faa5
Re-enable SQLITE_ENABLE_COLUMN_METADATA by default under Windows
...
- cleanup to the CMakeLists.txt for better readability
2015-05-03 23:29:01 +02:00
Sébastien Rombauts
6499f93b07
Fix cmake find Python Interpreter (instead of Libs)
...
- and use it
2015-05-03 23:27:21 +02:00
Sébastien Rombauts
5ec39df7e0
Fix #44 update information on alternate wrappers, and remove the outdated dedicated file.
2015-04-14 16:57:44 +02:00
Sébastien Rombauts
7cfd3e82f1
Merge pull request #42 from MariadeAnton/bii/updates
...
improved biicode support
Thanks, I've re-run the build with succes!
2015-03-25 14:52:15 +01:00
Sébastien Rombauts
e10b17682f
CMake find_package(Python) to use cpplint
2015-03-24 22:04:48 +01:00
Sébastien Rombauts
bb035143a9
Fix a CMake warning
2015-03-24 21:55:19 +01:00
mariadeanton
0aa4a43ae8
improved biicode support
2015-03-24 17:06:29 +01:00
Sébastien Rombauts
9d4829ab1e
Cleanup and improvement to build script
...
- no googletest on appveyor as cloning this submodule does not wordk
2015-03-20 13:22:49 +01:00
Sébastien Rombauts
81d7398dd9
Add scripts to MSVC solution
2015-03-08 22:52:41 +01:00
mariadeanton
2e6482e993
added biicode support
2015-01-16 12:02:48 +01:00
Sébastien Rombauts
5812460a21
Reactivated dev tools in scripts and Travis CI config file
2014-09-24 09:11:35 +02:00
r4d2
c114309550
deactivating optional build settings
2014-09-23 21:55:59 -04:00
madmaxoft
203c2fb68b
Removed weird GCC flags causing problems.
2014-09-03 22:35:22 +02:00
Sébastien Rombauts
ba578196ad
Fix C flags mixed with CPP flags
2014-08-06 10:58:01 +02:00
madmaxoft
27b9d11181
Added option SQLITECPP_INTERNAL_SQLITE.
...
This makes it possible to disable the internal sqlite library for builds that already get the library from elsewhere.
2014-07-28 19:43:49 +02:00
Sébastien Rombauts
d79787359f
Fix #19 default options to OFF, easier to handle for newcommers
2014-03-28 16:37:44 +01:00
Sébastien Rombauts
b9a3aeb62f
Fixed unit test warnings under Linux GCC/Clang
2014-03-28 16:27:43 +01:00
Sébastien Rombauts
acc894c1d2
Started a unit test for Statement
2014-03-20 22:13:15 +01:00
Sébastien Rombauts
8c3ac34767
Deactivated remaining clint rules on error
...
- about braces opening on same lines
2014-03-11 19:38:27 +01:00
Sébastien Rombauts
7bfaafecba
Moved include files out of the src/ dir, to an include/ dir
...
+ started a void test file
2014-03-04 23:04:38 +01:00
Sébastien Rombauts
b2a34a1ee4
Small cleanup to CMake config and updated copyright date
2014-02-23 11:36:28 +01:00
Sébastien Rombauts
84473175c5
Find Doxygen package
2014-02-07 21:49:02 +01:00