We distinguish by case, assuming a::b:: is a namespace and a::B:: is a class.
Crude, but be a significant improvement over assuming it's always a namespace.
(Motivating case from clangd: clangd::CommandMangler::detect()).
Paths
| Differential D120616
[clangd] IncludeFixer: resolve Class in ns::Class::method(); Needs ReviewPublic Authored by sammccall on Feb 26 2022, 7:22 AM.
Details
Summary We distinguish by case, assuming a::b:: is a namespace and a::B:: is a class. (Motivating case from clangd: clangd::CommandMangler::detect()).
Diff Detail
Revision Contents
Diff 411613 clang-tools-extra/clangd/IncludeFixer.cpp
clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
|