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

Fix non-existent files resolving as working directory #594

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix non-existent files resolving as working directory
This commit should fix non-existent files and directories
being shown in the infotree
ervin7mk committed Jan 16, 2023
commit 203f59b4eae8e8e63f90206949e7bc8554d8f99e
3 changes: 3 additions & 0 deletions parser/src/sourcemanager.cpp
Original file line number Diff line number Diff line change
@@ -160,6 +160,9 @@ model::FilePtr SourceManager::getCreateFileEntry(

model::FilePtr SourceManager::getFile(const std::string& path_)
{
if (path_.empty())
return nullptr;

//--- Create canonical form of the path ---//

boost::system::error_code ec;