This is a renewed attempt to submit opt-viewer improvements, originally started at https://reviews.llvm.org/D131518.
Part 1/N is just an addition of an example 1-file cpp project with a build script and a run_optview.sh script.
The current submission includes most of @fhahn comments (clang-format, llvm license header,etc.).
The only request knowingly not addressed yet is to make the small utility script ./opt-viewer/cpp_optimization_example/run_optview.sh create a virtual-env and install dependencies. I'm not sure if this would make it cleaner or dirtier... I think I personally would have been surprised by such side effects for a run of a script which was supposed to just render htmls. Opinions are very welcome.