summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/FileDistance.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2018-07-04 01:37:11 +0000
committerMichael Kruse <llvm@meinersbur.de>2018-07-04 01:37:11 +0000
commitf18adbb3cb327d119e6ba595a211afcc4a6ba196 (patch)
treee44c45564f3d195d5a68cc5ff8e938270a8c0c1f /clang-tools-extra/clangd/FileDistance.cpp
parentaeeac6d41ce2db11e5e72a21f197e46dd724950c (diff)
downloadbcm5719-llvm-f18adbb3cb327d119e6ba595a211afcc4a6ba196.tar.gz
bcm5719-llvm-f18adbb3cb327d119e6ba595a211afcc4a6ba196.zip
[Sema] Consider all format_arg attributes.
If a function has multiple format_arg attributes, clang only considers the first it finds (because AttributeLists are in reverse order, not necessarily the textually first) and ignores all others. Loop over all FormatArgAttr to print warnings for all declared format_arg attributes. For instance, libintl's ngettext (select plural or singular version of format string) has two __format_arg__ attributes. Differential Revision: https://reviews.llvm.org/D48734 llvm-svn: 336239
Diffstat (limited to 'clang-tools-extra/clangd/FileDistance.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud