[LLVMbugs] [Bug 13070] New: missing namespace typo correction for switch on enum
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jun 9 21:33:35 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13070
Bug #: 13070
Summary: missing namespace typo correction for switch on enum
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
I got these diagnostics:
lib/Sema/SemaDeclCXX.cpp:3879:8: error: use of undeclared identifier
'CXXDefaultConstructor'
case CXXDefaultConstructor:
^
lib/Sema/SemaDeclCXX.cpp:3880:8: error: use of undeclared identifier
'CXXCopyConstructor'
case CXXCopyConstructor:
^
lib/Sema/SemaDeclCXX.cpp:3881:8: error: use of undeclared identifier
'CXXMoveConstructor'
case CXXMoveConstructor:
^
lib/Sema/SemaDeclCXX.cpp:3884:8: error: use of undeclared identifier
'CXXCopyAssignment'
case CXXCopyAssignment:
^
lib/Sema/SemaDeclCXX.cpp:3885:8: error: use of undeclared identifier
'CXXMoveAssignment'
case CXXMoveAssignment:
^
lib/Sema/SemaDeclCXX.cpp:3886:8: error: use of undeclared identifier
'CXXDestructor'
case CXXDestructor:
^
lib/Sema/SemaDeclCXX.cpp:3887:8: error: use of undeclared identifier
'CXXInvalid'
case CXXInvalid:
^
lib/Sema/SemaDeclCXX.cpp:3878:11: warning: 7 enumeration values not handled in
switch: 'CXXDefaultConstructor', 'CXXCopyConstructor', 'CXXMoveConstructor'...
[-Wswitch]
switch (CSM) {
^
There's no hint here what's wrong, just some mutually contradictory
diagnostics. We should be able to do better here, and typo-correct to
'Sema::CXXDefaultConstructor' etc. Ideally, I'd like to see only one diagnostic
for this (with all the fixits attached, for clients that care about that sort
of thing).
--
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