llvm/llvm-project

clang-tidy: fully qualify names from a given namespace (e.g. clean up `using namespace std;`)

Open

#64.441 geöffnet am 4. Aug. 2023

Auf GitHub ansehen
 (13 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C++ (10.782 Forks)batch import
check-requestclang-tidygood first issue

Repository-Metriken

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

Beschreibung

I'd like a clang-tidy check that transforms unqualified names to their fully qualified forms, such that high-level declarations of using namespace foo; could be safely removed.

The leading use case is code that was written with using namespace std; in a common header, and hence lots of declarations that reference standard library types and functions without qualification.

Contributor Guide