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
//----------------------------------------------------------------------
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits