[clang-tools-extra] [clangd] Omit C++ access specifiers from C hovers (PR #239877)
Aleksandr Platonov via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 7 03:57:00 PST 2026
================
@@ -1645,6 +1645,50 @@ TEST(Hover, DefinitionLanuage) {
}
}
+TEST(Hover, AccessSpecifierByLanguage) {
+ struct {
+ const char *const Code;
+ const std::string ClangLanguageFlag;
+ const char *const ExpectedAccessSpecifier;
+ } Cases[] = {
+ {R"cpp(
+ struct Waldo {
+ int [[loca^tion]];
----------------
ArcsinX wrote:
We never use ranges in this test checks
https://github.com/llvm/llvm-project/pull/239877
More information about the cfe-commits
mailing list