llvm/llvm-project

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

Open

#64.441 aperta il 4 ago 2023

Vedi su GitHub
 (13 commenti) (0 reazioni) (1 assegnatario)C++ (10.782 fork)batch import
check-requestclang-tidygood first issue

Metriche repository

Star
 (26.378 star)
Metriche merge PR
 (Merge medio 1g 2h) (1000 PR mergiate in 30 g)

Descrizione

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.

Guida contributor