[PATCH] D51680: [analyzer][UninitializedObjectChecker] New flag to ignore records based on it's fields

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 13 19:15:41 PDT 2018


NoQ accepted this revision.
NoQ added a comment.
This revision is now accepted and ready to land.

I hope we'll be able to come up with a reasonable default regex.



================
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
----------------
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.


https://reviews.llvm.org/D51680





More information about the cfe-commits mailing list