Martchus
6dcd39f1ac
Set CXX_STANDARD on header-only lib target for Qt Creator
5 years ago
Martchus
3a6bbb0115
Allow enabling GUI config even when no specific sources present
...
Useful when GUI specific code is only wrapped using #ifdef so
there are no extra files.
5 years ago
Martchus
79679c0f42
Improve fake target for Qt Creator
...
This target is required so files for header-only libs
show up in Qt Creator. So far it was just a custom target.
However, this way include directories and build flags are
not correctly passed to the code model. So creating an
actual library now.
5 years ago
Martchus
27d5041e06
Add Traits::IsSpecializingAnyOf
5 years ago
Martchus
0fb92e3685
Add Traits::None
5 years ago
Martchus
7b01938ece
Add {TimeSpan,DateTime}::ticks() for easier read/write
5 years ago
Martchus
e0fee70d58
Print vector<char> and similar in hex notation on assert fail
5 years ago
Martchus
0c7e7eb91d
Fix BinaryReader::read(int32 &one32BitInt)
5 years ago
Martchus
30adb1bc47
Add Traits::IsResizable
5 years ago
Martchus
e4bf7142f5
Add Traits::Is{Any,None}Of
5 years ago
Martchus
5deb077fe5
Extend Binary{Reader,Writer} to ease binary (de)serialization
...
To implement reflection-enabled binary (de)serialization
in https://github.com/Martchus/reflective-rapidjson .
5 years ago
Martchus
b77607f3e0
Rename META_REQUIRED_FEATURES
...
Because those features are actually not required.
5 years ago
Martchus
52734ebf51
Make use of thread_local optional
...
Because it doesn't seem to be implemented for
apple-darwin targets.
5 years ago
Martchus
4a69db787d
Allow to create header for feature detection
...
The header will only contain some preprocessor conditions.
CMake will *not* do checks with the current compiler.
5 years ago
Martchus
a21ed51505
Improve coding style in toFloat{32,64}() functions
...
* Use const
* Don't duplicate BE/LE branches
5 years ago
Martchus
d174f3f157
Make toInt() functions constexpr
5 years ago
Martchus
7125e52e87
Make error messages in stringconversion.h more verbose
5 years ago
Martchus
f4920abebc
Fix thread-safety of character set conversion functions
5 years ago
Martchus
5bc2ca87e0
Don't use size factor for conversion from UTF-8 to Latin-1
5 years ago
Martchus
d9f2ad7260
Fix warnings in character set conversion functions
5 years ago
Martchus
89a4c2f33a
Skip suggestions for pre-defined values if none assigned
5 years ago
Martchus
b69b841fa3
Prevent huge memory allocation for Damerau-Levenshtein algo
5 years ago
Martchus
5e8d8cb7d1
Show dashes in suggestions
5 years ago
Martchus
24720bbbc1
Fix passing cursor position to findSuggestions()
5 years ago
Martchus
5eb3e2aa75
Fix suggestion if only one available
5 years ago
Martchus
1aa8b387e1
Apply clang-format
5 years ago
Martchus
f0b777207e
Fix dependency version under GCC 8
5 years ago
Martchus
a4435bbcf3
Fix usage of enable_if with GCC 8
...
Seems like the trick with the three dots isn't working
with GCC 8 anymore. So let's make it a default template
parameter then.
Not sure whether GCC 8 is here correct and whether this
workaround causes further trouble.
5 years ago
Martchus
8ef92cbf47
Use Levenshtein algo to provide suggestions if arg not found
5 years ago
Martchus
44f0206a13
Refactor ArgumentReader::read()
...
* Use return-code for error handling
* Improve documentation/comments
* Improve const correctness
5 years ago
Martchus
0e8dcbecae
Refactor value completion in ArgumentParser::printBashCompletion()
5 years ago
Martchus
872ee49979
Refactor ArgumentParser::printBashCompletion()
5 years ago
Martchus
3c04514649
Ensure stack-allocated distance array is initialized
5 years ago
Martchus
14f906cc6b
Update README.md
5 years ago
Martchus
429de98836
Add algorithm for computing Damerau–Levenshtein distance
5 years ago
Martchus
034b8a75d1
Add min(), max() for any number of arguments
5 years ago
Martchus
c26e84ff8c
Add TODOs for math utilities
5 years ago
Martchus
25057fa8e3
Add MultiArray class which provides an N-dimensional array
5 years ago
Martchus
52bf075317
Move creation of srcdirref and testfiles dir to BasicConfig
...
Those make testing more convenient and are also useful when
there's no test target, eg. when testing syncthingtray with
mocked configuration.
5 years ago
Martchus
94e76f5a1a
Add experimental methods to convert argument values
...
* Currently lacks error handling
* Needs testing
5 years ago
Martchus
26a286a7db
Prevent installation of private header
5 years ago
Martchus
c8bf068e74
Reorder method declarations in Argument and ArgumentParser
...
So it becomes clear which parts might be moved to a separate class
to prevent Argument from becoming to big.
5 years ago
Martchus
64be5bce63
Document the whole story behind catchiofailure.cpp
5 years ago
Martchus
51e87f3740
Don't wrongly detect libstdc++ 6.4 as >= 7
...
6.4 has been release after 20170502 but still throws
ios_base::failure with old ABI. It is not a good idea
to use the timestamp to distinguish release versions.
Note that _GLIBCXX_RELEASE is not defined in older
GCC versions. But if the macro is not present, we also
know that it will throw the old version.
5 years ago
Martchus
557856dc5c
Apply clang-format
5 years ago
Martchus
8bc3cf9615
Add phrase for overriding current line
5 years ago
Martchus
76ee4a158b
Add color overload for ANSI escape codes
5 years ago
Martchus
e2e4b4641f
Add EscapeCodes::Strikethrough
5 years ago
Martchus
df7a3ee93c
Apply clang-format from LLVM 6
5 years ago
Martchus
7cafdd551e
Fix wrong negation to enable Doxygen target
5 years ago