[libc++] Add missing __format__ attributes
authorLouis Dionne <ldionne.2@gmail.com>
Tue, 16 Nov 2021 20:22:10 +0000 (15:22 -0500)
committerLouis Dionne <ldionne.2@gmail.com>
Fri, 26 Nov 2021 16:03:14 +0000 (11:03 -0500)
commit7dc9a03cfd789e6a08ca96666e9fbb81431eb34f
tree249617bf3a23e5ebdca29fee35ef536a91244c9a
parent0df522969a7a0128052bd79182c8d58e00556e2f
[libc++] Add missing __format__ attributes

-Wformat-nonliteral was turned on in https://reviews.llvm.org/D112927,
however we forgot to apply some __format__ attributes in Linux specific
code paths, which led to warnings when building on Linux. This patch
addresses that oversight.

Differential Revision: https://reviews.llvm.org/D113876
libcxx/include/__bsd_locale_fallbacks.h
libcxx/include/__config
libcxx/src/filesystem/filesystem_common.h