else:
filename = i.attrib['filename']
+ # Empty code block with a full filename -- probably a @skip /
+ # @skipline / ... that didn't match anything. Be nice and warn,
+ # because Doxygen doesn't.
+ if not filename.startswith('.') and not code.strip():
+ logging.warning("{}: @include / @snippet / @skip[line] produced an empty code block, probably a wrong match expression?".format(state.current))
+
# Custom mapping of filenames to languages
mapping = [('.h', 'c++'),
('.h.cmake', 'c++'),
Code that produces warnings
</h1>
<pre class="m-code"><span class="c1">// Code without language</span>
-<span class="c1">// description</span></pre><pre class="m-code">Code that has unrecognizable format.</pre>
+<span class="c1">// description</span></pre><pre class="m-code">Code that has unrecognizable format.</pre><p>Snippet that doesn't match anything:</p><pre class="m-code"></pre>
</div>
</div>
</div>