rticonnextdds-examples
rticonnextdds-examples copied to clipboard
clang-format doesn't work with C/C++
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.
Already closed on develop. When merging to master it will be closed automatically.