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 | CountDeclFileHeader |
| Targets | Architectures Project |
| Languages | C++ |
| Categories | Contents |
| Cost | Lookup |
Number of header files.
Normally a .h/.hpp file, though it's based on how the parser identifies the file, not just its extension. With the strict C/C++ parser, a header file that no other file includes counts as a code file instead.
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