diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-16 20:46:42 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-16 20:46:42 +0000 |
commit | a543016fe07030f695d6d56fd22c8c8da617e0d7 (patch) | |
tree | 4f007b8435178d3d477774b9f2a69f4b70a1badf /include/clang/Basic/SourceLocation.h | |
parent | 47a3fcd4afe122b23f9e7b6148f147bfa460cfe8 (diff) |
Audit all callers of SourceManager::getCharacterData(); update some of
them to recover more gracefully on failure.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r-- | include/clang/Basic/SourceLocation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h index adfe213095..5b7f877200 100644 --- a/include/clang/Basic/SourceLocation.h +++ b/include/clang/Basic/SourceLocation.h @@ -206,7 +206,7 @@ public: unsigned getSpellingLineNumber() const; unsigned getSpellingColumnNumber() const; - const char *getCharacterData() const; + const char *getCharacterData(bool *Invalid = 0) const; const llvm::MemoryBuffer* getBuffer(bool *Invalid = 0) const; |