[Lldb-commits] [clang] [lldb] [clang][AST] fix ast-print of extern <lang> with >=2 declarators, fixed (PR #93913)
Artem Yurchenko via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 17 12:10:07 PDT 2024
================
@@ -576,13 +576,19 @@ template <typename T> static bool isFirstInExternCContext(T *D) {
return First->isInExternCContext();
}
-static bool isSingleLineLanguageLinkage(const Decl &D) {
- if (const auto *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext()))
+static bool isUnbracedLanguageLinkage(const DeclContext *DC) {
+ if (!DC)
+ return false;
+ if (const auto *SD = dyn_cast<LinkageSpecDecl>(DC))
if (!SD->hasBraces())
return true;
----------------
temyurchenko wrote:
Will do.
https://github.com/llvm/llvm-project/pull/93913
More information about the lldb-commits
mailing list