[cfe-dev] "Invalid region to erase" on rewriting ObjCMethodDecl

s0rcy siddarth13+clangcfe at gmail.com
Sun Mar 16 04:08:24 PDT 2014


Can a FileID identifier point to multiple physical source files? 

After some more digging, I found that after a few rewrites a rewrite region
extends beyond the range of the current RewriteBuffer, resulting in that
error. I printed out debug info for the file used for creating
RewriteBuffers, and the same FileID (1) is used for two different physical
source files - is that expected? How does the buffer get mapped to different
physical files?



--
View this message in context: http://clang-developers.42468.n3.nabble.com/Invalid-region-to-erase-on-rewriting-ObjCMethodDecl-tp4038347p4038466.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list