David Robillard
d101d92694
Format all code with clang-format
2 years ago
David Robillard
8a93d0b3be
Avoid "else" after "break" and "return"
2 years ago
David Robillard
19d8a055ff
Fix documentation page width
2 years ago
David Robillard
5cb9eaf3d9
Remove old Doxygen configuration
2 years ago
David Robillard
f95f22013d
Generate documentation with Sphinx
2 years ago
David Robillard
fabf711348
Fix build on ancient GCC
2 years ago
David Robillard
a89a3dfac5
Add test for attempting to convert a non-file URI to a path
2 years ago
David Robillard
0ca210bc00
Don't install API man pages
...
These weren't particularly useful, and the project will be migrating away from
Doxygen entirely anyway. The serdi man page, which is manually written, of
course remains.
2 years ago
David Robillard
c3e339a0d2
Clean up includes
2 years ago
David Robillard
d3723c7ef9
Suppress new clang-tidy warnings
2 years ago
David Robillard
ea5778afa3
Fix nullable annotations on allocating function return values
2 years ago
David Robillard
aac7b8d830
Fix broken links in documentation
3 years ago
David Robillard
b1991fe876
Port serd_bench.py to argparse
3 years ago
David Robillard
47cc010e25
Strengthen null annotation on serd_env_get_base_uri()
3 years ago
David Robillard
72d696f66e
Run flake8 on serd_bench.py
3 years ago
David Robillard
1b8dafe596
Format serd_bench.py with black
3 years ago
David Robillard
7d1b98ad1b
Move benchmark script to scripts subdirectory
3 years ago
David Robillard
2ddd39e588
Only use aligned_alloc in C11
3 years ago
David Robillard
5c1130819c
Deprecate serd_uri_to_path()
3 years ago
David Robillard
2bf875e89f
Refuse to write relative URI references to NTriples
3 years ago
David Robillard
6be4a34047
Simplify abbreviated URI writing code
3 years ago
David Robillard
d4973df795
Make sanitizer failures fatal on CI
3 years ago
David Robillard
31d5e871cb
Do sanitize run on CI in a single job
3 years ago
David Robillard
18949858d9
Fix test coverage
3 years ago
David Robillard
d63f832e64
Remove tests that pass null to nonnull parameters
3 years ago
David Robillard
ce9ee54f21
Add failure test for unescaped quotes in URIs
3 years ago
David Robillard
49bee1f121
Remove dead code
3 years ago
David Robillard
9256bf1de4
Improve documentation
3 years ago
David Robillard
65d6229274
Simplify writer statement validity checking
3 years ago
David Robillard
e04aa68fb7
Use line comment
3 years ago
David Robillard
f6f04c10eb
Suppress simple test output
3 years ago
David Robillard
ccdafafb81
Improve IRI reading performance
...
This allows the compiler to construct a jump table, and avoids a branch.
3 years ago
David Robillard
41130751fb
Improve documentation summary for SerdEnv
3 years ago
David Robillard
f63257a60c
Improve add and chop prefix functions when given empty strings
3 years ago
David Robillard
353b92d13d
Remove use of C character class functions that may use locale
...
Some of these cause warnings, and should never have been used in the first
place since they depend on locale.
3 years ago
David Robillard
3558d21c92
Use line comments where appropriate and clean up header
3 years ago
David Robillard
dddc46b13f
Allow setting the base URI of an Env to NULL
3 years ago
David Robillard
febc0828f2
Use aligned allocation via C11 or Windows API where possible
3 years ago
David Robillard
beed84b631
Use C11 if possible
3 years ago
David Robillard
a815f33ec3
Relax nullability annotation on allocation functions
...
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.
3 years ago
David Robillard
1319a748cb
Add missing const qualifiers
3 years ago
David Robillard
d9a475252b
Factor out output style selection
3 years ago
David Robillard
67fcacbb1c
Suppress nullability warnings in tests
3 years ago
David Robillard
844643649e
Use built-in abspath()
3 years ago
David Robillard
793e353941
Set up environment for using serdi as a subproject
3 years ago
David Robillard
bacd257453
Disable coverage on sanitizer CI row
3 years ago
David Robillard
41b89cc1e4
Fix link errors with sanitizers at the source in autowaf
3 years ago
David Robillard
19aa10dd3f
Fix build as a subproject
3 years ago
David Robillard
fe8a83ecda
Clean up attributes in reference documentation
...
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.
3 years ago
David Robillard
79d1142252
Add CI row to run clang sanitizers
...
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.
3 years ago