Rephrase VisitTemplateName comment

Rephrase a little and fix typo.
This commit is contained in:
Kim Gräsman 2023-01-06 15:14:30 +01:00
parent cced95dba5
commit 711a4bd008
1 changed files with 3 additions and 2 deletions

View File

@ -4132,8 +4132,9 @@ class IwyuAstConsumer
bool VisitTemplateName(TemplateName template_name) {
if (CanIgnoreCurrentASTNode()) return true;
if (!Base::VisitTemplateName(template_name)) return false;
// We can see TemplateName not in the context of aTemplateSpecializationType
// when it's either the default argument of a template template arg:
// We can see TemplateName outside the context of a
// TemplateSpecializationType when it's either the default argument of a
// template template arg:
// template<template<class T> class A = TplNameWithoutTST> class Foo ...
// or a deduced template specialization:
// std::pair x(10, 20); // type of x is really std::pair<int, int>