summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/warn-nullchar-nullptr.c
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] attempt to appease buildbots after r367940George Burgess IV2019-08-051-1/+1
| | | | | | | | | | | | A buildbot got angry about this new test, with error messages like: warn-nullchar-nullptr.c Line 16: use of undeclared identifier 'u' It looks like this `u'c'` syntax was introduced in C11; I'm guessing some bots may default to something before that. Let's see if explicitly specifying the standard version makes it happy... llvm-svn: 367947
* [Sema] Add -Wpointer-compareGeorge Burgess IV2019-08-051-0/+49
This patch adds a warning that diagnoses comparisons of pointers to '\0'. This is often indicative of a bug (e.g. the user might've forgotten to dereference the pointer). Patch by Elaina Guan! Differential Revision: https://reviews.llvm.org/D65595 llvm-svn: 367940
OpenPOWER on IntegriCloud