clang API Documentation
00001 //===--- Rewriters.h - Rewritings ---------------------------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 00010 #ifndef LLVM_CLANG_EDIT_REWRITERS_H 00011 #define LLVM_CLANG_EDIT_REWRITERS_H 00012 #include "llvm/ADT/SmallVector.h" 00013 00014 namespace clang { 00015 class ObjCMessageExpr; 00016 class ObjCMethodDecl; 00017 class ObjCInterfaceDecl; 00018 class ObjCProtocolDecl; 00019 class NSAPI; 00020 class EnumDecl; 00021 class TypedefDecl; 00022 class ParentMap; 00023 00024 namespace edit { 00025 class Commit; 00026 00027 bool rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg, 00028 const NSAPI &NS, Commit &commit); 00029 00030 bool rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg, 00031 const NSAPI &NS, Commit &commit, 00032 const ParentMap *PMap); 00033 00034 bool rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg, 00035 const NSAPI &NS, Commit &commit); 00036 00037 } 00038 00039 } // end namespace clang 00040 00041 #endif