logic: fixed filepaths to always use a canonical casing (issue #516)
* added CanonicalFilePathCache to also reserve the initially recorded casing of file names * use canonical file path cache to resolve filepaths in names of symbols (anonymous, static, ...) * null reference fixes
This commit is contained in:
@@ -111,7 +111,7 @@ SymbolKind utility::getSymbolKind(const clang::VarDecl* d)
|
||||
std::string utility::getFileNameOfFileEntry(const clang::FileEntry* entry)
|
||||
{
|
||||
std::string fileName = "";
|
||||
if (entry)
|
||||
if (entry != nullptr && entry->isValid())
|
||||
{
|
||||
fileName = entry->tryGetRealPathName();
|
||||
if (fileName.empty())
|
||||
|
||||
Reference in New Issue
Block a user