log-analyzer.el: Bugs fix and Add a test case for C++.