r182682 - [libclang] Add logging for clang_createTranslationUnit.

Argyrios Kyrtzidis akyrtzi at gmail.com
Fri May 24 15:24:07 PDT 2013


Author: akirtzidis
Date: Fri May 24 17:24:07 2013
New Revision: 182682

URL: http://llvm.org/viewvc/llvm-project?rev=182682&view=rev
Log:
[libclang] Add logging for clang_createTranslationUnit.

Modified:
    cfe/trunk/tools/libclang/CIndex.cpp

Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=182682&r1=182681&r2=182682&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Fri May 24 17:24:07 2013
@@ -2544,9 +2544,13 @@ void clang_toggleCrashRecovery(unsigned
   
 CXTranslationUnit clang_createTranslationUnit(CXIndex CIdx,
                                               const char *ast_filename) {
-  if (!CIdx)
+  if (!CIdx || !ast_filename)
     return 0;
 
+  LOG_FUNC_SECTION {
+    *Log << ast_filename;
+  }
+
   CIndexer *CXXIdx = static_cast<CIndexer *>(CIdx);
   FileSystemOptions FileSystemOpts;
 





More information about the cfe-commits mailing list