133 Commits

Author SHA1 Message Date
Rafal Crypto Tigusoft
dd552a10c8
fix off-by-one when resolve goes up to ip==0 frame 2017-06-29 10:57:04 +00:00
François-Xavier Bourlet
f9f732ddeb Merge pull request #63 from rfree-d/fix_warning_ip_minus1
To pass sanitization, do not rely on underflow 0-1
2017-06-28 11:40:58 -07:00
François-Xavier Bourlet
285157e9d7 Merge pull request #65 from mafiya69/shadow
Remove gcc-7 -Wshadow warning
2017-06-26 11:05:28 -07:00
Govind Sahai
9ecb5c6bf3 Added _ to remove warning 2017-06-25 00:21:05 +05:30
Rafal Crypto Tigusoft
7430bea233
Fixed problem with decltype (on older compiler/travis) 2017-06-22 17:08:30 +00:00
Rafal Crypto Tigusoft
4fc30f7ce6
To pass sanitization, do not rely on underflow 0-1
for ip==0, we sometimes calculate ip-=1.
ip is unsigned, so this is an underflow.

This is not strictly an UB, but more pedantic sanitizers
do catch this and report as possible error.

So why not instead just explicitly set value 0xffff...
(result of 0-1) and avoid this warnings.
2017-06-22 16:35:40 +00:00
François-Xavier Bourlet
c9251fdd25 Update doc about color mode & std::ostream. 2017-05-28 17:28:02 -07:00
François-Xavier Bourlet
3bdae43c0c Fix typo in build link 2017-05-28 17:15:00 -07:00
François-Xavier Bourlet
3d8767199d Merge pull request #62 from bryant1410/master
Fix broken headings in Markdown files
2017-05-28 17:11:54 -07:00
François-Xavier Bourlet
8eb8fad38f Add color mode.
This is a breaking change.

The printer now offers a color_mode setting: automatic, always, never.

When given a FILE* stream on linux, the automatic mode will retrieve
file descriptor behind it and call isatty().
2017-05-28 17:03:29 -07:00
François-Xavier Bourlet
c432e7ef8d Merge branch 'print-to-streams' of https://github.com/ogdf/backward-cpp into ogdf-print-to-streams 2017-05-28 15:16:29 -07:00
Santiago Castro
fff5d60d2f Fix broken Markdown headings 2017-04-17 04:35:24 -03:00
François-Xavier Bourlet
71dafcb203 Merge pull request #60 from ogdf/g++7-warnings
Fix g++ 7.0.1 warnings
2017-03-29 14:36:47 -07:00
François-Xavier Bourlet
6ae8564fbd enable tests that somebody thought it was a good idea to permanently disable. 2017-03-15 17:32:15 -07:00
François-Xavier Bourlet
5557e53f23 Only catch signals with a default action of "Core"
Close #59
2017-03-15 17:01:35 -07:00
Stephan Beyer
5f08e7e7b1 Fix g++- 7.0.1 -Wshadow warnings in test lib 2017-03-05 19:28:23 +01:00
Stephan Beyer
f147949e65 Fix -Wshadow warnings from g++ 7.0.1 2017-03-05 19:14:41 +01:00
Stephan Beyer
df124abe08 Fix -Wimplicit-fallthrough warning from g++ 7.0.1
The fallthrough (missing break after a case in a switch) is
not necessary. We can just move the whole default code move
down after the switch.
2017-03-05 19:13:50 +01:00
François-Xavier Bourlet
8a576051ba Merge pull request #58 from krf/fix-warning
Fix -Wmissing-noreturn warning from Clang
2017-02-21 16:49:13 -08:00
Kevin Funk
f76d7299be Fix -Wmissing-noreturn warning from Clang 2017-02-21 16:08:25 +01:00
François-Xavier Bourlet
f803ce5c7f Merge pull request #56 from akreuzkamp/master
Operator names are not supported by MSVC out of the box. Using them breaks code that needs to build with MSVC and/or (thus) uses "-fno-operator-names". As a header-only library should pursue maximal
portability, this PR replaces the single usage of operator names with the more portable operator syntax.
2017-02-21 02:27:14 -08:00
Anton Kreuzkamp
a1ab90920b Use && instead of and.
Operator names are not supported by MSVC out of the box. Using them
breaks code that needs to build with MSVC and/or (thus) uses
"-fno-operator-names". As a header-only library should pursue maximal
portability, this commit replaces the single usage of operator names
with the more portable operator syntax.
2017-02-21 10:15:45 +01:00
François-Xavier Bourlet
240366076f Merge pull request #57 from bombela/issue-55
Fix conanfile recipe
2017-02-20 15:10:21 -08:00
Manu343726
d16b08f887 [#55] Conan options are represented as attributes instead of map entries 2017-02-20 23:04:00 +01:00
Manu343726
9a12fc55e5 Revert "[#55] omit cmake options in conanfile build step"
This reverts commit 06fb80378505d5792c8ce8dcadacdabb9ae45ce7.
2017-02-20 23:01:51 +01:00
Manu343726
06fb803785 [#55] omit cmake options in conanfile build step 2017-02-19 23:59:00 +01:00
Manu343726
7693dd9f05 conan recipe url field points to official repository 2016-12-18 23:43:53 +01:00
Manu343726
a9ba88938b Conan badge pointing to 1.3.0 release 2016-12-18 23:27:54 +01:00
Manu343726
44b43ec163 conan recipe pointing to 1.3.0 release 2016-12-18 23:16:33 +01:00
Manu343726
cd1c4bd9e4 Update travis ci badge to point to official builds v1.3 2016-12-18 23:00:17 +01:00
Manu343726
4dc425c3a0 conan.io package 2016-12-18 22:32:09 +01:00
François-Xavier Bourlet
0c0aff621c Merge pull request #49 from ruipires/master
adds support for ppc architecture
2016-12-12 17:03:40 -08:00
Manu343726
ddf01ed3e3 Run tests on Travis CI 2016-12-12 17:01:25 -08:00
Rui Pires
82de54d6e4 adds support for ppc architecture 2016-12-12 21:38:27 +00:00
François-Xavier Bourlet
d820636e5a Merge pull request #45 from edisongustavo/master
Add support to find_package(Backward)
v1.2
2016-11-27 02:41:48 -08:00
Edison Gustavo Muenz
b3380e2743 Add detailed instructions on how to use cmake to integrate Backward 2016-11-21 10:36:03 -02:00
Edison Gustavo Muenz
e8b8b5b2ec Prevent that the cmake variable BACKWARD_INCLUDE_DIRS be infinitely appended on successive cmake runs 2016-11-17 19:15:44 -02:00
Edison Gustavo Muenz
d242b6db4c Don't use find_package() in CMakeLists.txt since it does not make sense 2016-11-17 18:22:56 -02:00
François-Xavier Bourlet
e371aa91e3 Merge pull request #44 from ogdf/make-skip-public
Make StackTraceImpl*::skip_n_firsts() setter public
2016-11-17 11:39:35 -08:00
François-Xavier Bourlet
6c57396ce4 Merge pull request #43 from ogdf/make-context-sizes-configurable
Printer: Make context sizes configurable
2016-11-17 11:36:33 -08:00
Edison Gustavo Muenz
5f2f6e51e0 Add install() 2016-11-17 17:29:27 -02:00
Edison Gustavo Muenz
8c569af941 Add support to find_package(Backward) 2016-11-17 17:15:47 -02:00
Stephan Beyer
f046d0d5dd Make StackTraceImpl*::skip_n_firsts() setter public
When the stack trace is used directly (and not by a signal),
one may want to hide some of the first stack items because
they will always be the same calls.
2016-10-28 18:59:51 +02:00
Stephan Beyer
3e7d61f670 Printer: Make context sizes configurable 2016-10-27 17:35:45 +02:00
Stephan Beyer
e8ec7beb1e Let Colorizer reset on initialization 2016-10-25 21:50:21 +02:00
Stephan Beyer
bda53f29f9 Make Printer::print methods available for streams 2016-10-25 21:50:21 +02:00
François-Xavier Bourlet
54fc561ebc Merge pull request #40 from Jiboo/master
Don't append definitions if already cached
v1.1
2016-09-27 16:33:10 -07:00
Jean-Bapiste Lepesme
998f176a40 Don't append definitions if already cached 2016-09-28 00:57:46 +02:00
François-Xavier Bourlet
dbb0e77e20 Merge pull request #39 from merlinthered/master
Some CMake-related fixes
2016-09-27 10:21:47 -07:00
merlinthered
e878d6f203 Export BACKWARD_[...] CMake variables as cache variables
If we do not export the variables set in BackwardMacros.cmake as cache variables, they will not be visible wherever add_backward() is called, and the macro will do nothing.

Also, fix typo `BACKWARD_INCLUDE_DIR` -> `BACKWARD_INCLUDE_DIRS`
2016-09-27 08:40:10 +02:00