New utility for pattern-matching style over std::variant#3237
Conversation
|
clang-tidy review says "All clean, LGTM! 👍" |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
@Lestropie Here, |
|
Ideally it should skip single-line comments. This can be challenging in some circumstances though. Some Given in this instance the code snippet provided in the comment would be flagged by |
Co-authored-by: Robert Smith <robert.smith@florey.edu.au>
|
clang-tidy review says "All clean, LGTM! 👍" |
This adds a new utility for pattern-matching style over
std::variant, which is a type-safe version of a discriminated union introduced in C++17.Example: