aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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
2024-06-09Add missing entries to "good" test manifestDavid Robillard1-6/+18
2024-06-09Treat out of range unicode characters as errorsDavid Robillard7-10/+12
2024-06-09Add test cases for special characters in local namesDavid Robillard6-1/+59
2024-06-07Add test cases for lax TriG parsingDavid Robillard4-0/+38
2024-06-07Add test case for bad graph URIs in NQuadsDavid Robillard2-2/+2
2024-06-06Fix documentation buildDavid Robillard1-1/+2
2024-06-04Suppress new warnings in clang-tidy 17David Robillard3-3/+6
2024-03-29Use unsigned constants for all explicit enumerator valuesDavid Robillard2-5/+6
2024-03-29Remove redundant enumerator valuesDavid Robillard1-5/+5
2024-03-29Add NTriples test cases for bad blank nodes and trailing garbageDavid Robillard3-0/+14
2024-03-29Fix lax NQuads parsingDavid Robillard15-30/+107
2024-03-29Support reading lone lists in lax modeDavid Robillard5-2/+13
This allows parsing documents like "(42) ."
2024-03-28Add assertions for all non-null pointers in the public APIDavid Robillard9-0/+106
2024-03-16Relax some pointer nullability annotations in the APIDavid Robillard1-28/+30
Opaque handles should be just that, opaque. I can't see a good reason to care about the nullability of opaque callback handles, at least statically. That's the business of the callback function. Similarly, output pointer parameters were over-specified.