]> granicus.if.org Git - clang/commitdiff
Fix typo: rename Rewriter::getRewritenText() -> Rewriter::getRewrittenText().
authorTed Kremenek <kremenek@apple.com>
Thu, 7 Jan 2010 18:00:35 +0000 (18:00 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 7 Jan 2010 18:00:35 +0000 (18:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92922 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Rewrite/Rewriter.h
lib/Frontend/RewriteObjC.cpp
lib/Rewrite/Rewriter.cpp

index 29e78fa27958b6639843e5a64619cb4e02b49d69..1692180a6da9a3e2ee9a159c5b6849d80eb097ad 100644 (file)
@@ -146,13 +146,13 @@ public:
   /// are in the same file.  If not, this returns -1.
   int getRangeSize(SourceRange Range) const;
 
-  /// getRewritenText - Return the rewritten form of the text in the specified
+  /// getRewrittenText - Return the rewritten form of the text in the specified
   /// range.  If the start or end of the range was unrewritable or if they are
   /// in different buffers, this returns an empty string.
   ///
   /// Note that this method is not particularly efficient.
   ///
-  std::string getRewritenText(SourceRange Range) const;
+  std::string getRewrittenText(SourceRange Range) const;
 
   /// InsertText - Insert the specified string at the specified location in the
   /// original buffer.  This method returns true (and does nothing) if the input
index 3b2a5c9f36e5d76d80931119d700a3c06dbfcf53..7e354750076728593f456756a9ab770c4b68ff13 100644 (file)
@@ -4779,7 +4779,7 @@ Stmt *RewriteObjC::RewriteFunctionBodyOrGlobalInitializer(Stmt *S) {
     RewriteFunctionBodyOrGlobalInitializer(BE->getBody());
 
     // Now we snarf the rewritten text and stash it away for later use.
-    std::string Str = Rewrite.getRewritenText(BE->getSourceRange());
+    std::string Str = Rewrite.getRewrittenText(BE->getSourceRange());
     RewrittenBlockExprs[BE] = Str;
 
     Stmt *blockTranscribed = SynthBlockInitExpr(BE);
index 27a5f8b5ffebddf8c8712ed7a3232696b4f33310..9744496ac4fe0b99f13ec6d19cd673bb064ac783 100644 (file)
@@ -97,13 +97,13 @@ int Rewriter::getRangeSize(SourceRange Range) const {
   return EndOff-StartOff;
 }
 
-/// getRewritenText - Return the rewritten form of the text in the specified
+/// getRewrittenText - Return the rewritten form of the text in the specified
 /// range.  If the start or end of the range was unrewritable or if they are
 /// in different buffers, this returns an empty string.
 ///
 /// Note that this method is not particularly efficient.
 ///
-std::string Rewriter::getRewritenText(SourceRange Range) const {
+std::string Rewriter::getRewrittenText(SourceRange Range) const {
   if (!isRewritable(Range.getBegin()) ||
       !isRewritable(Range.getEnd()))
     return "";