cpp-merge icon indicating copy to clipboard operation
cpp-merge copied to clipboard

Chained including not supported

Open RipperJ opened this issue 2 years ago • 2 comments

If top.cpp includes "a.hpp", and "a.hpp" include another "b.hpp" from another folder, it seems that b.hpp will not be found even if we set that path to it in "--include [b.hpp's path]".

RipperJ avatar Mar 23 '22 03:03 RipperJ

Hello @RipperJ. Thank you for reporting the issue. Unfortunately, I couldn't reproduce the problem. I've added a new unit test for your scenario and I've found a minor bug which I've fixed. Could you please verify if files located in test/data/headerIncludeHeaderInSubdirectory (https://github.com/FastAlien/cpp-merge/tree/master/test/data/headerIncludeHeaderInSubdirectory) are matching your scenario? Changes have been merged into the master branch.

FastAlien avatar Mar 29 '22 20:03 FastAlien

Same problem here... I'm trying to use multiple include paths with no success.

Unfortunately I can't show output of my "include" paths because of NDA.

pedroflor avatar Aug 23 '22 12:08 pedroflor