Skip to content

Commit

Permalink
bug 548438 VERBATIM_HEADERS - only works with header files with file …
Browse files Browse the repository at this point in the history
…type

Also check whether the file is included so also files with unknown and without extensions are caught as include files (besides files with a  known header extension).
  • Loading branch information
albert-github committed Feb 11, 2023
1 parent 8887ee5 commit 44d5bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filedef.cpp
Expand Up @@ -1426,7 +1426,7 @@ bool FileDefImpl::generateSourceFile() const
bool verbatimHeaders = Config_getBool(VERBATIM_HEADERS);
return !isReference() &&
(sourceBrowser ||
(verbatimHeaders && guessSection(name())==Entry::HEADER_SEC)
(verbatimHeaders && (guessSection(name())==Entry::HEADER_SEC || !m_includedByMap.empty()))
) &&
!isDocumentationFile();
}
Expand Down

0 comments on commit 44d5bec

Please sign in to comment.