Overview
This tool helps you explore Clang diagnostic (warning) flags and their relationships.
It shows which flags imply other flags, helping you optimize your compilation settings
by removing redundant warnings.
Legend - Flag Badges
Error
Error
This diagnostic is treated as an error by default
Default
Default
This flag is enabled by default in Clang
Partial
Partial
Some sub-flags of this warning group are enabled by
default
โ5
Implication Count
Number of flags implied by this flag (including
transitive)
Synonym
Synonym
This flag is an alias for another flag and inherits all its properties
How to Use
Browse and Search:
- Use the search box to filter flags by name
- Click any flag to see its relationships and documentation
- Press / to focus the search box
Add Flags to Basket:
- Click the + button next to any flag to add it to your basket
- The button changes to โ when the flag is in the basket
- Click โ again to remove the flag from the basket
Import Multiple Flags:
- Click "Import Compilation Flags" to expand the paste box
- Paste your compilation flags in any format
- Click "Select Flags" to add all valid flags to the basket
Supported formats:
-Wall -Wextra -Waddress
Wall, Wextra, address
-Wall
-Wextra
-Waddress
Analyze Redundancy:
- Once you have 2+ flags in the basket, the Redundancy Analysis panel appears
- The left column shows all your selected flags
- The right column shows the minimal equivalent set
- Redundant flags are marked with strikethrough and show which flag implies them
- Click "Copy Minimal Set" to copy the optimized flag list
Understanding Flag Relationships
Implies (โ): When you enable a flag like -Wall,
it automatically enables many other flags. These are shown in the "All implied flags" section.
Implied by (โ): Shows which other flags would enable this flag if they were
used.
Direct vs Transitive: Flags with a thicker border are directly implied.
Others are transitively implied (implied by an implied flag).
Example:
If you select -Waddress and -Wstring-compare:
โข -Wstring-compare is redundant (implied by -Waddress)
โข Minimal set: -Waddress
Tips
- Use the redundancy analysis to optimize your build configuration
- Click flag names in the analysis to see their details
- Share links to specific flags by clicking the ๐ icon in the detail view
- The basket persists while you browse, so you can build your selection gradually
๐ฌ Feedback & Discussion