diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-11-09 19:40:48 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-11-09 19:40:48 +0000 |
commit | 9410928fb8434e8d26364cee45ebc1b798aafe41 (patch) | |
tree | f337382602732ff6f284e8ee5b2daa9f6d7debda /include/clang/Basic/SourceLocation.h | |
parent | ecd27bf256c92f56c7c7ede6f40ec5d31a40b35e (diff) |
Add a SourceLocation::printToString() that returns in a std::string what dump()
writes to stderr; for debugging purposes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r-- | include/clang/Basic/SourceLocation.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h index d6bba38563..0bd0c92b00 100644 --- a/include/clang/Basic/SourceLocation.h +++ b/include/clang/Basic/SourceLocation.h @@ -171,6 +171,7 @@ public: } void print(raw_ostream &OS, const SourceManager &SM) const; + LLVM_ATTRIBUTE_USED std::string printToString(const SourceManager &SM) const; void dump(const SourceManager &SM) const; }; |