hanchenye-llvm-project/clang/test/Frontend
Logan Chien d3d385d624 Frontend: Fix SourceColumnMap assertion failure on non-ascii characters.
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
2015-01-08 13:19:07 +00:00
..
Inputs Support using sample profiles with partial debug info (driver) 2014-10-22 13:00:05 +00:00
Weverything.c
Wno-everything.c
ast-codegen.c
ast-main.c
ast-main.cpp
backend-diagnostic.c
cc1-return-codes.c
cpp-output.c
darwin-eabi.c
darwin-version.c Change __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ for versions > 10.9. 2014-08-08 21:45:53 +00:00
dependency-gen-escaping.c
dependency-gen.c
dependency-generation-crash.c
diagnostics-option-names.c
disable-output.c
exceptions.c Frontend: Define __EXCEPTIONS if -fexceptions is passed 2014-10-27 20:02:19 +00:00
hexagon-target-basic.c
iframework.c
invalid-o-level.c Fix handling of invalid -O options. 2014-12-16 21:57:03 +00:00
ir-support-codegen.ll
ir-support-errors.ll
ir-support.c Account for differences in grep implementations 2014-06-27 03:11:38 +00:00
lit.local.cfg Remove .bc from test config.suffixes 2014-06-27 02:04:21 +00:00
macros.c
mfpmath.c
mips-long-double.c
optimization-remark-line-directive.c
optimization-remark.c Use -Rblah, not -Wblah, to control remark diagnostics. This was always the 2014-08-07 00:24:21 +00:00
output-failures.c This test was updated in r216397, but was failing on Windows due to mixed path separators as well as case sensitivity of the "no" in "no such file or directory." Rather than revert this file back to its original form, I've made some incredibly ugly regexes so that it will pass everywhere. 2014-08-26 14:09:25 +00:00
plugins.c
preprocessed-output-macro-first-token.c
print-header-includes.c clang/test/Frontend/print-header-includes.c REQUIRES shell due to "cd". 2014-08-12 09:31:27 +00:00
profile-sample-use-loc-tracking.c Support using sample profiles with partial debug info (driver) 2014-10-22 13:00:05 +00:00
rewrite-includes-bom.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
rewrite-includes-cli-include.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
rewrite-includes-eof.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
rewrite-includes-header-cmd-line.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
rewrite-includes-invalid-hasinclude.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
rewrite-includes-messages.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
rewrite-includes-missing.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
rewrite-includes-modules.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
rewrite-includes-warnings.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
rewrite-includes.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
rewrite-macros.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
source-col-map.c Frontend: Fix SourceColumnMap assertion failure on non-ascii characters. 2015-01-08 13:19:07 +00:00
std.cl Extended list of valid frontend options with '-cl-std=CL2.0'. 2014-11-20 19:25:00 +00:00
stdin.c
stdlang.c
system-header-prefix.c
trigraphs.cpp Add driver flags -ftrigraphs, -fno-trigraphs. 2014-12-23 22:32:37 +00:00
undef.c
unknown-pragmas.c
verify-directive.h
verify-fatal.c
verify-unknown-arg.c Destroy the diagnostic client first in ~DiagnosticEngine 2014-12-17 20:23:11 +00:00
verify.c Provide -verify support to match "any" line for diagnostics in included files. 2014-07-10 16:43:29 +00:00
verify2.c Provide -verify support to match "any" line for diagnostics in included files. 2014-07-10 16:43:29 +00:00
verify2.h Provide -verify support to match "any" line for diagnostics in included files. 2014-07-10 16:43:29 +00:00
verify3.c
warning-mapping-1.c
warning-mapping-2.c
warning-mapping-3.c
warning-mapping-4.c
warning-mapping-5.c
warning-options.cpp Use -Rblah, not -Wblah, to control remark diagnostics. This was always the 2014-08-07 00:24:21 +00:00
windows-nul.c
x86-target-cpu.c Don't actually generate code for testing the frontend's target cpu flag, 2014-12-09 15:52:55 +00:00
x86_64-nacl-types.cpp