Lines Matching +full:html +full:- +full:export
12 - ProjectMap file
13 - Historical Performance Data
14 - Project Dir1
15 - ReferenceOutput
16 - Project Dir2
17 - ReferenceOutput
22 - Copy over a copy of the Repository Directory. (TODO: Prefer to ensure that
25 - Build all projects, until error. Produce logs to report errors.
26 - Compare results.
34 The compiler for scan-build and scan-build are in the PATH.
35 export PATH=/Users/zaks/workspace/c2llvm/build/Release+Asserts/bin:$PATH
38 zaks:TI zaks$ export CCC_ANALYZER_LOG=1
39 zaks:TI zaks$ export CCC_ANALYZER_VERBOSE=1
87 def fileno(self) -> int:
140 # This is a file containing commands for scan-build.
149 # Summary file - contains the summary of the failures. Ex: This info can be be
153 # The scan-build result directory.
174 # Currently, consists of all the non-experimental checkers, plus a few alpha
201 Run pre-processing script if any.
230 # We still want to have a type-safe checked project queue, for this reason,
234 # https://mypy.readthedocs.io/en/stable/common_issues.html#using-classes-that-are-generic-in-stubs-but-not-at-runtime
264 def test_all(self) -> bool:
284 def _single_threaded_test_all(self, projects_to_test: List[TestInfo]) -> bool:
295 def _multi_threaded_test_all(self, projects_to_test: List[TestInfo]) -> bool:
316 # Required to handle Ctrl-C gracefully.
339 def test(self) -> bool:
346 self.out(f" \n\n--- Skipping disabled project {self.project.name}\n")
349 self.out(f" \n\n--- Building project {self.project.name}\n")
370 f"(time: {time.time() - start_time:.2f}).\n"
375 def get_project_dir(self) -> str:
378 def get_output_dir(self) -> str:
386 def build(self, directory: str, output_dir: str) -> Tuple[float, int]:
428 ) -> Tuple[float, int]:
430 Build the project with scan-build by reading in the commands and
431 prefixing them with the scan-build options.
444 # Run scan-build from within the patched source directory.
447 options = f"--use-analyzer '{CLANG}' "
448 options += f"-plist-html -o '{output_dir}' "
449 options += f"-enable-checker {all_checkers} "
450 options += "--keep-empty "
451 options += f"-analyzer-config '{self.generate_config()}' "
454 options += "--override-compiler "
463 command_prefix = "scan-build " + options + " "
484 # If using 'make', auto imply a -jX argument
489 ) and "-j" not in command:
490 command += f" -j{MAX_JOBS}"
509 stderr("Error: scan-build failed. Its output was: \n")
518 ) -> Tuple[float, int]:
529 prefix = CLANG + " --analyze "
531 prefix += "--analyzer-output plist "
532 prefix += " -Xclang -analyzer-checker=" + CHECKERS
533 prefix += " -fcxx-exceptions -fblocks "
534 prefix += " -Xclang -analyzer-config "
535 prefix += f"-Xclang {self.generate_config()} "
538 prefix += "-std=c++11 "
560 output_option = f"-o '{plist_basename}.plist' "
593 def generate_config(self) -> str:
594 out = "serialize-stats=true,stable-report-filename=true"
646 f"git clone --recursive {repo} {cached_source}",
653 f"git checkout --quiet {self.project.commit}",
701 f"patch -p1 < '{patchfile_path}'",
738 # Needed to gracefully handle interrupts with Ctrl-C
765 Given the scan-build output directory, checks if the build failed
781 f"(non-empty plist files) produced: {len(plists)}\n"
795 stderr(f"\n-- Error #{index} -----------\n")
808 Delete html, css, and js files from reference results. These can
811 extensions = ["html", "css", "js"]
822 def run_cmp_results(directory: str, strictness: int = 0) -> bool:
824 Compare the warnings produced by scan-build.
826 0 - success if there are no crashes or analyzer failure.
827 1 - success if there are no difference in the number of reported bugs.
828 2 - success if all the bug reports are identical.
853 # There might be more then one folder underneath - one per each scan-build
894 f"Diagnostic comparison complete " f"(time: {time.time() - start_time:.2f}).\n"
937 def get_build_log_path(output_dir: str) -> str: