-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runs together identifiers across linebreaks #13
Comments
Yes, |
Sure, but how easy is that to type in on a command line or in an editor search when you're trying to find where in all the dozens of files and thousands of lines you defined the function? The point is that some people (incl. me) do like to split the return-type from the function, for this reason (whether or not it's important for everyone), so it isn't such a bizarre and unheard-of formatting, and cminify is liable to make it into a syntax error. |
(I use a regex like that in my editors everyday, but I can understand not wanting to ;) As you can tell, this program isn't really actively maintained anymore, and I would maintain a fork except that -- from trying it myself I will say, unless you want to spend a week completely rewriting this library, it's very hard or impossible to fix these kinds of problems due to the very fundamental, wrong assertions that And if one were to mostly re-write |
Input:
`#include <stdio.h>
int
main(int argc, char **argv) {
printf("hello world\n");
}
`
Output:
#include<stdio.h> intmain(int argc,char**argv){printf("hello world\n");}
Note "intmain". Placing the return type of a function on the line before is often useful, since it lets you search for the definition of the function by searching for it at the beginning of a line.
The text was updated successfully, but these errors were encountered: