diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-05 07:24:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-05 07:24:28 +0000 |
commit | 0102c30896c83f70cf6b6519fd5c674cb981c0b5 (patch) | |
tree | edcb5708d29d96daee1d2a29cf94b5cdd7aec501 /lib/Analysis/BugReporter.cpp | |
parent | 741e73efbf2ef0b7187358e5f62d79ebd78d21e0 (diff) |
When the parser is live, print out the location and spelling of its current token.
For example:
Stack dump:
0. Program arguments: clang t.cpp
1. t.cpp:4:8: current parser token: ';'
2. t.cpp:3:1: parsing struct/union/class body 'x'
Abort
It is weird that the parser is always "underneath" any parse context
actions, but the parser is created first.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
0 files changed, 0 insertions, 0 deletions