[Lldb-commits] [lldb] r246562 - Add a predicate to allow a ClangASTContext to identify Clang types.
Sean Callanan via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 1 10:58:04 PDT 2015
Author: spyffe
Date: Tue Sep 1 12:58:03 2015
New Revision: 246562
URL: http://llvm.org/viewvc/llvm-project?rev=246562&view=rev
Log:
Add a predicate to allow a ClangASTContext to identify Clang types.
Modified:
lldb/trunk/include/lldb/Symbol/ClangASTContext.h
Modified: lldb/trunk/include/lldb/Symbol/ClangASTContext.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Symbol/ClangASTContext.h?rev=246562&r1=246561&r2=246562&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Symbol/ClangASTContext.h (original)
+++ lldb/trunk/include/lldb/Symbol/ClangASTContext.h Tue Sep 1 12:58:03 2015
@@ -530,6 +530,16 @@ public:
ConstString *language_object_name_ptr) override;
//----------------------------------------------------------------------
+ // Clang specific CompilerType predicates
+ //----------------------------------------------------------------------
+
+ static bool
+ IsClangType (const CompilerType &ct)
+ {
+ return (ct.GetTypeSystem()->AsClangASTContext() != nullptr);
+ }
+
+ //----------------------------------------------------------------------
// Clang specific clang::DeclContext functions
//----------------------------------------------------------------------
More information about the lldb-commits
mailing list