Substituted all instances of the string "Objc" for "ObjC". This fixes
some naming inconsistencies in the names of classes pertaining to Objective-C
support in clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45715 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/StmtPrinter.cpp b/AST/StmtPrinter.cpp
index 099dd28..6bfe735 100644
--- a/AST/StmtPrinter.cpp
+++ b/AST/StmtPrinter.cpp
@@ -296,7 +296,7 @@
}
}
-void StmtPrinter::VisitObjcForCollectionStmt(ObjcForCollectionStmt *Node) {
+void StmtPrinter::VisitObjCForCollectionStmt(ObjCForCollectionStmt *Node) {
Indent() << "for (";
if (DeclStmt *DS = dyn_cast<DeclStmt>(Node->getElement()))
PrintRawDecl(DS->getDecl());
@@ -406,18 +406,18 @@
OS << ");\n";
}
-void StmtPrinter::VisitObjcAtTryStmt(ObjcAtTryStmt *Node) {
+void StmtPrinter::VisitObjCAtTryStmt(ObjCAtTryStmt *Node) {
Indent() << "@try";
if (CompoundStmt *TS = dyn_cast<CompoundStmt>(Node->getTryBody())) {
PrintRawCompoundStmt(TS);
OS << "\n";
}
- for (ObjcAtCatchStmt *catchStmt =
- static_cast<ObjcAtCatchStmt *>(Node->getCatchStmts());
+ for (ObjCAtCatchStmt *catchStmt =
+ static_cast<ObjCAtCatchStmt *>(Node->getCatchStmts());
catchStmt;
catchStmt =
- static_cast<ObjcAtCatchStmt *>(catchStmt->getNextCatchStmt())) {
+ static_cast<ObjCAtCatchStmt *>(catchStmt->getNextCatchStmt())) {
Indent() << "@catch(";
if (catchStmt->getCatchParamStmt()) {
if (DeclStmt *DS = dyn_cast<DeclStmt>(catchStmt->getCatchParamStmt()))
@@ -431,7 +431,7 @@
}
}
- if (ObjcAtFinallyStmt *FS =static_cast<ObjcAtFinallyStmt *>(
+ if (ObjCAtFinallyStmt *FS =static_cast<ObjCAtFinallyStmt *>(
Node->getFinallyStmt())) {
Indent() << "@finally";
PrintRawCompoundStmt(dyn_cast<CompoundStmt>(FS->getFinallyBody()));
@@ -439,14 +439,14 @@
}
}
-void StmtPrinter::VisitObjcAtFinallyStmt(ObjcAtFinallyStmt *Node) {
+void StmtPrinter::VisitObjCAtFinallyStmt(ObjCAtFinallyStmt *Node) {
}
-void StmtPrinter::VisitObjcAtCatchStmt (ObjcAtCatchStmt *Node) {
+void StmtPrinter::VisitObjCAtCatchStmt (ObjCAtCatchStmt *Node) {
Indent() << "@catch (...) { /* todo */ } \n";
}
-void StmtPrinter::VisitObjcAtThrowStmt (ObjcAtThrowStmt *Node) {
+void StmtPrinter::VisitObjCAtThrowStmt (ObjCAtThrowStmt *Node) {
Indent() << "@throw";
if (Node->getThrowExpr()) {
OS << " ";