File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,22 @@ test suite, via ``utils/build-script --validation-test``.
49
49
Using `` utils/build-script `` will rebuild all targets which can add substantial
50
50
time to a debug cycle.
51
51
52
+ #### Using utils/run-test
53
+
54
+ Using ` utils/run-test ` allows the user to run a single test or tests in a specific directory.
55
+ This can significantly speed up the debug cycle. One can use this tool
56
+ instead of invoking ` lit.py ` directly as described in the next section.
57
+
58
+ Here is an example of running the ` test/Parse ` tests:
59
+ ```
60
+ % ${swift_SOURCE_ROOT}/utils/run-test --build-dir ${SWIFT_BUILD_DIR} ${swift_SOURCE_ROOT}/test/Parse
61
+ ```
62
+ Note that one example of a valid ` ${SWIFT_BUILD_DIR} ` is
63
+ ` {swift_SOURCE_ROOT}/../build/Ninja-DebugAssert/swift-linux-x86_64 ` .
64
+ It differs based on your build options and on which directory you invoke the script from.
65
+
66
+ For full help options, pass ` -h ` to ` utils/run-test ` utility.
67
+
52
68
#### Using lit.py
53
69
54
70
Using ` lit.py ` directly can provide more control and faster feedback to your
Original file line number Diff line number Diff line change @@ -7680,7 +7680,7 @@ void ClangImporter::Implementation::importAttributes(
7680
7680
// Ban CFRelease|CFRetain|CFAutorelease(CFTypeRef) as well as custom ones
7681
7681
// such as CGColorRelease(CGColorRef).
7682
7682
if (auto FD = dyn_cast<clang::FunctionDecl>(ClangDecl)) {
7683
- if (FD->getNumParams () == 1 &&
7683
+ if (FD->getNumParams () == 1 && FD-> getDeclName (). isIdentifier () &&
7684
7684
(FD->getName ().endswith (" Release" ) ||
7685
7685
FD->getName ().endswith (" Retain" ) ||
7686
7686
FD->getName ().endswith (" Autorelease" )) &&
You can’t perform that action at this time.
0 commit comments