Passing a null pointer to the printf family for a %s format specifier leads to undefined behaviour. The tests currently expect (null). Explicitly test for a null pointer and provide the expected string.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM. I have some minor style comments that could be fixed as part of the commit.
clang/tools/c-index-test/c-index-test.c | ||
---|---|---|
4648 ↗ | (On Diff #206514) | Minor nit: The blank line that was removed helps readability (at least for me). Also, FileNameStr should be declared first to match the corresponding CXStrings. |