aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/clang/Rewrite/Rewriter.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Rewrite/Rewriter.h b/include/clang/Rewrite/Rewriter.h
index 3e6dc9a9e9..857c77b16e 100644
--- a/include/clang/Rewrite/Rewriter.h
+++ b/include/clang/Rewrite/Rewriter.h
@@ -127,9 +127,9 @@ public:
int getRangeSize(SourceRange Range) const;
/// InsertText - Insert the specified string at the specified location in the
- /// original buffer. This method is only valid on rewritable source
- /// locations.
- void InsertText(SourceLocation Loc, const char *StrData, unsigned StrLen);
+ /// original buffer. This method returns true (and does nothing) if the input
+ /// location was not rewritable, false otherwise.
+ bool InsertText(SourceLocation Loc, const char *StrData, unsigned StrLen);
/// RemoveText - Remove the specified text region. This method is only valid
/// on a rewritable source location.