summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/ctu-main.cpp
diff options
context:
space:
mode:
authorGabor Marton <martongabesz@gmail.com>2018-12-07 14:56:02 +0000
committerGabor Marton <martongabesz@gmail.com>2018-12-07 14:56:02 +0000
commit9419eb42c45be0e4f540bbcbb6bb93d8876559c6 (patch)
tree1ca08a4773de8d99eea88c2caa4d5ea049f687c2 /clang/test/Analysis/ctu-main.cpp
parentb9e65cbddf6f5d7e387aae70a8db3e0ae55c0270 (diff)
downloadbcm5719-llvm-9419eb42c45be0e4f540bbcbb6bb93d8876559c6.tar.gz
bcm5719-llvm-9419eb42c45be0e4f540bbcbb6bb93d8876559c6.zip
[CTU] Add DisplayCTUProgress analyzer switch
Summary: With a new switch we may be able to print to stderr if a new TU is being loaded during CTU. This is very important for higher level scripts (like CodeChecker) to be able to parse this output so they can create e.g. a zip file in case of a Clang crash which contains all the related TU files. Reviewers: xazax.hun, Szelethus, a_sidorin, george.karpenkov Subscribers: whisperity, baloghadamsoftware, szepet, rnkovacs, a.sidorin, mikhail.ramalho, donat.nagy, dkrupp, Differential Revision: https://reviews.llvm.org/D55135 llvm-svn: 348594
Diffstat (limited to 'clang/test/Analysis/ctu-main.cpp')
-rw-r--r--clang/test/Analysis/ctu-main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Analysis/ctu-main.cpp b/clang/test/Analysis/ctu-main.cpp
index fca750c317b..3bd5d24bd05 100644
--- a/clang/test/Analysis/ctu-main.cpp
+++ b/clang/test/Analysis/ctu-main.cpp
@@ -10,6 +10,14 @@
// RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \
// RUN: -analyzer-config ctu-dir=%t/ctudir \
// RUN: -verify %s
+// RUN: %clang_analyze_cc1 -triple x86_64-pc-linux-gnu \
+// RUN: -analyzer-checker=core,debug.ExprInspection \
+// RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \
+// RUN: -analyzer-config ctu-dir=%t/ctudir \
+// RUN: -analyzer-config display-ctu-progress=true 2>&1 %s | FileCheck %s
+
+// CHECK: CTU loaded AST file: {{.*}}/ctu-other.cpp
+// CHECK: CTU loaded AST file: {{.*}}/ctu-chain.cpp
#include "ctu-hdr.h"
OpenPOWER on IntegriCloud