tpope/vim-sleuth — pull request #15 by martong (2014-08-05 08:30:28+00:00)
Title: Added *.h to c filetype and [*.h, *.cpp] to cpp filetype.

Based on the conclusions of https://github.com/tpope/vim-sleuth/pull/14 this is the solution for .h and .cpp extensions.