Can you try if adding the tpp file extension to the list of source extensions in "Project -> Project tree -> Edit file types and categories" fixes your problems?
If not then we'll probably have to edit the source of C::B.
p.s. I can't judge people, but it is a bit annoying that there are 5-10 different extensions for the same thing (cpp, C, cxx, c++, cc, tpp, etc). I see very little benefit using something different than cpp.