// RUN: rm -rf %t // RUN: %clang_cc1 -analyze -analyzer-output=html -analyzer-checker=core -o %t %s // RUN: find %t -name "*.html" -exec cat "{}" ";" | FileCheck %s // REQUIRES: staticanalyzer // CHECK: // CHECK:

Annotated Source Code

// Make sure it's generated as multi-file HTML output // CHECK:

{{.*}}html-multifile-diagnostics.c

// CHECK:

{{.*}}html-multifile-diagnostics.h

// Without tweaking expr, the expr would hit to the line below // emitted to the output as comment. // CHECK: {{[D]ereference of null pointer}} #include "html-multifile-diagnostics.h" void f0() { f1((int*)0); }