[LLVMbugs] [Bug 14747] New: Formatting of casts to pointer type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Dec 29 13:28:36 PST 2012
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: unassignedclangbugs at nondot.org
ReportedBy: grosser at fim.uni-passau.de
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list