mprobst added a comment.

How would I disable the formatting using that way?

When I special case `parsePreprocessorDirective()`, consume the line, and 
return `LT_ImportStatement`, clang-format still tries to format tokens within 
the shebang. E.g. I get `#!/usr/bin / env node`, note the whitespace after 
`bin`.

Turning the shebang into a comment seems like it has the advantage of being 
safe, its contents should simply never be touched.


http://reviews.llvm.org/D20632



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to