Commit 650015eb authored by Eike Ziller's avatar Eike Ziller

MimeTypes: Avoid checking magic matchers for .h files

If we have "*.h" glob pattern with same weight in c-hdr and c++hdr, it
also opens the files and checks magic matchers (for _all_ mime types, but
that's another issue).

Change-Id: I5dde180b3392d3a11354dce61fa577345c97b295
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 168d9201
......@@ -6,6 +6,13 @@
<glob pattern="*.cu"/>
</mime-type>
<mime-type type="text/x-chdr">
<comment>C header</comment>
<sub-class-of type="text/x-csrc"/>
<!-- reduce weight from freedesktop to avoid conflict with text/x-c++hdr -->
<glob pattern="*.h" weight="30"/>
</mime-type>
<!-- Those are used to find matching headers by the CppTools plugin,
so, they should match -->
<mime-type type="text/x-c++hdr">
......
Markdown is supported
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