From aca3e56144308f97f676fa30b07179e1203f7822 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Sun, 3 Feb 2013 13:52:47 +0000 Subject: [PATCH] libclang: remove 'using namespace cxstring' git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174285 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/libclang/CIndex.cpp | 3 +-- tools/libclang/CIndexCodeCompletion.cpp | 1 - tools/libclang/CIndexDiagnostic.cpp | 1 - tools/libclang/CIndexUSRs.cpp | 5 ++--- tools/libclang/CXComment.cpp | 1 - tools/libclang/CXCompilationDatabase.cpp | 1 - tools/libclang/CXLoadedDiagnostic.cpp | 1 - tools/libclang/CXSourceLocation.cpp | 1 - tools/libclang/CXStoredDiagnostic.cpp | 1 - tools/libclang/Indexing.cpp | 1 - 10 files changed, 3 insertions(+), 13 deletions(-) diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 74224c49a4..992451346b 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -56,7 +56,6 @@ using namespace clang; using namespace clang::cxcursor; -using namespace clang::cxstring; using namespace clang::cxtu; using namespace clang::cxindex; @@ -66,7 +65,7 @@ CXTranslationUnit cxtu::MakeCXTranslationUnit(CIndexer *CIdx, ASTUnit *AU) { CXTranslationUnit D = new CXTranslationUnitImpl(); D->CIdx = CIdx; D->TheASTUnit = AU; - D->StringPool = new CXStringPool(); + D->StringPool = new cxstring::CXStringPool(); D->Diagnostics = 0; D->OverridenCursorsPool = createOverridenCXCursorsPool(); D->FormatContext = 0; diff --git a/tools/libclang/CIndexCodeCompletion.cpp b/tools/libclang/CIndexCodeCompletion.cpp index 61c5682bd6..0217d2844e 100644 --- a/tools/libclang/CIndexCodeCompletion.cpp +++ b/tools/libclang/CIndexCodeCompletion.cpp @@ -48,7 +48,6 @@ #endif using namespace clang; -using namespace clang::cxstring; using namespace clang::cxindex; extern "C" { diff --git a/tools/libclang/CIndexDiagnostic.cpp b/tools/libclang/CIndexDiagnostic.cpp index 8520d9e995..0e9dde8d1e 100644 --- a/tools/libclang/CIndexDiagnostic.cpp +++ b/tools/libclang/CIndexDiagnostic.cpp @@ -27,7 +27,6 @@ using namespace clang; using namespace clang::cxloc; -using namespace clang::cxstring; using namespace clang::cxdiag; using namespace llvm; diff --git a/tools/libclang/CIndexUSRs.cpp b/tools/libclang/CIndexUSRs.cpp index 01b00533aa..c6f4d7c248 100644 --- a/tools/libclang/CIndexUSRs.cpp +++ b/tools/libclang/CIndexUSRs.cpp @@ -22,7 +22,6 @@ #include "llvm/Support/raw_ostream.h" using namespace clang; -using namespace clang::cxstring; //===----------------------------------------------------------------------===// // USR generation. @@ -832,7 +831,7 @@ CXString clang_getCursorUSR(CXCursor C) { if (!TU) return cxstring::createEmpty(); - CXStringBuf *buf = cxstring::getCXStringBuf(TU); + cxstring::CXStringBuf *buf = cxstring::getCXStringBuf(TU); if (!buf) return cxstring::createEmpty(); @@ -853,7 +852,7 @@ CXString clang_getCursorUSR(CXCursor C) { if (!TU) return cxstring::createEmpty(); - CXStringBuf *buf = cxstring::getCXStringBuf(TU); + cxstring::CXStringBuf *buf = cxstring::getCXStringBuf(TU); if (!buf) return cxstring::createEmpty(); diff --git a/tools/libclang/CXComment.cpp b/tools/libclang/CXComment.cpp index 334546b475..afde872e43 100644 --- a/tools/libclang/CXComment.cpp +++ b/tools/libclang/CXComment.cpp @@ -29,7 +29,6 @@ #include using namespace clang; -using namespace clang::cxstring; using namespace clang::comments; using namespace clang::cxcomment; diff --git a/tools/libclang/CXCompilationDatabase.cpp b/tools/libclang/CXCompilationDatabase.cpp index 0c63d177d8..e35ac27f79 100644 --- a/tools/libclang/CXCompilationDatabase.cpp +++ b/tools/libclang/CXCompilationDatabase.cpp @@ -4,7 +4,6 @@ using namespace clang; using namespace clang::tooling; -using namespace clang::cxstring; extern "C" { diff --git a/tools/libclang/CXLoadedDiagnostic.cpp b/tools/libclang/CXLoadedDiagnostic.cpp index 4b269948de..b89080f099 100644 --- a/tools/libclang/CXLoadedDiagnostic.cpp +++ b/tools/libclang/CXLoadedDiagnostic.cpp @@ -24,7 +24,6 @@ #include "llvm/Bitcode/BitstreamReader.h" #include "llvm/Support/MemoryBuffer.h" using namespace clang; -using namespace clang::cxstring; //===----------------------------------------------------------------------===// // Extend CXDiagnosticSetImpl which contains strings for diagnostics. diff --git a/tools/libclang/CXSourceLocation.cpp b/tools/libclang/CXSourceLocation.cpp index f29f6b4f52..bc8d575190 100644 --- a/tools/libclang/CXSourceLocation.cpp +++ b/tools/libclang/CXSourceLocation.cpp @@ -22,7 +22,6 @@ #include "llvm/Support/Format.h" using namespace clang; -using namespace clang::cxstring; using namespace clang::cxindex; //===----------------------------------------------------------------------===// diff --git a/tools/libclang/CXStoredDiagnostic.cpp b/tools/libclang/CXStoredDiagnostic.cpp index f2d102acb7..9731616c6b 100644 --- a/tools/libclang/CXStoredDiagnostic.cpp +++ b/tools/libclang/CXStoredDiagnostic.cpp @@ -26,7 +26,6 @@ using namespace clang; using namespace clang::cxloc; -using namespace clang::cxstring; CXDiagnosticSeverity CXStoredDiagnostic::getSeverity() const { switch (Diag.getLevel()) { diff --git a/tools/libclang/Indexing.cpp b/tools/libclang/Indexing.cpp index e8977e09ed..18ab51fe52 100644 --- a/tools/libclang/Indexing.cpp +++ b/tools/libclang/Indexing.cpp @@ -33,7 +33,6 @@ #include "llvm/Support/MutexGuard.h" using namespace clang; -using namespace cxstring; using namespace cxtu; using namespace cxindex; -- 2.40.0