[clang-tools-extra] [clangd] Omit C++ access specifiers from C hovers (PR #239877)
James Cowsert via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 7 14:51:06 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]];
----------------
J-Cowsert wrote:
Removed the unused range annotations in 55485733ec51d2f9e0d010174c87da45dc2026ef
https://github.com/llvm/llvm-project/pull/239877
More information about the cfe-commits
mailing list