rticonnextdds-examples icon indicating copy to clipboard operation
rticonnextdds-examples copied to clipboard

clang-format doesn't work with C/C++

Open ManuelJNunez opened this issue 4 years ago • 1 comments

Information

  • RTI Product: N/A
  • Version: N/A
  • Operating system: N/A
  • Compiler: N/A
  • Compiler version: N/A
  • Additional information: N/A

What is the current behavior?

I get this message when I run clang-format for C/C++ source files:

================================= C/C++ & Java ================================
Checking C/C++ & Java files format with clang-format: ['examples/connext_dds/custom_transport/c/FileTransport.c', 'examples/connext_dds/flat_data_api/c++98/CameraImage_subscriber.cxx', 'examples/connext_dds/logging_config/c/logging_publisher.c']
Configuration file(s) do(es) not support C++: /home/runner/work/rticonnextdds-examples/rticonnextdds-examples/.clang-format
error: `clang-format -lines=1485:1489 -lines=1505:1510 -lines=1555:1562 -assume-filename=examples/connext_dds/custom_transport/c/FileTransport.c` failed
Error: Process completed with exit code 1.

Suggested solutions

Separate the Java and C/C++ clang-format rules.

ManuelJNunez avatar Apr 14 '21 13:04 ManuelJNunez

Already closed on develop. When merging to master it will be closed automatically.

lulivi avatar Apr 19 '21 10:04 lulivi