[all-commits] [llvm/llvm-project] fb7fa2: Preserve qualifiers when getting fully qualified type

Richard Trieu via All-commits all-commits at lists.llvm.org
Fri Jul 29 19:48:12 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fb7fa27f92caf10315d3fb7def99affb71b4fe44
      https://github.com/llvm/llvm-project/commit/fb7fa27f92caf10315d3fb7def99affb71b4fe44
  Author: Weverything <rtrieu at google.com>
  Date:   2022-07-29 (Fri, 29 Jul 2022)

  Changed paths:
    M clang/lib/AST/QualTypeNames.cpp
    M clang/unittests/Tooling/QualTypeNamesTest.cpp

  Log Message:
  -----------
  Preserve qualifiers when getting fully qualified type

15f3cd6bfc670ba6106184a903eb04be059e5977 moved the handling of UsingType
to a later point in the function getFullyQualifiedType.  This moved it
after the removal of an ElaboratedType and its qualifiers.  However,
the qualifiers were not added back, causing the fully qualified type to
have a qualifier mismatch with the original type.  Make sure the
qualifers are added before continuing to fully qualify the type.




More information about the All-commits mailing list