Preprocessor: Added todos for better handling of UTF / extended ASCII
http://apps.sourceforge.net/trac/cppcheck/ticket/343
This commit is contained in:
parent
76f5c9ef19
commit
d33139b2c7
|
@ -67,9 +67,17 @@ void Preprocessor::writeError(const std::string &fileName, const std::string &co
|
||||||
|
|
||||||
char ch = code[codePos];
|
char ch = code[codePos];
|
||||||
|
|
||||||
// We are not handling UTF and stuff like that. Code is supposed to plain simple text.
|
// UTF / extended ASCII => The output from the preprocessor should only be standard ASCII
|
||||||
if (ch < 0)
|
if (ch < 0)
|
||||||
continue;
|
{
|
||||||
|
// TODO: Remove characters that are redundant
|
||||||
|
|
||||||
|
// TODO: Convert characters that are needed to standard ASCII
|
||||||
|
|
||||||
|
// Not sure how to handle this character. Bailing out.
|
||||||
|
if (ch < 0)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// char/string..
|
// char/string..
|
||||||
if (ch == '\'' || ch == '\"')
|
if (ch == '\'' || ch == '\"')
|
||||||
|
|
Loading…
Reference in New Issue