checks.h raw

   1  // Copyright (c) 2022 The Limenka developers
   2  // Distributed under the MIT software license, see the accompanying
   3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
   4  
   5  #ifndef LIMENKA_KERNEL_CHECKS_H
   6  #define LIMENKA_KERNEL_CHECKS_H
   7  
   8  #include <util/result.h>
   9  
  10  namespace kernel {
  11  
  12  struct Context;
  13  
  14  [[nodiscard]] bool Clang_IndVarSimplify_Bug_SanityCheck();
  15  
  16  /**
  17   *  Ensure a usable environment with all necessary library support.
  18   */
  19  [[nodiscard]] util::Result<void> SanityChecks(const Context&);
  20  } // namespace kernel
  21  
  22  #endif // LIMENKA_KERNEL_CHECKS_H
  23