[cfe-commits] r42941 - in /cfe/trunk: Rewrite/Rewriter.cpp clang.xcodeproj/project.pbxproj
Chris Lattner
sabre at nondot.org
Fri Oct 12 17:17:04 PDT 2007
Author: lattner
Date: Fri Oct 12 19:17:04 2007
New Revision: 42941
URL: http://llvm.org/viewvc/llvm-project?rev=42941&view=rev
Log:
Woo, tab deletion now works. Next lets see if we can
insert stuff.
Modified:
cfe/trunk/Rewrite/Rewriter.cpp
cfe/trunk/clang.xcodeproj/project.pbxproj
Modified: cfe/trunk/Rewrite/Rewriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Rewrite/Rewriter.cpp?rev=42941&r1=42940&r2=42941&view=diff
==============================================================================
--- cfe/trunk/Rewrite/Rewriter.cpp (original)
+++ cfe/trunk/Rewrite/Rewriter.cpp Fri Oct 12 19:17:04 2007
@@ -27,7 +27,7 @@
// Move past any deltas that are relevant.
// FIXME: binary search.
for (; DeltaIdx != Deltas.size() &&
- OrigOffset < Deltas[DeltaIdx].FileLoc; ++DeltaIdx)
+ Deltas[DeltaIdx].FileLoc < OrigOffset; ++DeltaIdx)
ResultOffset += Deltas[DeltaIdx].Delta;
if (AfterInserts && DeltaIdx != Deltas.size() &&
@@ -44,7 +44,7 @@
// Skip over any unrelated deltas.
for (; DeltaIdx != Deltas.size() &&
- OrigOffset < Deltas[DeltaIdx].FileLoc; ++DeltaIdx)
+ Deltas[DeltaIdx].FileLoc < OrigOffset; ++DeltaIdx)
;
// If there is no a delta for this offset, insert a new delta record.
Modified: cfe/trunk/clang.xcodeproj/project.pbxproj
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/clang.xcodeproj/project.pbxproj?rev=42941&r1=42940&r2=42941&view=diff
==============================================================================
--- cfe/trunk/clang.xcodeproj/project.pbxproj (original)
+++ cfe/trunk/clang.xcodeproj/project.pbxproj Fri Oct 12 19:17:04 2007
@@ -742,7 +742,6 @@
08FB7793FE84155DC02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "clang" */;
- compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1;
mainGroup = 08FB7794FE84155DC02AAC07 /* clang */;
projectDirPath = "";
More information about the cfe-commits
mailing list