//===- CIndexInclusionStack.cpp - Clang-C Source Indexing Library ---------===// // // 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 a callback mechanism for clients to get the inclusion // stack from a translation unit. // //===----------------------------------------------------------------------===// #include "CIndexer.h" #include "CXFile.h" #include "CXSourceLocation.h" #include "CXTranslationUnit.h" #include "clang/AST/DeclVisitor.h" #include "clang/Frontend/ASTUnit.h" usingnamespaceclang; namespace { void getInclusions(bool IsLocal, unsigned n, CXTranslationUnit TU, CXInclusionVisitor CB, CXClientData clientData) { … } } // namespace void clang_getInclusions(CXTranslationUnit TU, CXInclusionVisitor CB, CXClientData clientData) { … }