LoadIncludes is used to list all #include directives within a C/C++ header file. The current implementation is rudimentary, simply searching for the #include string and processing it. It needs to be updated to a more robust implementation that:
- Allows spaces or tabs between
# and include;
- Ignores
#include occurrences found within comments or string literals.
Please implement it as efficiently as possible.
LoadIncludesis used to list all#includedirectives within a C/C++ header file. The current implementation is rudimentary, simply searching for the#includestring and processing it. It needs to be updated to a more robust implementation that:#andinclude;#includeoccurrences found within comments or string literals.Please implement it as efficiently as possible.