Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the main part of the xref interface #504

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix log message
ikirill committed Oct 29, 2018
commit d0ae21cce69da806b001c6cf44e146d083b849dc
4 changes: 2 additions & 2 deletions server/src/Irony.cpp
Original file line number Diff line number Diff line change
@@ -678,7 +678,7 @@ void Irony::getCompileOptions(const std::string &buildDir,

void Irony::xrefDefinitions(unsigned line, unsigned col) const {
if (activeTu_ == nullptr) {
std::clog << "W: get-type - parse wasn't called\n";
std::clog << "W: xref-definitions - parse wasn't called\n";
std::cout << "nil" << std::endl;
return;
}
@@ -702,7 +702,7 @@ void Irony::xrefDefinitions(unsigned line, unsigned col) const {

void Irony::xrefReferences(unsigned line, unsigned col) const {
if (activeTu_ == nullptr) {
std::clog << "W: get-type - parse wasn't called\n";
std::clog << "W: xref-references - parse wasn't called\n";
std::cout << "nil\n";
return;
}