[PATCH] D51680: [analyzer][UninitializedObjectChecker] New flag to ignore records based on it's fields
Umann Kristóf via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 14 03:07:34 PDT 2018
Szelethus marked an inline comment as done.
Szelethus added inline comments.
================
Comment at: test/Analysis/cxx-uninitialized-object-unionlike-constructs.cpp:1-4
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.cplusplus.UninitializedObject \
+// RUN: -analyzer-config alpha.cplusplus.UninitializedObject:Pedantic=true -DPEDANTIC \
+// RUN: -analyzer-config alpha.cplusplus.UninitializedObject:IgnoreRecordsWithField="[Tt]ag|[Kk]ind" \
+// RUN: -std=c++11 -verify %s
----------------
NoQ wrote:
> If you like, you can make a directory for your tests, instead of a filename prefix.
>
> Btw, thanks for pointing out that we can use `\` in run-lines, i never noticed it before you started using it.
Cheers! I actually saw this trick in D45050.
https://reviews.llvm.org/D51680
More information about the cfe-commits
mailing list