Rewriters.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===--- Rewriters.h - Rewritings ---------------------------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_CLANG_EDIT_REWRITERS_H
  14. #define LLVM_CLANG_EDIT_REWRITERS_H
  15. namespace clang {
  16. class ObjCMessageExpr;
  17. class ObjCMethodDecl;
  18. class ObjCInterfaceDecl;
  19. class ObjCProtocolDecl;
  20. class NSAPI;
  21. class EnumDecl;
  22. class TypedefDecl;
  23. class ParentMap;
  24. namespace edit {
  25. class Commit;
  26. bool rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg,
  27. const NSAPI &NS, Commit &commit);
  28. bool rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg,
  29. const NSAPI &NS, Commit &commit,
  30. const ParentMap *PMap);
  31. bool rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg,
  32. const NSAPI &NS, Commit &commit);
  33. }
  34. } // end namespace clang
  35. #endif
  36. #ifdef __GNUC__
  37. #pragma GCC diagnostic pop
  38. #endif