From 3e00e5fc0c01f70d34448bbdf4bde1f245331e92 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Fri, 19 May 2017 09:51:42 -0700 Subject: [PATCH] Log compile arguments when there is a libclang failure --- src/libclangmm/TranslationUnit.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libclangmm/TranslationUnit.cc b/src/libclangmm/TranslationUnit.cc index cc8ed990..a43c3d0f 100644 --- a/src/libclangmm/TranslationUnit.cc +++ b/src/libclangmm/TranslationUnit.cc @@ -35,20 +35,20 @@ TranslationUnit::TranslationUnit(Index& index, did_fail = false; break; case CXError_Failure: - std::cerr << "libclang generic failure for " << filepath << std::endl; + std::cerr << "libclang generic failure for " << filepath << " with args " << StringJoin(args) << std::endl; did_fail = true; break; case CXError_Crashed: - std::cerr << "libclang crashed for " << filepath << std::endl; + std::cerr << "libclang crashed for " << filepath << " with args " << StringJoin(args) << std::endl; did_fail = true; break; case CXError_InvalidArguments: - std::cerr << "libclang had invalid arguments for " << filepath + std::cerr << "libclang had invalid arguments for " << " with args " << StringJoin(args) << filepath << std::endl; did_fail = true; break; case CXError_ASTReadError: - std::cerr << "libclang had ast read error for " << filepath << std::endl; + std::cerr << "libclang had ast read error for " << filepath << " with args " << StringJoin(args) << std::endl; did_fail = true; break; }