================
@@ -50,6 +50,9 @@ IntegerLiteralSeparatorFixer::process(const Environment &Env,
   case FormatStyle::LK_JavaScript:
     Separator = '_';
     break;
+  case FormatStyle::LK_C:
+      Separator = '\'';
+      break;
----------------
fauxprogrammer wrote:

I originally thought that also but the C++ case checks for C++ standard >= 
Cpp14.  It seemed cleaner to not have any dependency on the C++ standard for 
the C block.  But I defer to your judgement if you feel adding the C case 
statement to the existing C++ is the way to go I'll make the change.

  case FormatStyle::LK_Cpp:
  case FormatStyle::LK_ObjC:
    if (Style.Standard >= FormatStyle::LS_Cpp14) {
      Separator = '\'';
      break;
    }

https://github.com/llvm/llvm-project/pull/182296
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to