diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-09 20:31:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-09 20:31:55 +0000 |
commit | c3d8d57b010e2ed15a2a7685d5761db14f5d2252 (patch) | |
tree | 05a43de504096eb5c88516659bda8a62c082a563 /include/clang/Lex/Preprocessor.h | |
parent | 65b3c2759fa66fa46414410feb1520cd6d72a93b (diff) |
Add dumping support for locations, make -dumptokens print out the location
info of each token.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 707a93243f..98b946ab54 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -310,6 +310,7 @@ public: /// DumpToken - Print the token to stderr, used for debugging. /// void DumpToken(const Token &Tok, bool DumpFlags = false) const; + void DumpLocation(SourceLocation Loc) const; void DumpMacro(const MacroInfo &MI) const; /// AdvanceToTokenCharacter - Given a location that specifies the start of a |