Commit Graph

3698 Commits

Author SHA1 Message Date
Egor Seredin
bcd9b9331a Map not int enum to correct underlying_type (#1286)
* Map not int enum to correct underlying_type

* Use non-zero constant in TestFixedEnum
2019-08-31 06:25:38 -07:00
luncliff
345ba07f1d Add a CUDA test
test cuda: import fmt in CUDA source code

Current test is only for Windows(cl.exe).
Need to test more with the other host compilers...

* Activate the test when `find_package(CUDA)` worked
* The test runs with C++14

Detailed comments in 'test/cuda-test'

test cuda: add more comment / macro check

* checks both `__NVCC__` and `__CUDACC__`

More comments for CMake and CUDA source file.

test cuda: <fmt/core.h> checks NVCC and CUDA

The header file checks 2 things.

* __NVCC__: if the compiler is from NVIDIA
* __CUDACC__: if the source code is CUDA(.cu) file

Since we can't sure all users prefer latest, Version for
`find_pacakge(CUDA)` is downgraded to 9.0.
This is the minimum version for C++14 in CUDA
2019-08-30 17:45:50 -07:00
hhb
9e2490be4c Rename precision parameter
To avoid clang warning:

fmtlib/include/fmt/chrono.h:753:32: error: declaration shadows a field of 'formatter<duration<type-parameter-0-0, type-parameter-0-1>, type-parameter-0-2, void>' [-Werror,-Wshadow]
2019-08-28 07:29:04 -07:00
Victor Zverovich
3f75e2b69e Make buffer_range public and update custom formatting docs (#1281) 2019-08-28 06:50:20 -07:00
Victor Zverovich
744302add0 Workaround broken [[deprecated]] in Intel compiler (#1273) 2019-08-28 05:58:09 -07:00
Greg Sjaardema
f5556225a4 Eliminate shadow variable warning
gcc-9 gives the following shadow warning:
```
In file included from /Users/libraries/ioss/src/fmt/ostream.h:12,
                 from /Users/libraries/ioss/src/Ioss_DatabaseIO.C:59:
/Users/libraries/ioss/src/fmt/format.h: In function 'void fmt::v6::internal::parse_format_string(fmt::v6::basic_string_view<Char>, Handler&&)':
/Users/libraries/ioss/src/fmt/format.h:2442:10: warning: declaration of 'struct fmt::v6::internal::parse_format_string(fmt::v6::basic_string_view<Char>, Handler&&)::writer' shadows a global declaration [-Wshadow]
 2442 |   struct writer {
      |          ^~~~~~
/Users/libraries/ioss/src/fmt/format.h:1703:7: note: shadowed declaration is here
 1703 | using writer = basic_writer<buffer_range<char>>;
      |       ^~~~~~
```

Since the `writer` struct is only used internally in the `parse_format_string` function, its name can be changed somewhat aribtrarily to avoid conflicts with names in an outer scope.

Note that this warning is also present in the 6.0.0 release.
2019-08-27 14:29:39 -07:00
Bruce Mitchener
ad3c7855e2 Fix typos. 2019-08-27 06:26:17 -07:00
Victor Zverovich
7512a55aa3 Update version 2019-08-26 06:23:37 -07:00
Victor Zverovich
9bd2f1f9af Temporarily disable Grisu 2019-08-26 06:11:44 -07:00
Victor Zverovich
b9815cf048 Simplify part_counter 2019-08-25 08:30:59 -07:00
Victor Zverovich
fe00cddde2 Move part counter to the namespace scope
to reduce the number of instantiations
2019-08-25 08:22:43 -07:00
Victor Zverovich
1a7d172dc7 which_value -> kind 2019-08-25 08:08:46 -07:00
Victor Zverovich
006c2546f2 Get rid of basic_prepared_format 2019-08-25 07:57:56 -07:00
Victor Zverovich
4ce006fb6e Simplify format string compilation 2019-08-25 07:48:09 -07:00
Victor Zverovich
e2e557e273 Remove preparator 2019-08-25 06:47:15 -07:00
Victor Zverovich
a5f470eb10 Test and fix compiled format_to_n and formatted_size 2019-08-25 06:38:41 -07:00
Victor Zverovich
4070c1d80b PrepareTest -> CompileTest 2019-08-25 06:22:13 -07:00
Victor Zverovich
f8b59251c4 Remove unused preparator 2019-08-24 12:48:24 -07:00
Victor Zverovich
643aa4c8c4 Simplify format string compilation 2019-08-24 09:39:40 -07:00
Victor Zverovich
ffe29a92f4 Get rid of internal::compile 2019-08-24 09:04:03 -07:00
Victor Zverovich
e94d723667 Fix compiled format string version of format_to_n 2019-08-24 09:00:30 -07:00
Victor Zverovich
a9337395a2 Remove unused variable 2019-08-24 08:46:15 -07:00
Victor Zverovich
562a9f4991 Remove parts_container_concept_check 2019-08-24 08:41:43 -07:00
Victor Zverovich
b257c56e51 Fix size types 2019-08-24 08:36:14 -07:00
Victor Zverovich
1488df3395 Bump version 2019-08-24 07:31:25 -07:00
Victor Zverovich
b918e3ff81 Fix docopt usage 2019-08-24 07:24:42 -07:00
Victor Zverovich
23b04ca6d5 Update usage instructions 2019-08-24 07:16:45 -07:00
Victor Zverovich
5d5918a74d Update usage instructions 2019-08-24 07:04:24 -07:00
Victor Zverovich
413d97b33a Fix formatting in changelog 2019-08-24 06:46:43 -07:00
Victor Zverovich
790fd90f40 Update changelog 2019-08-24 06:34:19 -07:00
Victor Zverovich
c0890be77d Update changelog 2019-08-24 06:32:47 -07:00
Victor Zverovich
5a4b24613b Update the default floating-point format docs (#1270) 2019-08-22 15:21:14 -07:00
Victor Zverovich
45dc3486fe Update license 2019-08-22 08:37:36 -07:00
Victor Zverovich
5a353fa8cf Draft license 2019-08-21 14:31:22 -07:00
Victor Zverovich
c84d227da9 Update changelog 2019-08-21 13:06:21 -07:00
Victor Zverovich
b2d4ca1546 Workaround an issue with std::filesystem::path being an infinitely deep range (#1268) 2019-08-21 11:22:59 -07:00
Samuel Debionne
2aae6b120c Fix doc for importing header only target with CMake 2019-08-14 13:59:15 -07:00
Victor Zverovich
9f09b8eed1 Fix a warning 2019-08-11 11:38:16 -07:00
Victor Zverovich
2bb8120d98 Fix a warning 2019-08-11 09:27:59 -07:00
Victor Zverovich
c1e97392be Fix warnings 2019-08-11 08:44:12 -07:00
Victor Zverovich
4e99e09bb3 Fix warnings 2019-08-10 16:56:57 -07:00
Victor Zverovich
1607a01870 Suppress a warning 2019-08-10 14:15:55 -07:00
Victor Zverovich
e8219952c6 Restrict fmt::compile to literal strings
to make sure we don't break the API too much when making all of this
compile-time only.
2019-08-10 13:18:11 -07:00
Victor Zverovich
544b537334 Update changelog 2019-08-10 10:01:23 -07:00
Victor Zverovich
83c13a1fe3 Update changelog 2019-08-10 09:56:13 -07:00
Victor Zverovich
2546dafece Update changelog 2019-08-10 09:25:16 -07:00
Victor Zverovich
02c04b1736 Update changelog 2019-08-10 07:59:33 -07:00
Victor Zverovich
5360ab0b59 Fix iteration over named arguments (#1168) 2019-08-09 11:53:07 -07:00
Victor Zverovich
b615eca964 Update changelog 2019-08-05 05:37:44 -07:00
Victor Zverovich
22a42c0b01 Cleanup compile implementation 2019-08-04 11:15:43 -07:00