https://bugs.kde.org/show_bug.cgi?id=446404

Daniel Santos <daniel.san...@pobox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.san...@pobox.com

--- Comment #3 from Daniel Santos <daniel.san...@pobox.com> ---
Created attachment 144169
  --> https://bugs.kde.org/attachment.cgi?id=144169&action=edit
very ugly patch

WARNING: very ugly patch ahead!  I am in NO WAY suggesting this for merging!

I think some of this might be useful, namely not adding -nostdinc and
-nostdinc++ if it's already supplied in the arguments, but mostly not adding
the system include paths in such a case.  Also, not overriding
-working-directory if already in custom parser options.

But if there's a cleaner, prettier way of using the root project's parser
settings (or nearest sub-directory) when the file is filtered, then that would
be helpful upstream.

+        for (auto project : projects) {
+            const auto root = project->path().path();
+            if (!url.str().startsWith(root))
+                continue;
+            // Do something nice here

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to