mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 11:39:35 +00:00
Fix <rdar://problem/6297052> confused in some way by embedded /* */ comments.
llvm-svn: 57903
This commit is contained in:
parent
56aa731a63
commit
e020fa1b85
@ -595,8 +595,8 @@ void RewriteObjC::RewriteMethodDeclaration(ObjCMethodDecl *Method) {
|
||||
SourceLocation LocEnd = Method->getLocEnd();
|
||||
|
||||
if (SM->getLineNumber(LocEnd) > SM->getLineNumber(LocStart)) {
|
||||
InsertText(LocStart, "/* ", 3);
|
||||
ReplaceText(LocEnd, 1, ";*/ ", 4);
|
||||
InsertText(LocStart, "#if 0\n", 6);
|
||||
ReplaceText(LocEnd, 1, ";\n#endif\n", 9);
|
||||
} else {
|
||||
InsertText(LocStart, "// ", 3);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user