• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
13 namespace clang {
14   class ObjCMessageExpr;
15   class NSAPI;
16   class ParentMap;
17 
18 namespace edit {
19   class Commit;
20 
21 bool rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg,
22                                          const NSAPI &NS, Commit &commit);
23 
24 bool rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg,
25                                 const NSAPI &NS, Commit &commit,
26                                 const ParentMap *PMap);
27 
28 bool rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg,
29                                   const NSAPI &NS, Commit &commit);
30 
31 }
32 
33 }  // end namespace clang
34 
35 #endif
36