aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
11 daysRemove old Windows compatibility gunkDavid Robillard1-9/+0
11 daysFix widening conversions after arithmeticDavid Robillard1-1/+1
Overflow isn't actually possible here, but this avoids the issue statically in a way that won't trigger analysis tools.
11 daysEnsure success of fclose() for writable files in testsDavid Robillard3-8/+10
11 daysInvert condition to make lack of underflow more obviousDavid Robillard1-3/+3
11 daysAvoid assignments in assert statementsDavid Robillard1-5/+9
The ways these tests are written fundamentally requires assertions to always run, but some tools like to warn about it anyway, so avoid obvious cases.
2024-11-23Use angle brackets for library includesDavid Robillard27-28/+29
2024-11-22Use more conventional command-line help formattingDavid Robillard1-14/+14
2024-11-22Quote email addresses in man pagesDavid Robillard1-1/+1
2024-11-12Move warning suppression flags to main meson fileDavid Robillard2-109/+89
2024-10-31Update main branch nameDavid Robillard1-1/+1
2024-10-06Clean up lint test definitionsmasterDavid Robillard1-22/+20
2024-10-06Check all sources in clang-format testDavid Robillard1-6/+12
2024-10-06Relocate lint test definitionsDavid Robillard1-135/+135
Towards reusing source lists for checks across all the code (not just the library sources).
2024-10-06Remove redundant default values for meson optionsDavid Robillard1-6/+6
2024-09-28Add clang-format lint testDavid Robillard2-1/+12
2024-09-28Add cppcheck lint testDavid Robillard4-0/+31
2024-09-27Reorder branch to avoid redundant assignmentDavid Robillard1-4/+4
Well, to make it obvious to cppcheck that it's not redundant, anyway.
2024-09-27Fix potential null dereferenceDavid Robillard1-1/+1
2024-09-27Make more pointer variables constDavid Robillard4-11/+12
2024-09-27Make function parameters const wherever possibleDavid Robillard14-130/+151
The early history of this code didn't tend to make parameters const, but the "const density" is high enough now that I often find myself wondering if something is mutable for some reason, or just old and sloppier. So, eliminate this confusion by making (hopefully) all function parameters const if possible.
2024-09-27Clean up and update clang-format configurationDavid Robillard3-26/+22
Fix "SERD_CONST_FINC" typo, add the other function attributes, and sort all fields.
2024-09-27Use tighter types for UTF-8David Robillard3-16/+16
2024-09-27Remove unnecessary stdio.h includesDavid Robillard2-4/+3
2024-09-21Remove pointless and inconsistent printing from unit testsDavid Robillard5-10/+0
2024-09-21Factor out test runner script argument and output parsingDavid Robillard4-46/+41
2024-09-01Use a consistent naming scheme for test helper functionsDavid Robillard3-101/+76
2024-08-03Fix reading chunks from files without trailing newlinesDavid Robillard4-17/+20
2024-08-03Cover bulk and byte-wise reading in reader EOF testDavid Robillard1-4/+11
2024-08-03Avoid bumping cursor column on EOFDavid Robillard1-2/+3
2024-07-16Suppress new warnings in clang and clang-tidy 18David Robillard3-1/+8
2024-06-27Split out simple reader unit testsDavid Robillard3-341/+441
Some of the simpler tests here only test the reader directly, while others are higher level tests that test both the writer and reader together. Split the simple reader-only tests into a separate file so things can be cleaned up and simplified for each kind of test.
2024-06-26Factor out URI prefix in some testsDavid Robillard2-25/+28
2024-06-25Simplify token comparison in readerDavid Robillard2-15/+22
"Simplify" in terms of the operations actually performed. Since we only need to test for equality here, a simpler comparison with less branching will do.
2024-06-25Reduce size of character classification codeDavid Robillard3-121/+24
2024-06-25Improve test suite coverageDavid Robillard16-21/+200
2024-06-25Fix rewriting special literals when datatype URIs are prefixed namesDavid Robillard2-16/+32
2024-06-25Clean up redundant and/or inconsistent conditionalsDavid Robillard4-27/+19
2024-06-25Replace questionable switch statements with shorter conditionalsDavid Robillard7-97/+30
2024-06-25Fix overly permissive parsing of syntax names on the command lineDavid Robillard5-12/+19
2024-06-24Write blank lines between graphs and statements in TriGDavid Robillard3-5/+16
2024-06-24Clean up nonnull parameter assertionsDavid Robillard5-3/+32
2024-06-23Gracefully handle failure to terminate written anonymous nodesDavid Robillard2-14/+44
This case shouldn't be reachable when driven directly from a reader, but can be reached by invalid use of the writer in an application.
2024-06-23Gracefully handle errors while writing the end of anonymous nodesDavid Robillard2-2/+3
2024-06-23Fix writer cleanup testDavid Robillard1-8/+18
Because nodes are shallow, this wasn't actually writing a stack of nested objects. Fix the blank node ping-pong algorithm so that it does.
2024-06-23Simplify pylint test definitionDavid Robillard1-4/+3
2024-06-23Check that header has zero code complexityDavid Robillard1-1/+4
2024-06-23Remove redundant test manifest entryDavid Robillard1-1/+0
2024-06-22Format CSS with prettier and update sylelint configurationDavid Robillard3-32/+98
2024-06-22Strengthen clang-tidy configurationDavid Robillard2-4/+10
2024-06-22Avoid non-enum switches with missing default casesDavid Robillard2-25/+25