aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorSebastian Poeplau <poeplau@adacore.com>2023-11-24 17:11:17 +0100
committerGitHub <noreply@github.com>2023-11-24 21:41:17 +0530
commit7091ca1ae3a87479b6febdf1c3a324d707c633d9 (patch)
treed3d6e3cea03f385af4d4b7ae763e186aac7da92b /clang/lib/Sema/SemaCodeComplete.cpp
parente9fdb965f9b016d5df819969f37c49a8075e70b6 (diff)
downloadllvm-7091ca1ae3a87479b6febdf1c3a324d707c633d9.zip
llvm-7091ca1ae3a87479b6febdf1c3a324d707c633d9.tar.gz
llvm-7091ca1ae3a87479b6febdf1c3a324d707c633d9.tar.bz2
[clang] Add missing LinkageSpec case to getCursorKindForDecl (#72401)
The LinkageSpec case was omitted, and there is a declared CXCursor_Kind for it. Adapt the testsuite drivers to print mangled names for declarations with extern linkage. Also update the test baseline for the recursive-cxx-member-calls.cpp test. Co-authored-by: Matthieu Eyraud <eyraud@adacore.com>
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
-rw-r--r--clang/lib/Sema/SemaCodeComplete.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp
index 3355336..6169144 100644
--- a/clang/lib/Sema/SemaCodeComplete.cpp
+++ b/clang/lib/Sema/SemaCodeComplete.cpp
@@ -4165,6 +4165,9 @@ CXCursorKind clang::getCursorKindForDecl(const Decl *D) {
case Decl::Concept:
return CXCursor_ConceptDecl;
+ case Decl::LinkageSpec:
+ return CXCursor_LinkageSpec;
+
default:
if (const auto *TD = dyn_cast<TagDecl>(D)) {
switch (TD->getTagKind()) {