summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-02-18 22:32:43 +0000
committerTed Kremenek <kremenek@apple.com>2010-02-18 22:32:43 +0000
commitaaaf2bfffbd6f4e735ffcd8ce0b578ffaa244a40 (patch)
tree89c12c2ee970c12a35ff68859a1767a7cd0259ca /clang
parent688a90e2d7f9b2059ca62c9835205a54aa883d67 (diff)
downloadbcm5719-llvm-aaaf2bfffbd6f4e735ffcd8ce0b578ffaa244a40.tar.gz
bcm5719-llvm-aaaf2bfffbd6f4e735ffcd8ce0b578ffaa244a40.zip
Revert "Tidy up order of switch statement. No functionality change."
This reverts commit 95575005fc6409df98e6e079caf324308f62171b. llvm-svn: 96620
Diffstat (limited to 'clang')
-rw-r--r--clang/tools/CIndex/CIndex.cpp44
1 files changed, 24 insertions, 20 deletions
diff --git a/clang/tools/CIndex/CIndex.cpp b/clang/tools/CIndex/CIndex.cpp
index 8bb6a0a7c5f..b8ceb5faf12 100644
--- a/clang/tools/CIndex/CIndex.cpp
+++ b/clang/tools/CIndex/CIndex.cpp
@@ -644,43 +644,47 @@ 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::Char_U:
- case BuiltinType::Dependent:
- case BuiltinType::Double:
- case BuiltinType::Float:
- case BuiltinType::Int128:
+ case BuiltinType::SChar:
+ case BuiltinType::WChar:
+ case BuiltinType::Short:
case BuiltinType::Int:
case BuiltinType::Long:
- case BuiltinType::LongDouble:
case BuiltinType::LongLong:
+ case BuiltinType::Int128:
+ case BuiltinType::Float:
+ case BuiltinType::Double:
+ case BuiltinType::LongDouble:
case BuiltinType::NullPtr:
case BuiltinType::Overload:
- 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:
+ case BuiltinType::Dependent:
break;
- case BuiltinType::ObjCClass:
- VisitType = Context.getObjCClassType();
+
+ case BuiltinType::UndeducedAuto: // FIXME: Deserves a cursor?
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()) {
OpenPOWER on IntegriCloud