Skip to content
Snippets Groups Projects
user avatar
Erik Verbruggen authored
There was already a returns_localized_nsstring annotation to indicate
that the return value could be passed to UIKit methods that would
display them. However, those UIKit methods were hard-coded, and it was
not possible to indicate that other classes/methods in a code-base would
do the same.

The takes_localized_nsstring annotation can be put on function
parameters and selector parameters to indicate that those will also show
the string to the user.

Differential Revision: https://reviews.llvm.org/D35186


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308012 91177308-0d34-0410-b5e6-96231b3b80d8
6e00f9f0
History
Name Last commit Last update
..
Inputs
copypaste
diagnostics
engine
inlining
objc
CFContainers-invalid.c
CFContainers.mm
CFDateGC.m
CFNumber.c
CFRetainRelease_NSAssertionHandler.m
CGColorSpace.c
CheckNSError.m
DeallocMissingRelease.m
DeallocUseAfterFreeErrors.m
DynamicTypePropagation.m
MPIMock.h
Malloc+MismatchedDeallocator+NewDelete.cpp
Malloc+MismatchedDeallocator_intersections.cpp
Malloc+NewDelete_intersections.cpp
MemRegion.cpp
MismatchedDeallocator-checker-test.mm
MismatchedDeallocator-path-notes.cpp
MissingDealloc.m
MisusedMovedObject.cpp
NSContainers.m
NSPanel.m
NSString.m
NSWindow.m
NewDelete+MismatchedDeallocator_intersections.cpp
NewDelete-checker-test.cpp
NewDelete-custom.cpp
NewDelete-intersections.mm
NewDelete-path-notes.cpp
NewDelete-variadic.cpp
NewDeleteLeaks-PR18394.cpp
NewDeleteLeaks-PR19102.cpp
NoReturn.m
OSAtomic_mac.cpp
ObjCProperties.m
ObjCPropertiesSyntaxChecks.m
ObjCRetSigs.m
PR12905.c
PR24184.cpp
PR2599.m
PR2978.m
PR3991.m
PR7218.c
PR9741.cpp
additive-folding-range-constraints.c
additive-folding.cpp
analyzeOneFunction.m
analyzer-checker-config.c
analyzer-config.c
analyzer-config.cpp
analyzer-display-progress.cpp
analyzer-display-progress.m
analyzer-enabled-checkers.c
analyzer-stats.c
analyzer_test.py
array-struct-region.c
array-struct-region.cpp
array-struct.c
atomics.c
auto-obj-dtors-cfg-output.cpp
base-init.cpp
bitwise-ops.c
block-in-critical-section.cpp
blocks-no-inline.c
blocks.m
blocks.mm
bool-assignment.c
bstring.c
bstring.cpp
bug_hash_test.cpp
bug_hash_test.m
builtin-functions.cpp
builtin_signbit.cpp
call-invalidation.cpp
cast-to-struct.cpp
castexpr-callback.c
casts.c
casts.cpp
casts.m
cfg.cpp
cfref_PR2519.c
cfref_rdar6080742.c
check-deserialization.cpp
checker-plugins.c
chroot.c
comparison-implicit-casts.cpp
complex-init-list.cpp
complex.c
concrete-address.c
conditional-operator.cpp
conditional-path-notes.c
const-method-call.cpp
constant-folding.c
conversion.c
coverage.c