Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:36:53

0001 //===--- Rewriters.h - Rewritings     ---------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_CLANG_EDIT_REWRITERS_H
0010 #define LLVM_CLANG_EDIT_REWRITERS_H
0011 
0012 namespace clang {
0013   class ObjCMessageExpr;
0014   class ObjCMethodDecl;
0015   class ObjCInterfaceDecl;
0016   class ObjCProtocolDecl;
0017   class NSAPI;
0018   class EnumDecl;
0019   class TypedefDecl;
0020   class ParentMap;
0021 
0022 namespace edit {
0023   class Commit;
0024 
0025 bool rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg,
0026                                          const NSAPI &NS, Commit &commit);
0027 
0028 bool rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg,
0029                                 const NSAPI &NS, Commit &commit,
0030                                 const ParentMap *PMap);
0031 
0032 bool rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg,
0033                                   const NSAPI &NS, Commit &commit);
0034 
0035 }
0036 
0037 }  // end namespace clang
0038 
0039 #endif