llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.44k stars 12.16k forks source link

Clang needs a --tell-me-a-story flag #20374

Open Weverything opened 10 years ago

Weverything commented 10 years ago
Bugzilla Link 20000
Version trunk
OS All
CC @dpxf,@echristo,@zygoloid

Extended Description

Often times, users are not satisfied with single line diagnostic messages. People desire a longer narrative, something which engages them on a more literary level. To this end, I propose adding --tell-me-a-story flag to Clang which will cause Clang to enter story mode and enthrall users with majestic tales involving their favorite language constructs. For example:

$ clang --tell-me-a-story Once upon a time, a young string literal was told that he could be anything when he grew up. He didn't much like being a string literal and wanted very much to be a bool instead. So he journeyed far and wide, looking for the perfect bit of code. Eventually, he came to be inside an if-statement. And thus, "his wish" became true.

Weverything commented 9 years ago

See patch here: http://reviews.llvm.org/D8759

echristo commented 10 years ago

I think that it goes without saying that this is a necessary feature for any real compiler.