clang_global_decl.h 649 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_LOWER_CLANG_GLOBAL_DECL_H_
  5. #define CARBON_TOOLCHAIN_LOWER_CLANG_GLOBAL_DECL_H_
  6. #include "clang/AST/Decl.h"
  7. #include "clang/AST/GlobalDecl.h"
  8. namespace Carbon::Lower {
  9. // Returns `clang::GlobalDecl` with special handling of constructors, assuming
  10. // they're complete.
  11. auto CreateGlobalDecl(const clang::NamedDecl* decl) -> clang::GlobalDecl;
  12. } // namespace Carbon::Lower
  13. #endif // CARBON_TOOLCHAIN_LOWER_CLANG_GLOBAL_DECL_H_