I'm trying to use a clang-format
file in CLion but CLion gives me the error:
Error reading [path to clang-format]: Invalid Argument
The error has to do with the RawStringFormats
in my .clang-format
file. When I remove the RawStringFormats
section, CLion gives me no errors.
My .clang-format
file is auto-generated by a script using Google's standards.
I need to find out the cause of the problem so I can modify the script to prevent this issue.
RawStringFormats:
- Delimiter: pb
Language: TextProto
BasedOnStyle: google
RawStringFormats
paremeters. Therefore, make sure both versions (your generating and the editors one) are matchingecho "" | clang-format --dry-run
to validate the file