http://llvm.org/bugs/show_bug.cgi?id=14747
Bug #: 14747
Summary: Formatting of casts to pointer type
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 9774
--> http://llvm.org/bugs/attachment.cgi?id=9774
Test file to reproduce the bug
class Class;
typedef class Class Type;
void foo(void *P) {
// LLVM style one - (space before star)
// 110 matches in llvm/lib and llvm/include
Type *A = static_cast<Type *>(P);
Type *B = (Type *) P;
// LLVM style two - (no space before star)
// 328 matches in llvm/lib and llvm/include
Type *C = static_cast<Type*>(P);
Type *D = (Type*) P;
// Current formatting
Type *E = static_cast<Type * >(P);
Type *F = (Type * ) P;
// ^ This space is too much.
}
We may also consider to switch to the LLVM style 'two' as this one is more
common
in the LLVM (and clang) code base.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs