[clang] [Clang] Fix false positive -Wignored-qualifiers (PR #169664)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 26 07:23:47 PST 2025
================
@@ -5068,7 +5068,8 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state,
// class type in C++.
if ((T.getCVRQualifiers() || T->isAtomicType()) &&
!(S.getLangOpts().CPlusPlus &&
- (T->isDependentType() || T->isRecordType()))) {
+ (T->isDependentType() || T->isRecordType() ||
----------------
erichkeane wrote:
Both of these checks are pretty subtle( in both places!) can we get a comment explaining what they are there for, and why it is the right list?
https://github.com/llvm/llvm-project/pull/169664
More information about the cfe-commits
mailing list