]> granicus.if.org Git - clang/commitdiff
libclang: use namespace qualifiers in the macro, so that it does not require
authorDmitri Gribenko <gribozavr@gmail.com>
Tue, 11 Feb 2014 12:25:31 +0000 (12:25 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Tue, 11 Feb 2014 12:25:31 +0000 (12:25 +0000)
'using namespace clang::cxindex'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201146 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CLog.h

index 57e01aeb68c2eb0046e3b91ce318eaf3a46a4323..8bf224a1e0a98a5947c02eb00be66cd3789be289 100644 (file)
@@ -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