A parser for C++ header files that extracts class, struct, function, and typedef definitions into a structured dictionary. Version 2.7.4. Release cadence is irregular, with last release in 2021.
pip install cppheaderparserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parse a C++ header from a string or file and access parsed elements.
Use 'from CppHeaderParser import CppHeaderParser' exactly as shown.
Preprocess the header with a C++ preprocessor (e.g., gcc -E) to expand macros and remove unused conditional branches before parsing.
Use: from CppHeaderParser import CppHeaderParser
Verify the header is valid C++. If needed, run through a preprocessor first.
No dependency data recorded yet.