summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/source-col-map.c
Commit message (Collapse)AuthorAgeFilesLines
* This test requires UTF-8 output to print the UT-8 characters.Yaron Keren2015-09-111-0/+1
| | | | llvm-svn: 247410
* Fix fragile source-col-map.c test-case.James Y Knight2015-06-041-2/+3
| | | | | | | | | | | The test passing was dependent upon your source tree being checked out in a directory with a long enough path, to cause the diagnostics to wrap at the expected locations. Use stdin instead, so that the error messages consistently use <stdin> as the filename, and get wrapped consistently. llvm-svn: 239009
* Frontend: Fix SourceColumnMap assertion failure on non-ascii characters.Logan Chien2015-01-081-0/+37
If there are some non-ascii character in the input source code, the column index might be smallar than the byte index. This will result in two possible assertion failures. This CL fixes the computation of the column index and byte index. 1. The assertion in startOfNextColumn() and startOfPreviousColumn() should not be raised when the byte index is greater than the column index since the non-ascii characters may use more than one bytes to store a character in a column. 2. The length of the caret line should be equal to the number of columns of source line, instead of the length of the source line. Otherwise, the assertion in selectInterestingSourceRegion will be raised because the removed columns plus the kept columns are not greater than the max column, which means that we should not remove any column at all. llvm-svn: 225442
OpenPOWER on IntegriCloud