Author: Zarko Todorovski Date: 2021-11-30T15:06:04-05:00 New Revision: c379911a94c1e777c232d1e3e65f5c70d0453234
URL: https://github.com/llvm/llvm-project/commit/c379911a94c1e777c232d1e3e65f5c70d0453234 DIFF: https://github.com/llvm/llvm-project/commit/c379911a94c1e777c232d1e3e65f5c70d0453234.diff LOG: [NFC][Clang]Inclusive language: Replace uses of whitelist in clang/test Added: Modified: clang/test/Preprocessor/macro-reserved.c clang/test/Preprocessor/macro-reserved.cpp clang/test/Sema/conversion.c clang/test/SemaCXX/reinterpret-cast.cpp clang/test/SemaObjC/warn-retain-cycle.m clang/unittests/Driver/SanitizerArgsTest.cpp Removed: ################################################################################ diff --git a/clang/test/Preprocessor/macro-reserved.c b/clang/test/Preprocessor/macro-reserved.c index f7bec04c73bf8..94245c024edec 100644 --- a/clang/test/Preprocessor/macro-reserved.c +++ b/clang/test/Preprocessor/macro-reserved.c @@ -14,7 +14,7 @@ #undef _HAVE_X #undef X__Y -// whitelisted definitions +// allowlisted definitions #define while while #define const #define static diff --git a/clang/test/Preprocessor/macro-reserved.cpp b/clang/test/Preprocessor/macro-reserved.cpp index f06d75cbf1af7..c4f5ee91dd5a6 100644 --- a/clang/test/Preprocessor/macro-reserved.cpp +++ b/clang/test/Preprocessor/macro-reserved.cpp @@ -15,7 +15,7 @@ #undef __cplusplus #define __cplusplus -// whitelisted definitions +// allowlisted definitions #define while while #define const #define static diff --git a/clang/test/Sema/conversion.c b/clang/test/Sema/conversion.c index ba4adbdad22eb..02131e49cb48d 100644 --- a/clang/test/Sema/conversion.c +++ b/clang/test/Sema/conversion.c @@ -294,7 +294,7 @@ void test13(long double v) { } void test14(long l) { - // Fine because of the boolean whitelist. + // Fine because of the boolean allowlist. char c; c = (l == 4); c = ((l <= 4) && (l >= 0)); diff --git a/clang/test/SemaCXX/reinterpret-cast.cpp b/clang/test/SemaCXX/reinterpret-cast.cpp index f427af1efbafc..1b84df12129c7 100644 --- a/clang/test/SemaCXX/reinterpret-cast.cpp +++ b/clang/test/SemaCXX/reinterpret-cast.cpp @@ -221,7 +221,7 @@ void dereference_reinterpret_cast() { (void)*reinterpret_cast<void*>(&f); // expected-warning {{ISO C++ does not allow}} } -void reinterpret_cast_whitelist () { +void reinterpret_cast_allowlist () { // the dynamic type of the object int a; float b; diff --git a/clang/test/SemaObjC/warn-retain-cycle.m b/clang/test/SemaObjC/warn-retain-cycle.m index 7d40e26f594ef..eadd227f86d1f 100644 --- a/clang/test/SemaObjC/warn-retain-cycle.m +++ b/clang/test/SemaObjC/warn-retain-cycle.m @@ -111,7 +111,7 @@ @interface Test3 { void doSomething(unsigned v); @implementation Test3 - (void) test { - // 'addOperationWithBlock:' is specifically whitelisted. + // 'addOperationWithBlock:' is specifically allowlisted. [myOperationQueue addOperationWithBlock:^() { // no-warning if (count > 20) { doSomething(count); diff --git a/clang/unittests/Driver/SanitizerArgsTest.cpp b/clang/unittests/Driver/SanitizerArgsTest.cpp index 2539330126f06..8eecd53ef40c2 100644 --- a/clang/unittests/Driver/SanitizerArgsTest.cpp +++ b/clang/unittests/Driver/SanitizerArgsTest.cpp @@ -114,7 +114,7 @@ TEST_F(SanitizerArgsTest, Ignorelists) { } TEST_F(SanitizerArgsTest, XRayLists) { - const std::string XRayWhitelist = "/source/xray_whitelist.txt"; + const std::string XRayAllowlist = "/source/xray_allowlist.txt"; const std::string XRayIgnorelist = "/source/xray_ignorelist.txt"; const std::string XRayAttrList = "/source/xray_attr_list.txt"; @@ -122,16 +122,16 @@ TEST_F(SanitizerArgsTest, XRayLists) { /*ExtraArgs=*/ { "-fxray-instrument", - "-fxray-always-instrument=" + XRayWhitelist, + "-fxray-always-instrument=" + XRayAllowlist, "-fxray-never-instrument=" + XRayIgnorelist, "-fxray-attr-list=" + XRayAttrList, }, - /*ExtraFiles=*/{XRayWhitelist, XRayIgnorelist, XRayAttrList}); + /*ExtraFiles=*/{XRayAllowlist, XRayIgnorelist, XRayAttrList}); // Ignorelists exist in the filesystem, so they should be added to the // compilation command, produced by the driver. EXPECT_THAT(Command.getArguments(), - Contains(StrEq("-fxray-always-instrument=" + XRayWhitelist))); + Contains(StrEq("-fxray-always-instrument=" + XRayAllowlist))); EXPECT_THAT(Command.getArguments(), Contains(StrEq("-fxray-never-instrument=" + XRayIgnorelist))); EXPECT_THAT(Command.getArguments(), _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits