r201146 - libclang: use namespace qualifiers in the macro, so that it does not require

Dmitri Gribenko gribozavr at gmail.com
Tue Feb 11 04:25:32 PST 2014


Author: gribozavr
Date: Tue Feb 11 06:25:31 2014
New Revision: 201146

URL: http://llvm.org/viewvc/llvm-project?rev=201146&view=rev
Log:
libclang: use namespace qualifiers in the macro, so that it does not require
'using namespace clang::cxindex'.

Modified:
    cfe/trunk/tools/libclang/CLog.h

Modified: cfe/trunk/tools/libclang/CLog.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CLog.h?rev=201146&r1=201145&r2=201146&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CLog.h (original)
+++ cfe/trunk/tools/libclang/CLog.h Tue Feb 11 06:25:31 2014
@@ -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





More information about the cfe-commits mailing list