Hello community, here is the log from the commit of package ccls for openSUSE:Factory checked in at 2019-10-02 11:57:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ccls (Old) and /work/SRC/openSUSE:Factory/.ccls.new.2352 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ccls" Wed Oct 2 11:57:41 2019 rev:6 rq:734067 version:0.20190823.3 Changes: -------- --- /work/SRC/openSUSE:Factory/ccls/ccls.changes 2019-09-17 13:39:58.725818277 +0200 +++ /work/SRC/openSUSE:Factory/.ccls.new.2352/ccls.changes 2019-10-02 11:57:44.711208611 +0200 @@ -1,0 +2,7 @@ +Mon Sep 30 12:01:59 UTC 2019 - Dan Čermák <[email protected]> + +- Update to release 0.20190823.3 + + - incorrect use of clang::FileEntry::getName on Arch Linux #487 + +------------------------------------------------------------------- Old: ---- ccls-0.20190823.2.tar.gz New: ---- ccls-0.20190823.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ccls.spec ++++++ --- /var/tmp/diff_new_pack.HxHwkJ/_old 2019-10-02 11:57:45.399206848 +0200 +++ /var/tmp/diff_new_pack.HxHwkJ/_new 2019-10-02 11:57:45.399206848 +0200 @@ -17,7 +17,7 @@ Name: ccls -Version: 0.20190823.2 +Version: 0.20190823.3 Release: 0 Summary: C/C++/ObjC language server # main package is Apache 2.0 ++++++ ccls-0.20190823.2.tar.gz -> ccls-0.20190823.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccls-0.20190823.2/src/clang_tu.cc new/ccls-0.20190823.3/src/clang_tu.cc --- old/ccls-0.20190823.2/src/clang_tu.cc 2019-09-15 08:35:09.000000000 +0200 +++ new/ccls-0.20190823.3/src/clang_tu.cc 2019-09-24 07:48:42.000000000 +0200 @@ -26,7 +26,10 @@ namespace ccls { std::string pathFromFileEntry(const FileEntry &file) { - std::string ret = normalizePath(file.getName()); + StringRef name = file.tryGetRealPathName(); + if (name.empty()) + name = file.getName(); + std::string ret = normalizePath(name); // Resolve symlinks outside of workspace folders, e.g. /usr/include/c++/7.3.0 return normalizeFolder(ret) ? ret : realPath(ret); } @@ -71,10 +74,10 @@ auto decomposed = sm.getDecomposedLoc(sm.getExpansionLoc(sr.getBegin())); if (decomposed.first == fid) range.start = decomposed2LineAndCol(sm, decomposed); - SourceLocation loc = sm.getExpansionLoc(sr.getEnd()); - decomposed = sm.getDecomposedLoc(loc); + SourceLocation sl = sm.getExpansionLoc(sr.getEnd()); + decomposed = sm.getDecomposedLoc(sl); if (decomposed.first == fid) { - decomposed.second += Lexer::MeasureTokenLength(loc, sm, lang); + decomposed.second += Lexer::MeasureTokenLength(sl, sm, lang); range.end = decomposed2LineAndCol(sm, decomposed); } return range; @@ -93,6 +96,8 @@ if (ci) { ci->getDiagnosticOpts().IgnoreWarnings = true; ci->getFrontendOpts().DisableFree = false; + // Enable IndexFrontendAction::shouldSkipFunctionBody. + ci->getFrontendOpts().SkipFunctionBodies = true; ci->getLangOpts()->SpellChecking = false; auto &isec = ci->getFrontendOpts().Inputs; if (isec.size()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccls-0.20190823.2/src/indexer.cc new/ccls-0.20190823.3/src/indexer.cc --- old/ccls-0.20190823.2/src/indexer.cc 2019-09-15 08:35:09.000000000 +0200 +++ new/ccls-0.20190823.3/src/indexer.cc 2019-09-24 07:48:42.000000000 +0200 @@ -885,9 +885,9 @@ IndexParam::DeclInfo *info1; Usr usr1 = getUsr(d1, &info1); IndexType &type1 = db->toType(usr1); - SourceLocation L1 = d1->getLocation(); + SourceLocation sl1 = d1->getLocation(); type1.def.spell = { - Use{{fromTokenRange(sm, lang, {L1, L1}), Role::Definition}, + Use{{fromTokenRange(sm, lang, {sl1, sl1}), Role::Definition}, lid}, fromTokenRange(sm, lang, sr1)}; type1.def.detailed_name = intern(info1->short_name); @@ -1268,10 +1268,6 @@ if (!ci) return {}; ok = false; - // Disable computing warnings which will be discarded anyway. - ci->getDiagnosticOpts().IgnoreWarnings = true; - // Enable IndexFrontendAction::shouldSkipFunctionBody. - ci->getFrontendOpts().SkipFunctionBodies = true; // -fparse-all-comments enables documentation in the indexer and in // code completion. ci->getLangOpts()->CommentOpts.ParseAllComments = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccls-0.20190823.2/src/sema_manager.cc new/ccls-0.20190823.3/src/sema_manager.cc --- old/ccls-0.20190823.2/src/sema_manager.cc 2019-09-15 08:35:09.000000000 +0200 +++ new/ccls-0.20190823.3/src/sema_manager.cc 2019-09-24 07:48:42.000000000 +0200 @@ -478,7 +478,6 @@ fOpts.CodeCompletionAt.FileName = task->path; fOpts.CodeCompletionAt.Line = task->position.line + 1; fOpts.CodeCompletionAt.Column = task->position.character + 1; - fOpts.SkipFunctionBodies = true; ci->getLangOpts()->CommentOpts.ParseAllComments = true; DiagnosticConsumer dc; @@ -584,6 +583,7 @@ if (lookupExtension(session->file.filename).second) ci->getDiagnosticOpts().Warnings.push_back("no-unused-function"); ci->getDiagnosticOpts().IgnoreWarnings = false; + ci->getFrontendOpts().SkipFunctionBodies = false; ci->getLangOpts()->SpellChecking = g_config->diagnostics.spellChecking; StoreDiags dc(task.path); std::string content = manager->wfiles->getContent(task.path);
