diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-02-18 18:52:18 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-02-18 18:52:18 +0000 |
| commit | fcb3db7d689d6f91e240f60714c5bc334fe34896 (patch) | |
| tree | 7c0af26f95d109a2e4678f38646cd03a2493e2ef | |
| parent | 654528e8a712b3e9e4a0d5fe37b0e62138331fee (diff) | |
| download | bcm5719-llvm-fcb3db7d689d6f91e240f60714c5bc334fe34896.tar.gz bcm5719-llvm-fcb3db7d689d6f91e240f60714c5bc334fe34896.zip | |
Tidy up order of switch statement. No functionality change.
llvm-svn: 96602
| -rw-r--r-- | clang/tools/CIndex/CIndex.cpp | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/clang/tools/CIndex/CIndex.cpp b/clang/tools/CIndex/CIndex.cpp index b8ceb5faf12..8bb6a0a7c5f 100644 --- a/clang/tools/CIndex/CIndex.cpp +++ b/clang/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<BuiltinType>()->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()) { |

