Open llvmbot opened 6 years ago
template class C{}; template class D{}; D<C> f; ^ Loc points here.
Calling Lexer::getLocForEndOfToken(Loc, 0, Context.getSourceManager(), Context.getLangOpts());
Returns the source location indicated below.
template class C{}; template class D{}; D<C> f; ^
I move this bug to the clang frontend, as the Lexer is part of that and the problem is not CTE specific.
Extended Description
template class C{};
template class D{};
D<C> f;
^
Loc points here.
Calling Lexer::getLocForEndOfToken(Loc, 0, Context.getSourceManager(),
Context.getLangOpts());
Returns the source location indicated below.
template class C{};
template class D{};
D<C> f;
^