[PATCH] D55131: [CTU] Add more lit tests and better error handling
Kristóf Umann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 5 09:21:39 PST 2018
Szelethus added inline comments.
================
Comment at: test/Analysis/ctu-main.c:4
+// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-pch -o %t/ctudir2/ctu-other.c.ast %S/Inputs/ctu-other.c
+// RUN: cp %S/Inputs/externalFnMap2.txt %t/ctudir2/externalFnMap.txt
+// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -std=c89 -analyze -analyzer-checker=core,debug.ExprInspection -analyzer-config experimental-enable-naive-ctu-analysis=true -analyzer-config ctu-dir=%t/ctudir2 -verify %s
----------------
martong wrote:
> Szelethus wrote:
> > This is a question rather than anything else, why do we have both externalFnMap2.txt and externalFnMap.txt?
> `externalFnMap.txt` goes for `ctu-other.cpp`.
> `externalFnMap2.txt` goes for `ctu-other.c`.
> Perhaps we should rename them in the `Inputs` directory to include the indexed file name. E.g. `ctu-other.cpp.externalFnMap.txt`. What do you think?
Sounds great! :)
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55131/new/
https://reviews.llvm.org/D55131
More information about the cfe-commits
mailing list