We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62e5f01 commit a2de89bCopy full SHA for a2de89b
src/libclang/preprocessor.cpp
@@ -1126,8 +1126,17 @@ detail::preprocessor_output detail::preprocess(const libclang_compile_config& co
1126
}
1127
else if (in_string == false && starts_with(p, "'"))
1128
{
1129
+ if (in_char == false && p.ptr() != preprocessed.file.c_str()
1130
+ && std::isdigit(p.ptr()[-1]))
1131
+ {
1132
+ // It's a digit separator, not a char literal.
1133
+ }
1134
+ else
1135
1136
+ in_char.toggle();
1137
1138
+
1139
p.bump();
- in_char.toggle();
1140
1141
else if (in_string == true || in_char == true)
1142
0 commit comments