From: Argyrios Kyrtzidis Date: Fri, 24 May 2013 22:24:07 +0000 (+0000) Subject: [libclang] Add logging for clang_createTranslationUnit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c9f58f617faec246d3111868ae7aee5edb9f546;p=clang [libclang] Add logging for clang_createTranslationUnit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182682 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index bd20800993..dbef6209ec 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -2544,9 +2544,13 @@ void clang_toggleCrashRecovery(unsigned isEnabled) { 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(CIdx); FileSystemOptions FileSystemOpts;