CLWarnings.h 977 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===--- CLWarnings.h - Maps some cl.exe warning ids -----------*- 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_BASIC_CLWARNINGS_H
  14. #define LLVM_CLANG_BASIC_CLWARNINGS_H
  15. #include "llvm/ADT/Optional.h"
  16. namespace clang {
  17. namespace diag {
  18. enum class Group;
  19. }
  20. /// For cl.exe warning IDs that cleany map to clang diagnostic groups,
  21. /// returns the corresponding group. Else, returns an empty Optional.
  22. llvm::Optional<diag::Group> diagGroupFromCLWarningID(unsigned);
  23. } // end namespace clang
  24. #endif // LLVM_CLANG_BASIC_CLWARNINGS_H
  25. #ifdef __GNUC__
  26. #pragma GCC diagnostic pop
  27. #endif