MigratorOptions.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===--- MigratorOptions.h - MigratorOptions Options ------------*- 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. //
  14. // This header contains the structures necessary for a front-end to specify
  15. // various migration analysis.
  16. //
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_CLANG_FRONTEND_MIGRATOROPTIONS_H
  19. #define LLVM_CLANG_FRONTEND_MIGRATOROPTIONS_H
  20. namespace clang {
  21. class MigratorOptions {
  22. public:
  23. unsigned NoNSAllocReallocError : 1;
  24. unsigned NoFinalizeRemoval : 1;
  25. MigratorOptions() {
  26. NoNSAllocReallocError = 0;
  27. NoFinalizeRemoval = 0;
  28. }
  29. };
  30. }
  31. #endif
  32. #ifdef __GNUC__
  33. #pragma GCC diagnostic pop
  34. #endif