Header Files is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.
Header Files
API ID: CountDeclFileHeaderLanguages: C++
Targets: Architectures, Project
Number of header files.
Normally a .h/.hpp file, though it's based on how the parser identifies the file, not just its extension.
For example, this directory:
test/c/
cohesion.cpp
csvExportBigNumbers.cpp
friend.cpp
io.cpp
knots.cpp
paths.cpp
pond.cpp
sample.cpp
vehicles.cpp
classes.cpp
class_macro.h
has 1 header file, class_macro.h, so CountDeclFileHeader = 1.
See Code Files for the complementary count, and Files for the total across all languages.
Targets By Language:- C++: Project
- For projects and architectures, this metric is enabled from "Project Configuration/Metrics/Projects and Architectures" with the "Show aggregated file metrics" option.