add-compiler-defaults problems

- [ ]  --add-compiler-defaults option should cut out the "sysroot" arg from the original build action and call the cross compiler detection in (log_parser.py)

- [ ]  auto-detected include paths should be added by -isystem to clang (instead of -I) to get at the end of the inclusion list

- [ ] clang tidy does not get the auto-detected target and include pahts, however it should

diff --git a/libcodechecker/analyze/analyzers/analyzer_clang_tidy.py b/libcodechecker/analyze/analyzers/analyzer_clang_tidy.py
index 87b2f63f..e1e1108f 100644
--- a/libcodechecker/analyze/analyzers/analyzer_clang_tidy.py
+++ b/libcodechecker/analyze/analyzers/analyzer_clang_tidy.py
@@ -111,6 +111,8 @@ class ClangTidy(analyzer_base.SourceAnalyzer):
 
             analyzer_cmd.extend(self.buildaction.analyzer_options)
 
+            analyzer_cmd.extend(self.buildaction.compiler_includes)
+
             return analyzer_cmd
 
         except Exception as ex:
diff --git a/libcodechecker/analyze/log_parser.py b/libcodechecker/analyze/log_parser.py
index f41a29ff..521f4b99 100644
--- a/libcodechecker/analyze/log_parser.py
+++ b/libcodechecker/analyze/log_parser.py
@@ -62,7 +62,7 @@ def get_compiler_includes(compiler, lang, compile_opts, extra_opts=None):
             if line.startswith(end_mark):
                 do_append = False
             if do_append:
-                include_paths.append("-I" + line)
+                include_paths.append("-isystem " + line)
             if line.startswith(start_mark):
                 do_append = True
 
diff --git a/libcodechecker/log/option_parser.py b/libcodechecker/log/option_parser.py
index dddc307b..8a19324b 100644
--- a/libcodechecker/log/option_parser.py
+++ b/libcodechecker/log/option_parser.py
@@ -52,7 +52,8 @@ COMPILE_OPTION_MAP_REGEX = {
     '^-f.*': 0,
     '-m.*': 0,
     '^-Wno-.*': 0,
-    '^-m(32|64)$': 0
+    '^-m(32|64)$': 0,
+    '^--sysroot=': 0
 }
 
 # Linker options.
['libcodechecker/analyze/log_parser.py', 'libcodechecker/log/option_parser.py', 'libcodechecker/analyze/analyzers/analyzer_clang_tidy.py']