llvm/llvm-project
Voir sur GitHubguarded_by attributes not supported using c++11 style
Open
#158 116 ouverte le 11 sept. 2025
clang:frontendgood first issue
Métriques du dépôt
- Stars
- (26 378 stars)
- Métriques de merge PR
- (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)
Description
#include <mutex>
class Foo {
std::mutex m;
int y __attribute__((guarded_by(m)));
int z [[clang::guarded_by(m)]];
};
<source>:6:13: warning: unknown attribute 'clang::guarded_by' ignored [-Wunknown-attributes]
6 | int z [[clang::guarded_by(m)]];
| ^~~~~~~~~~~~~~~~~