Skip to content

Commit 5a7e109

Browse files
committed
Revert "[clang] Add frontend flag to enable support for broken external resugarers (#103219)"
This partially reverts commit 661dda9. The flag itself is left with no effect, to be removed in a later patch, in order to help with the transition.
1 parent 789dfa2 commit 5a7e109

File tree

2 files changed

+3
-27
lines changed

2 files changed

+3
-27
lines changed

clang/lib/Sema/SemaTemplate.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3531,16 +3531,10 @@ QualType Sema::CheckTemplateIdType(TemplateName Name,
35313531
if (Pattern->isInvalidDecl())
35323532
return QualType();
35333533

3534-
// Only substitute for the innermost template argument list. NOTE: Some
3535-
// external resugarers rely on leaving a Subst* node here. Make the
3536-
// substitution non-final in that case. Note that these external resugarers
3537-
// will still miss some information in this representation, because we don't
3538-
// provide enough context in the Subst* nodes in order to tell different
3539-
// template type alias specializations apart.
3534+
// Only substitute for the innermost template argument list.
35403535
MultiLevelTemplateArgumentList TemplateArgLists;
3541-
TemplateArgLists.addOuterTemplateArguments(
3542-
Template, CTAI.SugaredConverted,
3543-
/*Final=*/!getLangOpts().RetainSubstTemplateTypeParmTypeAstNodes);
3536+
TemplateArgLists.addOuterTemplateArguments(Template, CTAI.SugaredConverted,
3537+
/*Final=*/true);
35443538
TemplateArgLists.addOuterRetainedLevels(
35453539
AliasTemplate->getTemplateParameters()->getDepth());
35463540

clang/test/AST/ast-dump-retain-subst-template-type-parm-type-ast-nodes.cpp

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)