impl_validation.h 684 B

12345678910111213141516171819
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef CARBON_TOOLCHAIN_CHECK_IMPL_VALIDATION_H_
  5. #define CARBON_TOOLCHAIN_CHECK_IMPL_VALIDATION_H_
  6. #include "toolchain/check/context.h"
  7. namespace Carbon::Check {
  8. // Called after typechecking the full file to diagnose any `impl` declarations
  9. // that are invalid because they are in wrong file or overlap with other `impl`
  10. // declarations incorrectly.
  11. auto ValidateImplsInFile(Context& context) -> void;
  12. } // namespace Carbon::Check
  13. #endif // CARBON_TOOLCHAIN_CHECK_IMPL_VALIDATION_H_