add static for cpp | h | c lines locate a dir