Browse Source

Cleanup of Source->Find Documentation

merge-requests/365/head
eidheim 8 years ago
parent
commit
bc855041f3
  1. 5
      src/source_clang.cc

5
src/source_clang.cc

@ -1502,12 +1502,9 @@ Source::ClangViewRefactor::ClangViewRefactor(const boost::filesystem::path &file
if(!cursor) { if(!cursor) {
auto identifier=get_identifier(); auto identifier=get_identifier();
if(identifier) { if(identifier)
cursor=identifier.cursor.get_definition();
if(!cursor)
cursor=identifier.cursor.get_canonical(); cursor=identifier.cursor.get_canonical();
} }
}
if(cursor) { if(cursor) {
data.emplace_back("clang"); data.emplace_back("clang");

Loading…
Cancel
Save