[Lldb-commits] [lldb] 9d26791 - [lldb][NFC] Make GetAsCXXRecordDecl static

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 28 03:26:14 PST 2019


Author: Raphael Isemann
Date: 2019-11-28T12:24:41+01:00
New Revision: 9d2679152a4bbe892f72802427657bfdca85a63b

URL: https://github.com/llvm/llvm-project/commit/9d2679152a4bbe892f72802427657bfdca85a63b
DIFF: https://github.com/llvm/llvm-project/commit/9d2679152a4bbe892f72802427657bfdca85a63b.diff

LOG: [lldb][NFC] Make GetAsCXXRecordDecl static

All other casting functions there are static, so this should
be too.

Added: 
    

Modified: 
    lldb/include/lldb/Symbol/ClangASTContext.h

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Symbol/ClangASTContext.h b/lldb/include/lldb/Symbol/ClangASTContext.h
index 20421bca305e..7018f3b71b4f 100644
--- a/lldb/include/lldb/Symbol/ClangASTContext.h
+++ b/lldb/include/lldb/Symbol/ClangASTContext.h
@@ -908,7 +908,8 @@ class ClangASTContext : public TypeSystem {
 
   static clang::TypedefNameDecl *GetAsTypedefDecl(const CompilerType &type);
 
-  clang::CXXRecordDecl *GetAsCXXRecordDecl(lldb::opaque_compiler_type_t type);
+  static clang::CXXRecordDecl *
+  GetAsCXXRecordDecl(lldb::opaque_compiler_type_t type);
 
   static clang::ObjCInterfaceDecl *
   GetAsObjCInterfaceDecl(const CompilerType &type);


        


More information about the lldb-commits mailing list