clang-diagnostic-flags-matrix

clang diagnostic flags matrix generator

A simple script to generate a matrix of clang diagnostic flags.

Better Uptime Badge

Introduction

I created this application to support a today I learned (TIL) note on what diagnostic flags are available in which version. The matrix is published:

The matrix does not contain information for all versions of clang and the matrix may contain errors if the code is not working as expected.

The URL do not point directly to the llvm releases documentation site, they point to a proxy. The reason for this was that the Markdown rendering broke on the GitHub website.

In order to cut the size of the matrix, I introduced the use of a proxy, which takes a short form of the URL translates to the full URL.

Example:

It emitted by the clang diagnostic flags matrix generator (diag.pl). Parsed from:

As part of the data collection fase.

The proxy reverts this translation and redirects to the proper page. I have published a blog post, giving some more details.

Usage

carton exec -- perl diag.pl > matrix.md

Installation

All requiresments are listed in the cpanfile, so installation can be performed easilyusing carton:

carton

A generated version of the matrix is available.

Resources and References