From: Ted Kremenek Date: Thu, 18 Feb 2010 18:52:18 +0000 (+0000) Subject: Tidy up order of switch statement. No functionality change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4174cc4b9b657abb77d0825de473ea29cf48297;p=clang Tidy up order of switch statement. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96602 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp index b8ceb5faf1..8bb6a0a7c5 100644 --- a/tools/CIndex/CIndex.cpp +++ b/tools/CIndex/CIndex.cpp @@ -644,47 +644,43 @@ bool CursorVisitor::VisitBuiltinTypeLoc(BuiltinTypeLoc TL) { // "Class") have associated declarations. Create cursors for those. QualType VisitType; switch (TL.getType()->getAs()->getKind()) { - case BuiltinType::Void: case BuiltinType::Bool: - case BuiltinType::Char_U: - case BuiltinType::UChar: case BuiltinType::Char16: case BuiltinType::Char32: - case BuiltinType::UShort: - case BuiltinType::UInt: - case BuiltinType::ULong: - case BuiltinType::ULongLong: - case BuiltinType::UInt128: case BuiltinType::Char_S: - case BuiltinType::SChar: - case BuiltinType::WChar: - case BuiltinType::Short: + case BuiltinType::Char_U: + case BuiltinType::Dependent: + case BuiltinType::Double: + case BuiltinType::Float: + case BuiltinType::Int128: case BuiltinType::Int: case BuiltinType::Long: - case BuiltinType::LongLong: - case BuiltinType::Int128: - case BuiltinType::Float: - case BuiltinType::Double: case BuiltinType::LongDouble: + case BuiltinType::LongLong: case BuiltinType::NullPtr: case BuiltinType::Overload: - case BuiltinType::Dependent: + case BuiltinType::SChar: + case BuiltinType::Short: + case BuiltinType::UChar: + case BuiltinType::UInt128: + case BuiltinType::UInt: + case BuiltinType::ULong: + case BuiltinType::ULongLong: + case BuiltinType::UShort: + case BuiltinType::Void: + case BuiltinType::WChar: break; - - case BuiltinType::UndeducedAuto: // FIXME: Deserves a cursor? + case BuiltinType::ObjCClass: + VisitType = Context.getObjCClassType(); break; - case BuiltinType::ObjCId: VisitType = Context.getObjCIdType(); break; - - case BuiltinType::ObjCClass: - VisitType = Context.getObjCClassType(); - break; - case BuiltinType::ObjCSel: VisitType = Context.getObjCSelType(); break; + case BuiltinType::UndeducedAuto: // FIXME: Deserves a cursor? + break; } if (!VisitType.isNull()) {