diff options
-rw-r--r-- | compilerplugins/clang/includeform.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/clang/includeform.cxx b/compilerplugins/clang/includeform.cxx index 4994e8ddd75b..becc1c028c3c 100644 --- a/compilerplugins/clang/includeform.cxx +++ b/compilerplugins/clang/includeform.cxx @@ -64,7 +64,8 @@ private: pos = pos2; } #endif - auto const dir = compat::take_front(file, pos); + auto dir = std::string(compat::take_front(file, pos)); + loplugin::normalizeDotDotInFilePath(dir); shouldUseAngles = !loplugin::isSamePathname(SearchPath, dir); } if (shouldUseAngles == IsAngled) { |