[clang] [Clang] prevent setting default lexical access specifier for missing primary declarations (PR #112424)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 29 16:42:21 PDT 2024
================
@@ -17957,6 +17957,8 @@ Sema::ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK, SourceLocation KWLoc,
<< Name;
Invalid = true;
}
+ if (TUK == TagUseKind::Declaration && Name)
----------------
shafik wrote:
Why do we need to check `Name` as well?
https://github.com/llvm/llvm-project/pull/112424
More information about the cfe-commits
mailing list