http://llvm.org/bugs/show_bug.cgi?id=21028
Bug ID: 21028
Summary: Deleting whole buffer with Rewriter::RemoveText
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
There's an assertion in Rewriter::RemoveText that seems to preclude removing
the whole text [http://clang.llvm.org/doxygen/Rewriter_8cpp_source.html#l00059]
assert(RealOffset+Size < Buffer.size() && "Invalid location");
Should this be:
assert(RealOffset+Size <= Buffer.size() && "Invalid location");
?
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs