llvm/llvm-project

We should probably warn at how 'static inline' variables are odd at namespace scope.

Open

#48.977 geöffnet am 18. März 2021

Auf GitHub ansehen
 (10 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C++ (10.782 Forks)batch import
bugzillac++17clang:diagnosticsconfirmedgood first issue

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide