Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-11-13 | Make sanitizer failures fatal on CI | David Robillard | 1 | -3/+3 | |
2020-11-13 | Do sanitize run on CI in a single job | David Robillard | 1 | -7/+3 | |
2020-11-13 | Fix test coverage | David Robillard | 1 | -9/+7 | |
2020-11-13 | Remove tests that pass null to nonnull parameters | David Robillard | 2 | -8/+4 | |
2020-11-13 | Add failure test for unescaped quotes in URIs | David Robillard | 2 | -0/+7 | |
2020-11-13 | Remove dead code | David Robillard | 2 | -22/+0 | |
2020-11-13 | Improve documentation | David Robillard | 1 | -19/+36 | |
2020-11-13 | Simplify writer statement validity checking | David Robillard | 1 | -5/+3 | |
2020-11-13 | Use line comment | David Robillard | 1 | -3/+1 | |
2020-11-13 | Suppress simple test output | David Robillard | 1 | -1/+1 | |
2020-11-13 | Improve IRI reading performance | David Robillard | 1 | -10/+13 | |
This allows the compiler to construct a jump table, and avoids a branch. | |||||
2020-11-13 | Improve documentation summary for SerdEnv | David Robillard | 1 | -6/+1 | |
2020-11-13 | Improve add and chop prefix functions when given empty strings | David Robillard | 2 | -8/+10 | |
2020-11-13 | Remove use of C character class functions that may use locale | David Robillard | 4 | -6/+16 | |
Some of these cause warnings, and should never have been used in the first place since they depend on locale. | |||||
2020-11-13 | Use line comments where appropriate and clean up header | David Robillard | 1 | -222/+115 | |
2020-11-13 | Allow setting the base URI of an Env to NULL | David Robillard | 2 | -3/+12 | |
2020-11-13 | Use aligned allocation via C11 or Windows API where possible | David Robillard | 6 | -13/+72 | |
2020-11-12 | Use C11 if possible | David Robillard | 3 | -1/+5 | |
2020-11-12 | Relax nullability annotation on allocation functions | David Robillard | 1 | -3/+5 | |
In practice almost nobody checks for failed allocation, including unfortunately the serd tests and serdi itself. Adding a struct mode to conditionally define this would be a good idea to support allocation-hardened code, but for now just mark them as unspecified instead. On the bright side, this documents the nature of the returned pointers nicely. | |||||
2020-11-12 | Add missing const qualifiers | David Robillard | 1 | -4/+4 | |
2020-11-12 | Factor out output style selection | David Robillard | 1 | -22/+34 | |
2020-11-12 | Suppress nullability warnings in tests | David Robillard | 1 | -0/+1 | |
2020-11-12 | Use built-in abspath() | David Robillard | 1 | -1/+1 | |
2020-11-11 | Set up environment for using serdi as a subproject | David Robillard | 1 | -0/+9 | |
2020-11-11 | Disable coverage on sanitizer CI row | David Robillard | 1 | -1/+1 | |
2020-11-11 | Fix link errors with sanitizers at the source in autowaf | David Robillard | 2 | -6/+0 | |
2020-11-11 | Fix build as a subproject | David Robillard | 1 | -5/+7 | |
2020-11-11 | Clean up attributes in reference documentation | David Robillard | 1 | -1/+5 | |
This is a bit unfortunate since they are quite useful as documentation, but unfortunately Doxygen (as usual) doesn't manage to format things nicely, and the noise makes the summaries unreadable. | |||||
2020-11-11 | Add CI row to run clang sanitizers | David Robillard | 2 | -0/+24 | |
Some of these are also supported by GCC, but clang supports more and clang on Linux was uncovered before anyway, so this fixes that situation as well. | |||||
2020-11-11 | Add nonnull and nullable attributes to API | David Robillard | 5 | -183/+226 | |
This will warn if NULL is passed to any nonnull-annotated parameter, and is also supported by sanitizers which can check for violations at runtime. Unfortunately, it is currently only supported by clang. GCC has a similar feature in the nonnull attribute, but this has a different syntax (it's a function attribute) and is more dangerous since it is used by the optimizer to assume a null pointer is undefined behavior. This one just warns and still allows code to handle the situation gracefully, which I think is more appropriate for a library API. Note that this optimization behavior is not some unlikely edge case: switching these attributes to the GCC one will break release builds. | |||||
2020-11-10 | Fix potential memory error when serialising URIs | David Robillard | 2 | -2/+4 | |
2020-11-10 | Fix memory leak in chunk reading test | David Robillard | 1 | -0/+1 | |
2020-11-10 | Add const, pure, and malloc function attributes | David Robillard | 9 | -18/+56 | |
2020-11-10 | Simplify visibility boilerplate | David Robillard | 1 | -13/+6 | |
2020-11-10 | Fix warnings in MinGW build | David Robillard | 1 | -0/+3 | |
2020-11-10 | Fix header installation | David Robillard | 1 | -1/+1 | |
2020-11-10 | Define WIN32_LEAN_AND_MEAN | David Robillard | 1 | -0/+1 | |
2020-11-09 | Add a test for reading strings with no trailing newline | David Robillard | 1 | -0/+23 | |
2020-11-09 | Use separate clang-tidy configurations for implementation and tests | David Robillard | 2 | -4/+9 | |
2020-11-09 | Split out reader and writer tests | David Robillard | 3 | -169/+207 | |
2020-11-09 | Split out string tests | David Robillard | 3 | -32/+66 | |
2020-11-09 | Split out URI tests | David Robillard | 3 | -137/+174 | |
2020-11-09 | Rename unit tests to start with a consistent prefix | David Robillard | 5 | -8/+8 | |
2020-11-09 | Fix clang-tidy hicpp-signed-bitwise warnings in header | David Robillard | 2 | -16/+16 | |
In exchange for suppressing a pointless superficial warning instead, but I dislike that convention since it looks confusing when hex digits are used and it's inconsistent with near-universal floating point suffix convention. | |||||
2020-11-09 | Check headers with stricter clang-tidy settings | David Robillard | 2 | -1/+10 | |
2020-11-09 | Move header to conventional include directory | David Robillard | 4 | -6/+7 | |
2020-11-09 | Rename test directory | David Robillard | 1184 | -32/+38 | |
2020-10-28 | Simplify reader byte reading interface | David Robillard | 1 | -10/+3 | |
This eliminates eat_byte() and the way it conflates the status of advancing the source with the current character, which can cause problems with custom sinks. | |||||
2020-10-27 | Update autowaf | David Robillard | 1 | -0/+0 | |
2020-10-27 | Update autowaf | David Robillard | 2 | -2/+2 | |