[PATCH] D53277: [analyzer][NFC] Collect all -analyzer-config options in a .def file

Umann Kristóf via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 20 14:44:44 PDT 2018


Szelethus added a comment.

In https://reviews.llvm.org/D53277#1269960, @NoQ wrote:

> I think this is awesome o_o






================
Comment at: include/clang/StaticAnalyzer/Core/AnalyzerOptions.def:386
+
+ANALYZER_OPTION_WITH_FN(StringRef, ModelPath, "model-path", "", "",
+                        getModelPath)
----------------
Found the use for this here: https://github.com/llvm-mirror/clang/blob/master/lib/StaticAnalyzer/Frontend/ModelInjector.cpp#L51

Which was added by this commit:
https://github.com/llvm-mirror/clang/commit/fdf0d3513240fd8e4da6942e9cd26d2d730eb37b#diff-6e67e63f578935f02bd1d5b20488ea8c
>This patch was contributed by Gábor Horváth as part of his Google Summer of Code project.

@xazax.hun, what would be a good description for this flag?


https://reviews.llvm.org/D53277





More information about the cfe-commits mailing list