Skip to content

Commit d618f1c

Browse files
committed
Remove rdar links; NFC
This removes links to rdar, which is an internal bug tracker that the community doesn't have visibility into. See further discussion at: https://discourse.llvm.org/t/code-review-reminder-about-links-in-code-commit-messages/71847
1 parent d8dc1c2 commit d618f1c

File tree

1,244 files changed

+7680
-9800
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,244 files changed

+7680
-9800
lines changed

clang/lib/Analysis/CFG.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,8 +2252,7 @@ CFGBlock *CFGBuilder::Visit(Stmt * S, AddStmtChoice asc,
22522252
// FIXME: The expression inside a CXXDefaultArgExpr is owned by the
22532253
// called function's declaration, not by the caller. If we simply add
22542254
// this expression to the CFG, we could end up with the same Expr
2255-
// appearing multiple times.
2256-
// PR13385 / <rdar://problem/12156507>
2255+
// appearing multiple times. PR13385
22572256
//
22582257
// It's likewise possible for multiple CXXDefaultInitExprs for the same
22592258
// expression to be used in the same function (through aggregate

clang/lib/Analysis/RetainSummaryManager.cpp

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ const RetainSummary *RetainSummaryManager::getSummaryForObjCOrCFObject(
301301

302302
std::string RetTyName = RetTy.getAsString();
303303
if (FName == "pthread_create" || FName == "pthread_setspecific") {
304-
// Part of: <rdar://problem/7299394> and <rdar://problem/11282706>.
305304
// This will be addressed better with IPA.
306305
return getPersistentStopSummary();
307306
} else if(FName == "NSMakeCollectable") {
@@ -311,7 +310,6 @@ const RetainSummary *RetainSummaryManager::getSummaryForObjCOrCFObject(
311310
: getPersistentStopSummary();
312311
} else if (FName == "CMBufferQueueDequeueAndRetain" ||
313312
FName == "CMBufferQueueDequeueIfDataReadyAndRetain") {
314-
// Part of: <rdar://problem/39390714>.
315313
return getPersistentSummary(RetEffect::MakeOwned(ObjKind::CF),
316314
ScratchArgs,
317315
ArgEffect(DoNothing),
@@ -324,13 +322,11 @@ const RetainSummary *RetainSummaryManager::getSummaryForObjCOrCFObject(
324322
FName == "IOServiceNameMatching" ||
325323
FName == "IORegistryEntryIDMatching" ||
326324
FName == "IOOpenFirmwarePathMatching"))) {
327-
// Part of <rdar://problem/6961230>. (IOKit)
328325
// This should be addressed using a API table.
329326
return getPersistentSummary(RetEffect::MakeOwned(ObjKind::CF), ScratchArgs,
330327
ArgEffect(DoNothing), ArgEffect(DoNothing));
331328
} else if (FName == "IOServiceGetMatchingService" ||
332329
FName == "IOServiceGetMatchingServices") {
333-
// FIXES: <rdar://problem/6326900>
334330
// This should be addressed using a API table. This strcmp is also
335331
// a little gross, but there is no need to super optimize here.
336332
ScratchArgs = AF.add(ScratchArgs, 1, ArgEffect(DecRef, ObjKind::CF));
@@ -339,14 +335,12 @@ const RetainSummary *RetainSummaryManager::getSummaryForObjCOrCFObject(
339335
ArgEffect(DoNothing), ArgEffect(DoNothing));
340336
} else if (FName == "IOServiceAddNotification" ||
341337
FName == "IOServiceAddMatchingNotification") {
342-
// Part of <rdar://problem/6961230>. (IOKit)
343338
// This should be addressed using a API table.
344339
ScratchArgs = AF.add(ScratchArgs, 2, ArgEffect(DecRef, ObjKind::CF));
345340
return getPersistentSummary(RetEffect::MakeNoRet(),
346341
ScratchArgs,
347342
ArgEffect(DoNothing), ArgEffect(DoNothing));
348343
} else if (FName == "CVPixelBufferCreateWithBytes") {
349-
// FIXES: <rdar://problem/7283567>
350344
// Eventually this can be improved by recognizing that the pixel
351345
// buffer passed to CVPixelBufferCreateWithBytes is released via
352346
// a callback and doing full IPA to make sure this is done correctly.
@@ -357,15 +351,13 @@ const RetainSummary *RetainSummaryManager::getSummaryForObjCOrCFObject(
357351
ScratchArgs,
358352
ArgEffect(DoNothing), ArgEffect(DoNothing));
359353
} else if (FName == "CGBitmapContextCreateWithData") {
360-
// FIXES: <rdar://problem/7358899>
361354
// Eventually this can be improved by recognizing that 'releaseInfo'
362355
// passed to CGBitmapContextCreateWithData is released via
363356
// a callback and doing full IPA to make sure this is done correctly.
364357
ScratchArgs = AF.add(ScratchArgs, 8, ArgEffect(ArgEffect(StopTracking)));
365358
return getPersistentSummary(RetEffect::MakeOwned(ObjKind::CF), ScratchArgs,
366359
ArgEffect(DoNothing), ArgEffect(DoNothing));
367360
} else if (FName == "CVPixelBufferCreateWithPlanarBytes") {
368-
// FIXES: <rdar://problem/7283567>
369361
// Eventually this can be improved by recognizing that the pixel
370362
// buffer passed to CVPixelBufferCreateWithPlanarBytes is released
371363
// via a callback and doing full IPA to make sure this is done
@@ -386,10 +378,9 @@ const RetainSummary *RetainSummaryManager::getSummaryForObjCOrCFObject(
386378
ArgEffect(DoNothing), ArgEffect(DoNothing));
387379
} else if (FName == "dispatch_set_context" ||
388380
FName == "xpc_connection_set_context") {
389-
// <rdar://problem/11059275> - The analyzer currently doesn't have
390-
// a good way to reason about the finalizer function for libdispatch.
391-
// If we pass a context object that is memory managed, stop tracking it.
392-
// <rdar://problem/13783514> - Same problem, but for XPC.
381+
// The analyzer currently doesn't have a good way to reason about the
382+
// finalizer function for libdispatch. If we pass a context object that is
383+
// memory managed, stop tracking it.
393384
// FIXME: this hack should possibly go away once we can handle
394385
// libdispatch and XPC finalizers.
395386
ScratchArgs = AF.add(ScratchArgs, 1, ArgEffect(StopTracking));
@@ -740,7 +731,6 @@ RetainSummaryManager::canEval(const CallExpr *CE, const FunctionDecl *FD,
740731
// It's okay to be a little sloppy here.
741732
if (FName == "CMBufferQueueDequeueAndRetain" ||
742733
FName == "CMBufferQueueDequeueIfDataReadyAndRetain") {
743-
// Part of: <rdar://problem/39390714>.
744734
// These are not retain. They just return something and retain it.
745735
return std::nullopt;
746736
}
@@ -1243,7 +1233,6 @@ void RetainSummaryManager::InitializeMethodSummaries() {
12431233
// FIXME: For now we opt for false negatives with NSWindow, as these objects
12441234
// self-own themselves. However, they only do this once they are displayed.
12451235
// Thus, we need to track an NSWindow's display status.
1246-
// This is tracked in <rdar://problem/6062711>.
12471236
// See also http://llvm.org/bugs/show_bug.cgi?id=3714.
12481237
const RetainSummary *NoTrackYet =
12491238
getPersistentSummary(RetEffect::MakeNoRet(), ScratchArgs,
@@ -1259,7 +1248,6 @@ void RetainSummaryManager::InitializeMethodSummaries() {
12591248

12601249
// For NSNull, objects returned by +null are singletons that ignore
12611250
// retain/release semantics. Just don't track them.
1262-
// <rdar://problem/12858915>
12631251
addClassMethSummary("NSNull", "null", NoTrackYet);
12641252

12651253
// Don't track allocated autorelease pools, as it is okay to prematurely

clang/lib/CodeGen/CGObjCMac.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3329,7 +3329,7 @@ CGObjCCommonMac::EmitProtocolMethodTypes(Twine Name,
33293329
struct _objc_method_list *instance_methods;
33303330
struct _objc_method_list *class_methods;
33313331
struct _objc_protocol_list *protocols;
3332-
uint32_t size; // <rdar://4585769>
3332+
uint32_t size;
33333333
struct _objc_property_list *instance_properties;
33343334
struct _objc_property_list *class_properties;
33353335
};
@@ -4492,8 +4492,7 @@ llvm::FunctionType *FragileHazards::GetAsmFnType() {
44924492
indeterminate value. For the purposes of LLVM IR, it may be
44934493
sufficient to make loads and stores within the @try (to variables
44944494
declared outside the @try) volatile. This is necessary for
4495-
optimized correctness, but is not currently being done; this is
4496-
being tracked as rdar://problem/8160285
4495+
optimized correctness, but is not currently being done.
44974496
44984497
The basic framework for a @try-catch-finally is as follows:
44994498
{
@@ -5092,7 +5091,7 @@ enum ImageInfoFlags {
50925091
eImageInfo_OptimizedByDyld = (1 << 3), // This flag is set by the dyld shared cache.
50935092

50945093
// A flag indicating that the module has no instances of a @synthesize of a
5095-
// superclass variable. <rdar://problem/6803242>
5094+
// superclass variable.
50965095
eImageInfo_CorrectedSynthesize = (1 << 4), // This flag is no longer set by clang.
50975096
eImageInfo_ImageIsSimulated = (1 << 5),
50985097
eImageInfo_ClassProperties = (1 << 6)

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5989,7 +5989,7 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) {
59895989
}
59905990

59915991
// Note: -fwritable-strings doesn't make the backing store strings of
5992-
// CFStrings writable. (See <rdar://problem/10657500>)
5992+
// CFStrings writable.
59935993
auto *GV =
59945994
new llvm::GlobalVariable(getModule(), C->getType(), /*isConstant=*/true,
59955995
llvm::GlobalValue::PrivateLinkage, C, ".str");

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5531,8 +5531,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
55315531
}
55325532

55335533
// Enable -mconstructor-aliases except on darwin, where we have to work around
5534-
// a linker bug (see <rdar://problem/7651567>), and CUDA device code, where
5535-
// aliases aren't supported.
5534+
// a linker bug, and CUDA device code, where aliases aren't supported.
55365535
if (!RawTriple.isOSDarwin() && !RawTriple.isNVPTX())
55375536
CmdArgs.push_back("-mconstructor-aliases");
55385537

clang/lib/Sema/SemaObjCProperty.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,9 +2795,7 @@ void Sema::CheckObjCPropertyAttributes(Decl *PDecl,
27952795
}
27962796

27972797
// FIXME: Implement warning dependent on NSCopying being
2798-
// implemented. See also:
2799-
// <rdar://5168496&4855821&5607453&5096644&4947311&5698469&4947014&5168496>
2800-
// (please trim this list while you are at it).
2798+
// implemented. (Please trim this list while you are at it.)
28012799
}
28022800

28032801
if (!(Attributes & ObjCPropertyAttribute::kind_copy) &&

clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ void WalkAST::VisitForStmt(ForStmt *FS) {
219219

220220
//===----------------------------------------------------------------------===//
221221
// Check: floating point variable used as loop counter.
222-
// Originally: <rdar://problem/6336718>
223222
// Implements: CERT security coding advisory FLP-30.
224223
//===----------------------------------------------------------------------===//
225224

@@ -468,7 +467,6 @@ void WalkAST::checkCall_bzero(const CallExpr *CE, const FunctionDecl *FD) {
468467

469468
//===----------------------------------------------------------------------===//
470469
// Check: Any use of 'gets' is insecure.
471-
// Originally: <rdar://problem/6335715>
472470
// Implements (part of): 300-BSI (buildsecurityin.us-cert.gov)
473471
// CWE-242: Use of Inherently Dangerous Function
474472
//===----------------------------------------------------------------------===//
@@ -848,7 +846,6 @@ bool WalkAST::checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) {
848846

849847
//===----------------------------------------------------------------------===//
850848
// Check: Linear congruent random number generators should not be used
851-
// Originally: <rdar://problem/63371000>
852849
// CWE-338: Use of cryptographically weak prng
853850
//===----------------------------------------------------------------------===//
854851

@@ -892,7 +889,6 @@ void WalkAST::checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) {
892889

893890
//===----------------------------------------------------------------------===//
894891
// Check: 'random' should not be used
895-
// Originally: <rdar://problem/63371000>
896892
//===----------------------------------------------------------------------===//
897893

898894
void WalkAST::checkCall_random(const CallExpr *CE, const FunctionDecl *FD) {
@@ -991,7 +987,6 @@ void WalkAST::checkMsg_decodeValueOfObjCType(const ObjCMessageExpr *ME) {
991987

992988
//===----------------------------------------------------------------------===//
993989
// Check: Should check whether privileges are dropped successfully.
994-
// Originally: <rdar://problem/6337132>
995990
//===----------------------------------------------------------------------===//
996991

997992
void WalkAST::checkUncheckedReturnValue(CallExpr *CE) {

clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,8 @@ RefLeakReportVisitor::getEndPath(BugReporterContext &BRC,
786786
assert(RV);
787787

788788
if (RV->getKind() == RefVal::ErrorLeakReturned) {
789-
// FIXME: Per comments in rdar://6320065, "create" only applies to CF
790-
// objects. Only "copy", "alloc", "retain" and "new" transfer ownership
791-
// to the caller for NS objects.
789+
// FIXME: "create" only applies to CF objects. Only "copy", "alloc",
790+
// "retain" and "new" transfer ownership to the caller for NS objects.
792791
const Decl *D = &EndN->getCodeDecl();
793792

794793
os << (isa<ObjCMethodDecl>(D) ? " is returned from a method "

clang/lib/StaticAnalyzer/Core/CallEvent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ RuntimeDefinition CXXInstanceCall::getRuntimeDefinition() const {
765765
// the static type. However, because we currently don't update
766766
// DynamicTypeInfo when an object is cast, we can't actually be sure the
767767
// DynamicTypeInfo is up to date. This assert should be re-enabled once
768-
// this is fixed. <rdar://problem/12287087>
768+
// this is fixed.
769769
//assert(!MD->getParent()->isDerivedFrom(RD) && "Bad DynamicTypeInfo");
770770

771771
return {};

clang/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void ExprEngine::VisitObjCMessage(const ObjCMessageExpr *ME,
178178
// We could avoid dropping coverage by performing an explicit case split
179179
// on each method call -- but this would get very expensive. An alternative
180180
// would be to introduce lazy constraints.
181-
// FIXME: This ignores many potential bugs (<rdar://problem/11733396>).
181+
// FIXME: This ignores many potential bugs.
182182
// Revisit once we have lazier constraints.
183183
if (Msg->isInstanceMessage()) {
184184
SVal recVal = Msg->getReceiverSVal();

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)