From: Dmitri Gribenko Date: Tue, 11 Feb 2014 12:25:31 +0000 (+0000) Subject: libclang: use namespace qualifiers in the macro, so that it does not require X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d47c722dfe23bb270fe25f79b93f24ccc03e25a;p=clang libclang: use namespace qualifiers in the macro, so that it does not require 'using namespace clang::cxindex'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201146 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/libclang/CLog.h b/tools/libclang/CLog.h index 57e01aeb68..8bf224a1e0 100644 --- a/tools/libclang/CLog.h +++ b/tools/libclang/CLog.h @@ -95,7 +95,8 @@ public: /// *Log << "blah"; /// } /// \endcode -#define LOG_SECTION(NAME) if (LogRef Log = clang::cxindex::Logger::make(NAME)) +#define LOG_SECTION(NAME) \ + if (clang::cxindex::LogRef Log = clang::cxindex::Logger::make(NAME)) #define LOG_FUNC_SECTION LOG_SECTION(LLVM_FUNCTION_NAME) #endif