================
@@ -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;
----------------
AaronBallman wrote:

```suggestion
    return !SD->hasBraces();
```

https://github.com/llvm/llvm-project/pull/93913
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to