-
It looks like it no longer recognizes CS_PROPERTY for putting newlines before braces.
nl class brace works fine.
2009-02-27 12:05:05 UTC in Uncrustify Code Beautifier
-
Changing the value of nl_class_break has no effect on CSharp files.
Per your message:
It looks like this code is detected wrong:
public class class1 {
}
It is labeled as a CS_PROPERTY instead of a CLASS.
Thanks for your help!
2009-02-26 23:43:23 UTC in Uncrustify Code Beautifier
-
Hi,
I ran through all cases, and nothing changes anything. Using this code, I tried ignore, add, remove and force, and nothing changed for the brace after the class. I am able to affect other changes, and they show up, so I am not just using the wrong cfg file.
Thanks
Richard
public class Class1 {
public Class1 ()
{
}
}
public class Class2 : Class1 {
public...
2009-02-26 19:26:19 UTC in Uncrustify Code Beautifier
-
Sorry, this is C#, and I am using R1480 (IIRC), the one you gave with a fix for 'unsafe' in the last couple of days.
2009-02-26 06:02:42 UTC in Uncrustify Code Beautifier
-
Hi, I believe that if nl_class_brace=force, this:
public class Class1 {
public int c = 0;
public Class1 ()
{
}
public bool IsNull = false;
public bool GetValue ()
{
return true;
}
}
public class Class2 : Class1 {
public void testFunc ()
{
}
}
should have new lines in both places between 'Class1' and '{'.
Am I not...
2009-02-26 06:00:56 UTC in Uncrustify Code Beautifier
-
Thanks. I did not know it either, I am dealing with 6000+ files of generated code, and there are some interesting artifacts in it.
Now I will at least be able to read it like real code.
2009-02-25 21:06:44 UTC in Uncrustify Code Beautifier
-
Have I got a setting wrong?
Running against c sharp, If I have a method that is "unsafe" I got an error. Everything else the same, if I remove "unsafe", I don't. This happens with 0.51, from UniversalIndentGUI.
Indenter returned with exit code: 1
Indent console output was:
(STDOUT):
(STDERR):Parsing: indentinput.cs as language CS indentinput.cs:7 Error: Unexpected...
2009-02-20 23:37:53 UTC in Uncrustify Code Beautifier