[libcxx-commits] [PATCH] D112374: [clang] Implement ElaboratedType sugaring for types written bare

Richard Trieu via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 29 21:49:34 PDT 2022


rtrieu added inline comments.


================
Comment at: clang/lib/AST/QualTypeNames.cpp:455
+  if (const auto *UT = QT->getAs<UsingType>()) {
+    return getFullyQualifiedType(UT->getUnderlyingType(), Ctx,
+                                 WithGlobalNsPrefix);
----------------
Moving this down here means when the ElaboratedType is stripped off, its Qualifers aren't preserved in the underlying type.  rGfb7fa27f92ca has a fix to reattach the discarded Qualifiers.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112374/new/

https://reviews.llvm.org/D112374



More information about the libcxx-commits mailing list