From 44d5bec27991f8d1352070eb0f763c5424ad1cd2 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 11 Feb 2023 15:53:38 +0100 Subject: [PATCH] bug 548438 VERBATIM_HEADERS - only works with header files with file 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). --- src/filedef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filedef.cpp b/src/filedef.cpp index 73f12d2a4a1..595b1428e0a 100644 --- a/src/filedef.cpp +++ b/src/filedef.cpp @@ -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(); }