//===- DeclGroup.h - Classes for representing groups of Decls ---*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file defines the DeclGroup, DeclGroupRef, and OwningDeclGroup classes. // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLGROUP_H #define LLVM_CLANG_AST_DECLGROUP_H #include "llvm/Support/TrailingObjects.h" #include <cassert> #include <cstdint> namespace clang { class ASTContext; class Decl; class DeclGroup final : private llvm::TrailingObjects<DeclGroup, Decl *> { … }; class DeclGroupRef { … }; } // namespace clang namespace llvm { // DeclGroupRef is "like a pointer", implement PointerLikeTypeTraits. template <typename T> struct PointerLikeTypeTraits; template <> struct PointerLikeTypeTraits<clang::DeclGroupRef> { … }; } // namespace llvm #endif // LLVM_CLANG_AST_DECLGROUP_H