aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceLocation.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-16 20:46:42 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-16 20:46:42 +0000
commita543016fe07030f695d6d56fd22c8c8da617e0d7 (patch)
tree4f007b8435178d3d477774b9f2a69f4b70a1badf /include/clang/Basic/SourceLocation.h
parent47a3fcd4afe122b23f9e7b6148f147bfa460cfe8 (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.h2
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;