chiark / gitweb /
doxygen: no need for the .h.nostrip language.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 7 Dec 2017 10:21:14 +0000 (11:21 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Thu, 7 Dec 2017 10:21:14 +0000 (11:21 +0100)
Doxygen actually has a STRIP_CODE_COMMENTS option, which does exactly
what's needed.

doc/doxygen.rst
doxygen/dox2html5.py

index 6bbc7d248f1df485915e36d7b52215b2ad13e9ec..254bbf85b952128b3dde592a5c60e221062430bc 100644 (file)
@@ -449,9 +449,6 @@ Filename suffix     Detected language
 ``.h``              C++ (instead of C)
 ``.h.cmake``        C++ (instead of CMake), as this extension is often used for
                     C++ headers that are preprocessed with CMake
-``.h.nostrip``      C++. Useful for embedding code snippets with Doxygen
-                    comment block, as Doxygen would strip them with plain
-                    ``.h``.
 ``.glsl``           GLSL. For some reason, stock Pygments detect only
                     ``.vert``, ``.frag`` and ``.geo`` extensions as GLSL.
 ``.conf``           INI (key-value configuration files)
index 58999de766d730e712a2c31498d07c85519cdac5..5a43d70884fbbcf6ece7f8720810fa2b94a33c15 100755 (executable)
@@ -500,7 +500,6 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET.
             # Custom mapping of filenames to languages
             mapping = [('.h', 'c++'),
                        ('.h.cmake', 'c++'),
-                       ('.h.nostrip', 'c++'),
                        # Pygments knows only .vert, .frag, .geo
                        ('.glsl', 'glsl'),
                        ('.conf', 'ini'),