[LLVMbugs] [Bug 11488] New: Clang should warn on the use of reserved identifier/macro names
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Dec 6 03:11:12 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11488
Bug #: 11488
Summary: Clang should warn on the use of reserved
identifier/macro names
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: vanboxem.ruben at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
For C, Clang should warn when user code uses identifiers or macros that are
implementation-reserved.
For C(99), this would mean names starting with an underscore followed by
another unerscore or capitalized letter.
For C++ a single underscore is also reserved for the global namespace.
I could have messed the above rules up, but these are the cause of a lot of
unexpected bugs, and a warning would be super-easy to implement.
--
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