| // Part of the Crubit project, under the Apache License v2.0 with LLVM |
| // Exceptions. See /LICENSE for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| |
| #ifndef CRUBIT_RS_BINDINGS_FROM_CC_AST_UTIL_H_ |
| #define CRUBIT_RS_BINDINGS_FROM_CC_AST_UTIL_H_ |
| |
| #include "clang/AST/DeclBase.h" |
| |
| namespace crubit { |
| |
| // Returns true if `decl` is either 1) a ClassTemplateSpecializationDecl (but |
| // not ClassTemplatePartialSpecializationDecl) or 2) a decl (e.g. a member |
| // function decl) nested inside a ClassTemplateSpecializationDecl. |
| bool IsFullClassTemplateSpecializationOrChild(const clang::Decl* decl); |
| |
| } // namespace crubit |
| |
| #endif // CRUBIT_RS_BINDINGS_FROM_CC_AST_UTIL_H_ |