mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 08:54:47 +01:00
[clang/llvm] As part of using inclusive language within
the llvm project, migrate away from the use of blacklist and whitelist.
This commit is contained in:
@@ -4522,11 +4522,11 @@ bool RecordDecl::mayInsertExtraPadding(bool EmitRemark) const {
|
||||
ReasonToReject = 5; // is standard layout.
|
||||
else if (Blacklist.isBlacklistedLocation(EnabledAsanMask, getLocation(),
|
||||
"field-padding"))
|
||||
ReasonToReject = 6; // is in a blacklisted file.
|
||||
ReasonToReject = 6; // is in an excluded file.
|
||||
else if (Blacklist.isBlacklistedType(EnabledAsanMask,
|
||||
getQualifiedNameAsString(),
|
||||
"field-padding"))
|
||||
ReasonToReject = 7; // is blacklisted.
|
||||
ReasonToReject = 7; // The type is excluded.
|
||||
|
||||
if (EmitRemark) {
|
||||
if (ReasonToReject >= 0)
|
||||
|
||||
@@ -752,7 +752,7 @@ bool CodeGenFunction::IsConstructorDelegationValid(
|
||||
// parameters
|
||||
// - etc.
|
||||
// If we ever add any of the above cases, remember that:
|
||||
// - function-try-blocks will always blacklist this optimization
|
||||
// - function-try-blocks will always exclude this optimization
|
||||
// - we need to perform the constructor prologue and cleanup in
|
||||
// EmitConstructorBody.
|
||||
|
||||
|
||||
@@ -900,7 +900,7 @@ void UnwrappedLineParser::parsePPUnknown() {
|
||||
addUnwrappedLine();
|
||||
}
|
||||
|
||||
// Here we blacklist certain tokens that are not usually the first token in an
|
||||
// Here we exclude certain tokens that are not usually the first token in an
|
||||
// unwrapped line. This is used in attempt to distinguish macro calls without
|
||||
// trailing semicolons from other constructs split to several lines.
|
||||
static bool tokenCanStartNewLine(const FormatToken &Tok) {
|
||||
|
||||
@@ -172,7 +172,7 @@ TEST_F(SpecialCaseListTest, EmptySpecialCaseList) {
|
||||
EXPECT_FALSE(SCL->inSection("", "foo", "bar"));
|
||||
}
|
||||
|
||||
TEST_F(SpecialCaseListTest, MultipleBlacklists) {
|
||||
TEST_F(SpecialCaseListTest, MultipleExclusions) {
|
||||
std::vector<std::string> Files;
|
||||
Files.push_back(makeSpecialCaseListFile("src:bar\n"
|
||||
"src:*foo*\n"
|
||||
|
||||
@@ -345,7 +345,7 @@
|
||||
#if GTEST_LANG_CXX11 && \
|
||||
(!defined(__GLIBCXX__) || ( \
|
||||
__GLIBCXX__ >= 20110325ul && /* GCC >= 4.6.0 */ \
|
||||
/* Blacklist of patch releases of older branches: */ \
|
||||
/* Exclude patch releases of older branches: */ \
|
||||
__GLIBCXX__ != 20110416ul && /* GCC 4.4.6 */ \
|
||||
__GLIBCXX__ != 20120313ul && /* GCC 4.4.7 */ \
|
||||
__GLIBCXX__ != 20110428ul && /* GCC 4.5.3 */ \
|
||||
|
||||
Reference in New Issue
Block a user