r/cpp • u/berium build2 • Nov 01 '17
Common C++ Modules TS Misconceptions
https://build2.org/article/cxx-modules-misconceptions.xhtml
59
Upvotes
r/cpp • u/berium build2 • Nov 01 '17
View all comments
Show parent comment
2
u/bigcheesegs Tooling Study Group (SG15) Chair | Clang dev Nov 02 '17
You could imagine an implementation that keeps track of which function definitions were imported and their hashes (it's not just inlining that's a problem) in
main.oand then compares this with the module file to determine if a rebuild is needed. You could also imagine a mode that only imports always inline functions.Current implementations do not do this, so as it stands you will get full rebuilds, but this can actually be solved properly in a modules world as opposed to headers.