ACAV f0ba4b7c9529
Abstract Syntax Tree (AST) visualization tool for C, C++, and Objective-C
Loading...
Searching...
No Matches
DependencyTypes.h
Go to the documentation of this file.
1/*$!{
2* Aurora Clang AST Viewer (ACAV)
3*
4* Copyright (c) 2026 Min Liu
5* Copyright (c) 2026 Michael David Adams
6*
7* SPDX-License-Identifier: GPL-2.0-or-later
8*
9* This program is free software; you can redistribute it and/or modify
10* it under the terms of the GNU General Public License as published by
11* the Free Software Foundation; either version 2 of the License, or
12* (at your option) any later version.
13*
14* This program is distributed in the hope that it will be useful,
15* but WITHOUT ANY WARRANTY; without even the implied warranty of
16* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17* GNU General Public License for more details.
18*
19* You should have received a copy of the GNU General Public License along
20* with this program; if not, see <https://www.gnu.org/licenses/>.
21}$!*/
22
26#pragma once
27
28#include <string>
29#include <vector>
30
31namespace acav {
32
34struct HeaderInfo {
35 std::string path_;
36 bool direct_;
38 std::string inclusionKind_;
40};
41
51 std::string path;
52 std::vector<HeaderInfo> headers;
53};
54
57 std::string filePath_;
58 std::string errorMessage_;
59};
60
61} // namespace acav
Structure to store dependency information for a single source file This structure captures all header...
std::string path
Path to the source file.
std::vector< HeaderInfo > headers
List of all included headers.
Represents information about a single included header file.
std::string path_
Full path to the header file.
std::string inclusionKind_
Type of inclusion (C_User, C_System, C_ExternCSystem, etc.).
bool direct_
True if directly included at least once, even if also indirectly included.
Represents an error that occurred during dependency analysis.
std::string filePath_
Source file that failed to process.
std::string errorMessage_
Error description from Clang.