Skip to content
Commit 0698385b authored by Bernd Buschinski's avatar Bernd Buschinski
Browse files

Fix missing header guard warning for a standalone header being always present

Meaning a header that is not included in any other source file in your project.
Such a header would always have the "missing include guard" warning, regardless
if guards are present or not.

This is caused by clang_isFileMultipleIncludeGuarded returning 0 (not guarded) for
standalone header. I added a clang_Location_isFromMainFile check, which checks if
the "source location" is in the main file, which (if we only have a header) is true.
parent d348a833
Pipeline #14068 passed with stage
in 54 minutes and 14 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment