llvm/llvm-project
Voir sur GitHubWe should probably warn at how 'static inline' variables are odd at namespace scope.
Open
#48 977 ouverte le 18 mars 2021
bugzillac++17clang:diagnosticsconfirmedgood 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
| Bugzilla Link | 49633 |
| Version | unspecified |
| OS | All |
| CC | @serberoth,@zygoloid,@TH3CHARLie |
Extended Description
" static inline int A; "
seems a little silly, as 'inline' means 'make this definition mergeable', and static means 'this is a unique definition'. It seems that some sort of warning that questions why someone would do this is valuable.