]> granicus.if.org Git - clang/commit
Fix parsing of privacy annotations in os_log format strings.
authorAkira Hatanaka <ahatanaka@apple.com>
Tue, 10 Jul 2018 00:50:25 +0000 (00:50 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Tue, 10 Jul 2018 00:50:25 +0000 (00:50 +0000)
commitc6a6cc59273c246d9e578e7d6a9b56be87c232bc
tree074469786bc5805b61062ceee06abba920f04fd4
parentba066d5d857128bff3ea63ff9cd504945c23ef26
Fix parsing of privacy annotations in os_log format strings.

Privacy annotations shouldn't have to appear in the first
comma-delimited string in order to be recognized. Also, they should be
ignored if they are preceded or followed by non-whitespace characters.

rdar://problem/40706280

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336629 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/PrintfFormatString.cpp
test/CodeGen/builtins.c