Difference between revisions of "Code Formatting Conventions"

Jump to navigation Jump to search
m
typo
(Updated astyle reference to use "style" instead of "brackets")
m (typo)
Line 134: Line 134:
'''Pointers and casts'''
'''Pointers and casts'''


No whitespace after a cast; and in a pointer, we write a whitespace before the start but not after it.
No whitespace after a cast; and in a pointer, we write a whitespace before the star but not after it.
<syntax type="C++">
<syntax type="C++">
const char *ptr = (const char *)foobar;
const char *ptr = (const char *)foobar;
53

edits

Navigation menu