diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-08-08 16:49:52 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-08-08 16:49:52 +0000 |
commit | 001ba2ec0bf70bc6631f07cc9b061c96bd8a9505 (patch) | |
tree | d61440b91582f869defb2b1f60338a648b0d9bc8 | |
parent | 687fc9a30b1543ce6469aaadb70fd1ef85223937 (diff) | |
download | bcm5719-llvm-001ba2ec0bf70bc6631f07cc9b061c96bd8a9505.tar.gz bcm5719-llvm-001ba2ec0bf70bc6631f07cc9b061c96bd8a9505.zip |
Fix speling.
Patch by Richard (legalize@xmission.com)
llvm-svn: 187990
-rw-r--r-- | clang-tools-extra/remove-cstr-calls/RemoveCStrCalls.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/remove-cstr-calls/RemoveCStrCalls.cpp b/clang-tools-extra/remove-cstr-calls/RemoveCStrCalls.cpp index 8a6b5587f04..0fd0136c94d 100644 --- a/clang-tools-extra/remove-cstr-calls/RemoveCStrCalls.cpp +++ b/clang-tools-extra/remove-cstr-calls/RemoveCStrCalls.cpp @@ -64,21 +64,21 @@ using clang::tooling::CompilationDatabase; // Returns an empty string if the text cannot be found. template <typename T> static std::string getText(const SourceManager &SourceManager, const T &Node) { - SourceLocation StartSpellingLocatino = + SourceLocation StartSpellingLocation = SourceManager.getSpellingLoc(Node.getLocStart()); SourceLocation EndSpellingLocation = SourceManager.getSpellingLoc(Node.getLocEnd()); - if (!StartSpellingLocatino.isValid() || !EndSpellingLocation.isValid()) { + if (!StartSpellingLocation.isValid() || !EndSpellingLocation.isValid()) { return std::string(); } bool Invalid = true; const char *Text = - SourceManager.getCharacterData(StartSpellingLocatino, &Invalid); + SourceManager.getCharacterData(StartSpellingLocation, &Invalid); if (Invalid) { return std::string(); } std::pair<FileID, unsigned> Start = - SourceManager.getDecomposedLoc(StartSpellingLocatino); + SourceManager.getDecomposedLoc(StartSpellingLocation); std::pair<FileID, unsigned> End = SourceManager.getDecomposedLoc(Lexer::getLocForEndOfToken( EndSpellingLocation, 0, SourceManager, LangOptions())); |