Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
Qt Creator 4.7.1, Qt Creator 4.7.2, Qt Creator 4.8.0-rc1
Description
If open the source with Creator, analysis of the file fails, and there are cases where there are errors on the editor.
Condition:
- Use Clang Code Model
- Shift_JIS character which latter byte is 0x5c in end of comment in header file such as 能, 表
- There must be some C++ code or character in following of above line
- Not open that include file on editor
- Open file which includes above. (main.cpp in sample)
Creator won't recognize character code (Shift_JIS in this case) when analyze if the file is not open.
If end of comment byte is 0x5c, Creator may recognize as '\' (back slash) thus concatenates with next line.
Initially, Clang should not support Shift-JIS, but when opening a file with Creator, it seems that it is analyzed without problem whether it converts to UTF - 8 and passes it.
In connection with this, if execute Analysis by Clang with Analyze → Clang-Tidy and Clazy on Creator, it fails. This is more serious and Japanese in the string literal becomes an error.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-21622 Creator sometimes can't open text file which contains Shift_JIS code correctly
- Closed
- links to