[PATCH] D55135: [CTU][Analyzer]Add DisplayCTUProgress analyzer switch
Umann Kristóf via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 30 10:52:47 PST 2018
Szelethus requested changes to this revision.
Szelethus added a comment.
This revision now requires changes to proceed.
The idea is great!
I think this should rather be an -analyzer-config flag, since the actual analysis changes with a new output (refer to `AnalyzerOption`'s doxygen comments). Please note that I'm about to land some patches that modifies `AnalyzerOptions.def` quite a bit, but rebasing shouldn't be too bad anyways.
Also, almost everywhere CTU is capitalized, so I guess it should be in the field name too.
================
Comment at: test/Analysis/ctu-main.cpp:6
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -analyze -analyzer-checker=core,debug.ExprInspection -analyzer-config experimental-enable-naive-ctu-analysis=true -analyzer-config ctu-dir=%T/ctudir -verify %s
+// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -analyze -analyzer-checker=core,debug.ExprInspection -analyzer-config experimental-enable-naive-ctu-analysis=true -analyzer-config ctu-dir=%T/ctudir -analyzer-display-ctu-progress 2>&1 %s | FileCheck %s
+
----------------
I think these RUN lines would really benefit from introducing line breaks.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55135/new/
https://reviews.llvm.org/D55135
More information about the cfe-commits
mailing list