http://llvm.org/bugs/show_bug.cgi?id=18405
Bug ID: 18405
Summary: Wrong SourceLocation start/end if non-english letters
in the text
Product: clang
Version: 3.3
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
clang_tokenize() (via libclang C-API) returns wrong SourceLocation start/end if
there are non-English characters in the UnsavedFile content. It seems that each
character is counter with length 2.
For example:
unsaved file content:
"//йц
1"
tokens:
#1: start=0, end=6, kind=comment
#2: start=7, end=8, kind=literal
The error is that #1 end must be 4 and #2 must be shifted to beginning
(start=5, end=6)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs