Peter Dimov
|
601ee4ba7a
|
Use snprintf when available to avoid security warnings (refs #25)
|
2022-06-13 16:02:53 +03:00 |
|
Peter Dimov
|
a7af7efe51
|
Add operator==, operator!= to source_location
|
2022-05-05 03:25:16 +03:00 |
|
Peter Dimov
|
31b2f52083
|
Do not use __PRETTY_FUNCTION__ on GCC 4.x due to codegen bugs
|
2022-02-05 08:11:07 +02:00 |
|
Peter Dimov
|
8cb06e5d82
|
Remove srcloc_strip_top_level, because the contents of __PRETTY_FUNCTION__ aren't constant before GCC 9 and strcmp fails
|
2022-02-05 00:06:29 +02:00 |
|
Peter Dimov
|
7b14d83548
|
Hide the definition of srcloc_strip_top_level from non-GCC compilers, specifically Clang
|
2022-02-04 22:55:52 +02:00 |
|
Peter Dimov
|
d6e87b8049
|
Update BOOST_CURRENT_LOCATION to be constexpr
|
2022-02-04 22:48:27 +02:00 |
|
Peter Dimov
|
762a98d227
|
Use __builtin_FILE et al in BOOST_CURRENT_LOCATION
|
2022-02-04 02:07:36 +02:00 |
|
Peter Dimov
|
1a80da6298
|
Enable __PRETTY_FUNCTION__ on Clang, but disable top-level warning
|
2022-02-03 21:22:45 +02:00 |
|
Peter Dimov
|
844d8c2245
|
Enable BOOST_CURRENT_LOCATION at top level and in default arguments
|
2022-02-03 21:19:43 +02:00 |
|
Peter Dimov
|
23e699b9a4
|
Use std::source_location::current() in BOOST_CURRENT_LOCATION
|
2022-02-03 20:28:59 +02:00 |
|
Peter Dimov
|
fde226c7f5
|
Use __cpp_lib_source_location instead of BOOST_NO_CXX20_HDR_SOURCE_LOCATION
|
2022-02-03 09:31:27 +02:00 |
|
Peter Dimov
|
25f0bab733
|
Add a source_location constructor from std::source_location
|
2022-02-03 07:10:59 +02:00 |
|
Peter Dimov
|
ce2133a17f
|
sprintf line() and column() as unsigned long
|
2022-02-03 07:02:25 +02:00 |
|
Peter Dimov
|
0e99024312
|
Change file_name() and function_name() for source_location() to return '' instead of '(unknown)'
|
2022-02-03 06:56:39 +02:00 |
|
Peter Dimov
|
1f98fab0bf
|
Include <cstdio>; qualify std::sprintf
|
2021-09-19 01:06:02 +03:00 |
|
Peter Dimov
|
b7a43990e6
|
Add source_location::to_string
|
2021-09-19 00:45:15 +03:00 |
|
Peter Dimov
|
835f8db241
|
Cast to char const* to placate clang-tidy (refs #18)
|
2021-01-02 17:51:56 +02:00 |
|
Peter Dimov
|
e52b379928
|
Add operator<< for source_location
|
2020-01-21 01:52:41 +02:00 |
|
Peter Dimov
|
14302eadf6
|
Rename parameters to placate -Wshadow on g++ 4.x
|
2019-12-08 21:13:58 +02:00 |
|
Peter Dimov
|
6a4b9c914c
|
Fix g++ 4.x.
|
2019-11-25 22:25:41 +02:00 |
|
Peter Dimov
|
1afa4b89fd
|
Add boost::source_location
|
2019-11-25 03:25:57 +02:00 |
|