diff --git a/flawfinder b/flawfinder index cee78ee..b3af279 100755 --- a/flawfinder +++ b/flawfinder @@ -1461,7 +1461,8 @@ def process_c_file(f, patch_infos): linenumber = 1 ignoreline = -1 - cpplanguage = f.endswith(".cpp") or f.endswith(".cxx") or f.endswith(".cc") + cpplanguage = (f.endswith(".cpp") or f.endswith(".cxx") or f.endswith(".cc") + or f.endswith(".hpp")) incomment = 0 instring = 0 linebegin = 1