summaryrefslogtreecommitdiffstats
path: root/clang/Driver/RewriteTest.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2007-12-11 23:04:08 +0000
committerFariborz Jahanian <fjahanian@apple.com>2007-12-11 23:04:08 +0000
commit16e703ade5b596316dbd61a6ef0e37a3b2f7a6d5 (patch)
treef647d88ae892bbb1b5b6603d97cf6b440f601848 /clang/Driver/RewriteTest.cpp
parent89fbadd3be10a996ad533de23eba704c2a6befa6 (diff)
downloadbcm5719-llvm-16e703ade5b596316dbd61a6ef0e37a3b2f7a6d5.tar.gz
bcm5719-llvm-16e703ade5b596316dbd61a6ef0e37a3b2f7a6d5.zip
80-column please.
llvm-svn: 44888
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
-rw-r--r--clang/Driver/RewriteTest.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp
index 237ed21f1d2..bb8f772e706 100644
--- a/clang/Driver/RewriteTest.cpp
+++ b/clang/Driver/RewriteTest.cpp
@@ -990,6 +990,7 @@ static void scanToNextArgument(const char *&argRef) {
}
assert(angle == 0 && "scanToNextArgument - bad protocol type syntax");
}
+
bool RewriteTest::needToScanForQualifiers(QualType T) {
// FIXME: we don't currently represent "id <Protocol>" in the type system.
if (T == Context->getObjcIdType())
@@ -1057,8 +1058,10 @@ void RewriteTest::RewriteObjcQualifiedInterfaceTypes(Decl *Dcl) {
const char *startRef = 0, *endRef = 0;
if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
// Get the locations of the startRef, endRef.
- SourceLocation LessLoc = Loc.getFileLocWithOffset(startRef-startFuncBuf);
- SourceLocation GreaterLoc = Loc.getFileLocWithOffset(endRef-startFuncBuf+1);
+ SourceLocation LessLoc =
+ Loc.getFileLocWithOffset(startRef-startFuncBuf);
+ SourceLocation GreaterLoc =
+ Loc.getFileLocWithOffset(endRef-startFuncBuf+1);
// Comment out the protocol references.
Rewrite.InsertText(LessLoc, "/*", 2);
Rewrite.InsertText(GreaterLoc, "*/", 2);
OpenPOWER on IntegriCloud