[Lldb-commits] [PATCH] D12953: Remove some clang references from API.
Bruce Mitchener via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 17 20:09:42 PDT 2015
brucem created this revision.
brucem added a reviewer: clayborg.
brucem added a subscriber: lldb-commits.
Remove an unused include and 'using namespace clang' declarations.
Also, rename a CompilerType variable to not have 'clang' in the name.
http://reviews.llvm.org/D12953
Files:
source/API/SBType.cpp
source/API/SBTypeEnumMember.cpp
Index: source/API/SBTypeEnumMember.cpp
===================================================================
--- source/API/SBTypeEnumMember.cpp
+++ source/API/SBTypeEnumMember.cpp
@@ -17,7 +17,6 @@
using namespace lldb;
using namespace lldb_private;
-using namespace clang;
SBTypeEnumMember::SBTypeEnumMember() :
m_opaque_sp()
Index: source/API/SBType.cpp
===================================================================
--- source/API/SBType.cpp
+++ source/API/SBType.cpp
@@ -19,11 +19,9 @@
#include "lldb/Symbol/TypeSystem.h"
#include "llvm/ADT/APSInt.h"
-#include "clang/AST/Decl.h"
using namespace lldb;
using namespace lldb_private;
-using namespace clang;
SBType::SBType() :
m_opaque_sp()
@@ -271,9 +269,9 @@
{
if (IsValid())
{
- CompilerType return_clang_type (m_opaque_sp->GetCompilerType(true).GetFunctionReturnType());
- if (return_clang_type.IsValid())
- return SBType(return_clang_type);
+ CompilerType return_type (m_opaque_sp->GetCompilerType(true).GetFunctionReturnType());
+ if (return_type.IsValid())
+ return SBType(return_type);
}
return lldb::SBType();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12953.35057.patch
Type: text/x-patch
Size: 1177 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150918/ca041789/attachment.bin>
More information about the lldb-commits
mailing list