compilation - C++: Quickly determine appropriate list of header includes? -
is there tool or method can speed process?
for instance split neattrick.cpp source file 2 separate files neattrickimplementation.cpp , neattricktests.cpp.
what have go through list of #includes @ top of neattrick.cpp , determine of them need go implementation file, , need go tests file. of headers required both of them, not. may unnecessary.
i feel process (start nothing, compile, see what's broken, add proper include, compile again, repeat) produce unbloated code frustratingly slow. think it'd great if ide analyze rest of headers in project, see ones eliminate current set of errors, , automate task me.
there talk chandler carruth on microsoft's "going native" (a c++ conference) said clang tooling project had in pipeline solve problem.
from understanding, presented no publically available tool able @ moment , people pretty impressed this.
so: at moment, there no such tool. in near future clang-based tool compile yourself. long-term, expect standard feature built upon clang toolchain.
(a bit ot: there discussion on clang/llvm developers list dealing tooling/service infrastructure. tools not there yet under active development, google engineers, later people in whole industry , clang open source community).
Comments
Post a Comment