[clang-tools-extra] r187990 - Fix speling.

David Blaikie dblaikie at gmail.com
Thu Aug 8 09:49:52 PDT 2013


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 (legalize at xmission.com)

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()));





More information about the cfe-commits mailing list