[cfe-commits] r172096 - /cfe/trunk/tools/libclang/CLog.h
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Jan 10 11:43:44 PST 2013
Author: akirtzidis
Date: Thu Jan 10 13:43:44 2013
New Revision: 172096
URL: http://llvm.org/viewvc/llvm-project?rev=172096&view=rev
Log:
[libclang] Address some coding style issues pointed out by Dmitri.
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=172096&r1=172095&r2=172096&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CLog.h (original)
+++ cfe/trunk/tools/libclang/CLog.h Thu Jan 10 13:43:44 2013
@@ -10,9 +10,9 @@
#ifndef LLVM_LIBCLANG_CLOG_H
#define LLVM_LIBCLANG_CLOG_H
-#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/SmallString.h"
+#include "llvm/ADT/StringRef.h"
#include "llvm/Support/raw_ostream.h"
#include <string>
@@ -47,7 +47,7 @@
static bool isLoggingEnabled() { return getEnvVar() != 0; }
static bool isStackTracingEnabled() {
if (const char *EnvOpt = Logger::getEnvVar())
- return llvm::StringRef(EnvOpt) =="2";
+ return llvm::StringRef(EnvOpt) == "2";
return false;
}
static LogRef make(llvm::StringRef name,
@@ -89,6 +89,7 @@
/// LOG_FUNC_SECTION {
/// *Log << "blah";
/// }
+/// \endcode
#define LOG_SECTION(NAME) if (LogRef Log = clang::cxindex::Logger::make(NAME))
#define LOG_FUNC_SECTION LOG_SECTION(__func__)
More information about the cfe-commits
mailing list