This is an archive of the discontinued LLVM Phabricator instance.

Fix source loc for tokens that immediately follow an escaped newline
Needs ReviewPublic

Authored by bmoody on Oct 3 2018, 5:22 PM.

Details

Reviewers
rsmith
Summary

Previously the location of a token immediately following an escaped newline was the location of the backslash character in the escaped newline.

The change to test/SemaTemplate/instantiation-depth.cpp is to work around a side-effect of this fix - the expected-error comment was getting the location of the backslash on the previous line before. I added the extra slashes so that the comment starts on the correct line.

Diff Detail

Event Timeline

bmoody created this revision.Oct 3 2018, 5:22 PM