llvm-project/clang/tools/c-index-test
Xing Xue 600941e34f Print NULL as "(null)" in diagnostic message
Summary:
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.

Authored By: andusy

Reviewers: hubert.reinterpretcast, xingxue, jasonliu, daltenty, cebowleratibm

Reviewed By: hubert.reinterpretcast

Subscribers: arphaman, jsji, cfe-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D63786

llvm-svn: 364462
2019-06-26 19:27:16 +00:00
..
CMakeLists.txt [clang] Switch to LLVM_ENABLE_IDE 2019-02-20 23:08:43 +00:00
c-index-test.c Print NULL as "(null)" in diagnostic message 2019-06-26 19:27:16 +00:00
core_main.cpp [libclang] Allow skipping warnings from all included files 2019-06-11 14:14:24 +00:00