[PATCH] Fix spelling

Richard legalize at xmission.com
Tue Aug 6 02:22:55 PDT 2013


LegalizeAdulthood added you to the CC list for the revision "Fix spelling".

Hi chandlerc,

Location spelled wrong

http://llvm-reviews.chandlerc.com/D1286

Files:
  remove-cstr-calls/RemoveCStrCalls.cpp

Index: remove-cstr-calls/RemoveCStrCalls.cpp
===================================================================
--- remove-cstr-calls/RemoveCStrCalls.cpp
+++ remove-cstr-calls/RemoveCStrCalls.cpp
@@ -64,21 +64,21 @@
 // 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()));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1286.1.patch
Type: text/x-patch
Size: 1373 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130806/1ed739ad/attachment.bin>


More information about the cfe-commits mailing list