[cfe-dev] Clang-format breaks #define and #include directive

Ignacio Enriquez Gutierrez nacho4d at gmail.com
Sat Nov 9 03:35:02 PST 2013


Sorry for the late response,

I realized I do have some exotic characters in my files, but I think the reason I got #include and #define lines broken was due to an incorrect .clang-format file.

My .clang-format file was created like:

$ ./clang-format -dump-config -style=google > .clang-format

which I believe was the reason (?), it has "------" at the first line and "..." and the end. I don't remember changing anything else in particular but things are working as expected now.

Thanks!

Nov 6, 2013 3:58 AM、Tobias Grosser <tobias at grosser.es> のメール:

> On 11/05/2013 05:51 PM, Daniel Jasper wrote:
>> Hi,
>> 
>> I have never seen this particular behavior. What version are you running?
>> Are you possibly using some exotic file encoding? In LLVM and Google style,
>> clang-format most definitely should not be doing this.
> 
> I remember to have seen such a bug maybe half a year ago. Ignacio, are you using the latest version of clang-format from the svn repositorz?
> 
> Cheers,
> Tobias





More information about the cfe-dev mailing list