https://bugs.llvm.org/show_bug.cgi?id=46241

            Bug ID: 46241
           Summary: Allow to set the space between function name and
                    braces in calls, but avoid in definitions
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

In radare2 project we use the following style:

int some_function(char *arg) {
     return strdup (arg);
}

int main(int argc, char** argv) {
     printf("foo: %s\n", some_function ("bar"));
     return 0; 
}

The key idea is to clearly differentiate declaration from calls. It is useful
for quick grepping with `git grep` or a plain `grep`. Please provide an option
to configure this.

https://github.com/radareorg/radare2/blob/master/DEVELOPERS.md

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to