[clang][NFC] Inclusive terms: rename AccessDeclContextSanity to AccessDeclContextCheck
authorZarko Todorovski <zarko@ca.ibm.com>
Thu, 25 Nov 2021 20:52:28 +0000 (15:52 -0500)
committerZarko Todorovski <zarko@ca.ibm.com>
Thu, 25 Nov 2021 21:21:06 +0000 (16:21 -0500)
Rename function to more inclusive name.

Reviewed By: quinnp

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

clang/include/clang/AST/DeclBase.h
clang/lib/AST/DeclBase.cpp
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

index 18468c8ca1c47ab23d9eae56ff3aa2c447f939d5..2a0a19597391f6b3cf414abe7b95b440ddfbf720 100644 (file)
@@ -352,7 +352,7 @@ protected:
                      DeclContext *Parent, std::size_t Extra = 0);
 
 private:
-  bool AccessDeclContextSanity() const;
+  bool AccessDeclContextCheck() const;
 
   /// Get the module ownership kind to use for a local lexical child of \p DC,
   /// which may be either a local or (rarely) an imported declaration.
@@ -472,11 +472,11 @@ public:
 
   void setAccess(AccessSpecifier AS) {
     Access = AS;
-    assert(AccessDeclContextSanity());
+    assert(AccessDeclContextCheck());
   }
 
   AccessSpecifier getAccess() const {
-    assert(AccessDeclContextSanity());
+    assert(AccessDeclContextCheck());
     return AccessSpecifier(Access);
   }
 
index 4044404f74ef237f2b79820fdb367501e4a8a114..d8eaf706384f5d09e0458d48d22398aff3fad1c6 100644 (file)
@@ -964,7 +964,7 @@ SourceLocation Decl::getBodyRBrace() const {
   return {};
 }
 
-bool Decl::AccessDeclContextSanity() const {
+bool Decl::AccessDeclContextCheck() const {
 #ifndef NDEBUG
   // Suppress this check if any of the following hold:
   // 1. this is the translation unit (and thus has no parent)
index b20ae32a08ac73259275be3a63ea152abd8a9a5e..b1dbc382ff041f7232a08c65d03a7e52d16d7afc 100644 (file)
@@ -91,7 +91,7 @@ static void VerifyDecl(clang::Decl *decl) {
   assert(decl && "VerifyDecl called with nullptr?");
 #ifndef NDEBUG
   // We don't care about the actual access value here but only want to trigger
-  // that Clang calls its internal Decl::AccessDeclContextSanity check.
+  // that Clang calls its internal Decl::AccessDeclContextCheck validation.
   decl->getAccess();
 #endif
 }