[Lldb-commits] [PATCH] D151683: [clang] Enable C++11-style attributes in all language modes
Evgeny Eltsin via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 7 12:07:14 PDT 2023
eaeltsin added a comment.
Hi,
Is it a known issue, that clang doesn't compile `void foo(char *argv[] [[maybe_unused]]) {}` ?
https://godbolt.org/z/r9E81cWxh - clang fails, but gcc doesn't.
It looks like there is a lot of oss code of the form `void foo(char *argv[] ATTRIBUTE_UNUSED)`, where `ATTRIBUTE_UNUSED` was configured to `__attribute__((unused))` before this change (thus compiled ok) and to `[[maybe_unused]]` after this change (thus started to break).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151683/new/
https://reviews.llvm.org/D151683
More information about the lldb-commits
mailing list