Header file inclusion static analysis tools?

后端 未结 8 569
旧时难觅i
旧时难觅i 2020-12-02 17:42

A colleague recently revealed to me that a single source file of ours includes over 3,400 headers during compile time. We have over 1,000 translation units that get compiled

8条回答
  •  余生分开走
    2020-12-02 18:03

    I heard there are some tools do it, but I don't use them.

    I created some tool https://sourceforge.net/p/headerfinder may be this is useful. Unfortunately it is "HOME MADE" tool with following issues,

    • Developed in Vb.Net
    • Source code need to compiled
    • Very slow and consumes memory.
    • No help available.

提交回复
热议问题