Skip to content

Commit 0f1c1be

Browse files
committed
[clang] Remove rdar links; NFC
We have a new policy in place making links to private resources something we try to avoid in source and test files. Normally, we'd organically switch to the new policy rather than make a sweeping change across a project. However, Clang is in a somewhat special circumstance currently: recently, I've had several new contributors run into rdar links around test code which their patch was changing the behavior of. This turns out to be a surprisingly bad experience, especially for newer folks, for a handful of reasons: not understanding what the link is and feeling intimidated by it, wondering whether their changes are actually breaking something important to a downstream in some way, having to hunt down strangers not involved with the patch to impose on them for help, accidental pressure from asking for potentially private IP to be made public, etc. Because folks run into these links entirely by chance (through fixing bugs or working on new features), there's not really a set of problematic links to focus on -- all of the links have basically the same potential for causing these problems. As a result, this is an omnibus patch to remove all such links. This was not a mechanical change; it was done by manually searching for rdar, radar, radr, and other variants to find all the various problematic links. From there, I tried to retain or reword the surrounding comments so that we would lose as little context as possible. However, because most links were just a plain link with no supporting context, the majority of the changes are simple removals. Differential Review: https://reviews.llvm.org/D158071
1 parent 5268389 commit 0f1c1be

File tree

1,254 files changed

+7691
-9809
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,254 files changed

+7691
-9809
lines changed

clang/lib/Analysis/RetainSummaryManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ const RetainSummary *RetainSummaryManager::getSummaryForObjCOrCFObject(
395395
return getDoNothingSummary();
396396
} else if (FName.startswith("NS") && FName.contains("Insert")) {
397397
// Allowlist NSXXInsertXX, for example NSMapInsertIfAbsent, since they can
398-
// be deallocated by NSMapRemove. (radar://11152419)
398+
// be deallocated by NSMapRemove.
399399
ScratchArgs = AF.add(ScratchArgs, 1, ArgEffect(StopTracking));
400400
ScratchArgs = AF.add(ScratchArgs, 2, ArgEffect(StopTracking));
401401
return getPersistentSummary(RetEffect::MakeNoRet(),

clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ void UndefResultChecker::checkPostStmt(const BinaryOperator *B,
7979

8080
// Do not report assignments of uninitialized values inside swap functions.
8181
// This should allow to swap partially uninitialized structs
82-
// (radar://14129997)
8382
if (const FunctionDecl *EnclosingFunctionDecl =
8483
dyn_cast<FunctionDecl>(C.getStackFrame()->getDecl()))
8584
if (C.getCalleeName(EnclosingFunctionDecl) == "swap")

clang/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ void UndefinedAssignmentChecker::checkBind(SVal location, SVal val,
3939

4040
// Do not report assignments of uninitialized values inside swap functions.
4141
// This should allow to swap partially uninitialized structs
42-
// (radar://14129997)
4342
if (const FunctionDecl *EnclosingFunctionDecl =
4443
dyn_cast<FunctionDecl>(C.getStackFrame()->getDecl()))
4544
if (C.getCalleeName(EnclosingFunctionDecl) == "swap")

clang/test/ARCMT/GC-check-warn-nsalloc.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %clang_cc1 -arcmt-action=check -no-ns-alloc-error -triple x86_64-apple-darwin10 -fobjc-gc-only %s 2>&1 | grep 'warning: \[rewriter\] call returns pointer to GC managed memory'
22
// RUN: %clang_cc1 -arcmt-action=check -no-ns-alloc-error -triple x86_64-apple-darwin10 -fobjc-gc-only -x objective-c++ %s 2>&1 | grep 'warning: \[rewriter\] call returns pointer to GC managed memory'
33
// TODO: Investigate VerifyDiagnosticConsumer failures on these tests when using -verify.
4-
// rdar://10532541
54

65
typedef unsigned NSUInteger;
76
void *__strong NSAllocateCollectable(NSUInteger size, NSUInteger options);

clang/test/ARCMT/GC-no-finalize-removal.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ -(void)test1:(CFTypeRef *)cft {
7777
}
7878
@end
7979

80-
// rdar://10532449
8180
@interface rdar10532449
8281
@property (assign) id assign_prop;
8382
@property (assign, readonly) id __strong strong_readonly_prop;

clang/test/ARCMT/GC-no-finalize-removal.m.result

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ __attribute__((objc_arc_weak_reference_unavailable))
8585
}
8686
@end
8787

88-
// rdar://10532449
8988
@interface rdar10532449
9089
@property (strong) id assign_prop;
9190
@property (strong, readonly) id strong_readonly_prop;

clang/test/ARCMT/GC.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ -(void)test1:(CFTypeRef *)cft {
7777
}
7878
@end
7979

80-
// rdar://10532449
8180
@interface rdar10532449
8281
@property (assign) id assign_prop;
8382
@property (assign, readonly) id __strong strong_readonly_prop;

clang/test/ARCMT/GC.m.result

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ __attribute__((objc_arc_weak_reference_unavailable))
7272
}
7373
@end
7474

75-
// rdar://10532449
7675
@interface rdar10532449
7776
@property (strong) id assign_prop;
7877
@property (strong, readonly) id strong_readonly_prop;

clang/test/ARCMT/check-with-pch.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: %clang_cc1 -include-pch %t.pch -arcmt-action=check -verify -triple x86_64-apple-darwin10 -fblocks -Werror %s
33
// REQUIRES: x86-registered-target
44

5-
// rdar://9601437
65
@interface I9601437 {
76
__unsafe_unretained id x;
87
}

clang/test/ARCMT/checking.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ id test9(Test9 *v) {
288288
return [v init1];
289289
}
290290

291-
// rdar://9491791
292291
void rdar9491791(int p) {
293292
switch (p) {
294293
case 3:;
@@ -302,12 +301,10 @@ void rdar9491791(int p) {
302301

303302
#define RELEASE_MACRO(x) do { [x release]; } while(1)
304303

305-
// rdar://9504750
306304
void rdar9504750(id p) {
307305
RELEASE_MACRO(p); // expected-error {{ARC forbids explicit message send of 'release'}}
308306
}
309307

310-
// rdar://8939557
311308
@interface TestReadonlyProperty : NSObject
312309
@property(assign,readonly) NSObject *value;
313310
@end
@@ -319,7 +316,6 @@ - (void)viewDidLoad {
319316
}
320317
@end
321318

322-
// rdar://9601437
323319
@interface I9601437 {
324320
__unsafe_unretained id x;
325321
}

clang/test/ARCMT/no-canceling-bridge-to-bridge-cast.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clang_cc1 -arcmt-action=check -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c -verify %s
2-
// rdar://10387088
32
typedef const void * CFTypeRef;
43
CFTypeRef CFBridgingRetain(id X);
54
id CFBridgingRelease(CFTypeRef);

clang/test/ARCMT/nonobjc-to-objc-cast-2.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ CFStringRef f3(void) {
5656

5757
extern void NSLog(NSString *format, ...);
5858

59-
// rdar://13192395
6059
void f4(NSString *s) {
6160
NSLog(@"%@", (CFStringRef)s); // expected-error {{cast of Objective-C pointer type 'NSString *' to C pointer type 'CFStringRef' (aka 'const struct __CFString *') requires a bridged cast}} \
6261
// expected-note{{use __bridge to convert directly (no change in ownership)}} \

0 commit comments

Comments
 (0)