http://llvm.org/bugs/show_bug.cgi?id=11739
Bug #: 11739
Summary: Have a fixit for |const char[] kFoo = "foo";| et al
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
After writing a bunch of Java, I sometimes write something like:
const char[] kFoo = "foo"
Clang and gcc both point out that this is wrong:
test.c:1:11: error: expected identifier or '('
const char[] kFoo = "foo";
^
1 error generated.
This is a decent warning, but it would be fantastic if clang could also say
"This isn't Java: put [] behind kFoo instead" (probably without the "This isn't
java" part :-) ).
--
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