Coder Social home page Coder Social logo

doxygencompare's Introduction

Doxygen Compare

Compare two versions of the same API with Doxygen's XML output.

When you want to find out what has changed between two version of the same C++ library, you can have Doxygen generate the index as XML file, which can then be imported by Doxygen Compare and determine what has been added or removed.

This was quickly put together as a proof of concept and may or may not be expanded in the future.

Usage

Step 1 - Generate Doxygen Documentation

Use the -x flag or set the GENERATE_XML variable in the doxygen file. This will generate not just the HTML, or whatever other output you've selected, but also create XML files with all the necessary information.

For now Doxygen Compare only supports the index.xml file.

Generate both XML files, for the old and the new API version.

Step 2 - Run Doxygen Compare

Doxygen Compare offers the following parameters:

  -a, --fileA    Required. First doxygen index.xml file for comparison

  -b, --fileB    Required. Second doxygen index.xml file for comparison

  --help         Display this help screen.

  --version      Display version information.

You can run it for example like this:

DoxygenCompare.exe -a ../build2/doc/xml/index.xml -b ../build3/doc/xml/index.xml

How It Works

  • Doxygen provides with the XML output also XSD files, with which one can generate C# classes
    • Run: xsd ./index.xsd /out:class /language:CS /classes
    • On Windows the xsd.exe can be for example located at: C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8.1 Tools
  • Doxygen Compare reads the two XML versions and matches via the classes, namespaces, and function names to determine, what as been added or removed.

Enhancements

  • Detect properties changes
  • Detect enum changes
  • Detect function signature changes
  • Additional automations, e.g. through GitHub Actions
  • Different comparison result/output
  • Support as library
  • Publishing as NuGet package

Tooling Used / Required

License

The code itself is is available under 2 licenses: Public Domain or MIT -- choose whichever you prefer, see also the license file.

doxygencompare's People

Contributors

expl0it3r avatar

Stargazers

Nils Durner avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.