Kaydet (Commit) 1ed1753b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Handle .. path segments in loplugin:includeform again

...after 119d8137 "Revert 'Allow compiler
plugins for online'", to fix cases like

> In file included from vcl/unx/gtk3_kde5/gtk3_kde5_cairo.cxx:20:
> vcl/unx/gtk3_kde5/../gtk3/cairo_gtk3_cairo.cxx:12:10: error: replace "..." include form with <...> for inclusion of a source file not next to the current source file, or a header, vcl/unx/gtk3/cairo_gtk3_cairo.hxx [loplugin:includeform]
> #include "cairo_gtk3_cairo.hxx"
>          ^~~~~~~~~~~~~~~~~~~~~~

Change-Id: I12b3049862825f10834333b154c9343a3e3bec6d
üst 781c1181
...@@ -64,7 +64,8 @@ private: ...@@ -64,7 +64,8 @@ private:
pos = pos2; pos = pos2;
} }
#endif #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); shouldUseAngles = !loplugin::isSamePathname(SearchPath, dir);
} }
if (shouldUseAngles == IsAngled) { if (shouldUseAngles == IsAngled) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment