summaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceLocation.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-11-09 19:40:48 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-11-09 19:40:48 +0000
commit9410928fb8434e8d26364cee45ebc1b798aafe41 (patch)
treef337382602732ff6f284e8ee5b2daa9f6d7debda /include/clang/Basic/SourceLocation.h
parentecd27bf256c92f56c7c7ede6f40ec5d31a40b35e (diff)
downloadclang-9410928fb8434e8d26364cee45ebc1b798aafe41.tar.gz
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.h1
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;
};