Rewriters.h revision bbbb0fe4f466d3163fcbf0a64ebf0f5868833efb
1//===--- Rewriters.h - Rewritings ---------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10#ifndef LLVM_CLANG_EDIT_REWRITERS_H 11#define LLVM_CLANG_EDIT_REWRITERS_H 12#include "llvm/ADT/SmallVector.h" 13 14namespace clang { 15 class ObjCMessageExpr; 16 class ObjCMethodDecl; 17 class ObjCInterfaceDecl; 18 class ObjCProtocolDecl; 19 class NSAPI; 20 class EnumDecl; 21 class TypedefDecl; 22 class ParentMap; 23 24namespace edit { 25 class Commit; 26 27bool rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg, 28 const NSAPI &NS, Commit &commit); 29 30bool rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg, 31 const NSAPI &NS, Commit &commit, 32 const ParentMap *PMap); 33 34bool rewriteToObjCProperty(const ObjCMethodDecl *Getter, 35 const ObjCMethodDecl *Setter, 36 const NSAPI &NS, Commit &commit); 37bool rewriteToObjCInterfaceDecl(const ObjCInterfaceDecl *IDecl, 38 llvm::SmallVectorImpl<ObjCProtocolDecl*> &Protocols, 39 const NSAPI &NS, Commit &commit); 40 41bool rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg, 42 const NSAPI &NS, Commit &commit); 43 44bool rewriteToNSEnumDecl(const EnumDecl *EnumDcl, 45 const TypedefDecl *TypedefDcl, 46 const NSAPI &NS, Commit &commit); 47 48} 49 50} // end namespace clang 51 52#endif 53