Add source location to the null deref warning. Place the asterisks next to the type as in the rest of cling.
Use isatty first, before getchar()
Use some tricks to adjust the source location of the diagnostic.
Be even more precise - c++ reference guide says that getchar is in cstdio.