Author: dblaikie Date: Thu Aug 8 11:49:52 2013 New Revision: 187990 URL: http://llvm.org/viewvc/llvm-project?rev=187990&view=rev Log: Fix speling.
Patch by Richard ([email protected]) Modified: clang-tools-extra/trunk/remove-cstr-calls/RemoveCStrCalls.cpp Modified: clang-tools-extra/trunk/remove-cstr-calls/RemoveCStrCalls.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/remove-cstr-calls/RemoveCStrCalls.cpp?rev=187990&r1=187989&r2=187990&view=diff ============================================================================== --- clang-tools-extra/trunk/remove-cstr-calls/RemoveCStrCalls.cpp (original) +++ clang-tools-extra/trunk/remove-cstr-calls/RemoveCStrCalls.cpp Thu Aug 8 11:49:52 2013 @@ -64,21 +64,21 @@ using clang::tooling::CompilationDatabas // 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())); _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
