We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94f5500 commit 3b6ed82Copy full SHA for 3b6ed82
1 file changed
main.cpp
@@ -276,6 +276,11 @@ int main(int argc, char **argv)
276
std::cerr << "portability: ";
277
break;
278
case simplecpp::Output::PORTABILITY_NO_EOF_NEWLINE:
279
+ if (simplecpp::getCStd(dui.std) == simplecpp::CUnknown) {
280
+ // Only UB for c code, suppress for c++ code
281
+ // If no standard is specified then prefer to have a false negative
282
+ continue;
283
+ }
284
285
286
case simplecpp::Output::UNHANDLED_CHAR_ERROR:
0 commit comments