[clang-tools-extra] [clang-tidy] Add ClangQueryChecks config option (PR #123734)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 22 01:52:14 PST 2025


================
@@ -126,8 +127,15 @@ struct ClangTidyOptions {
   using StringPair = std::pair<std::string, std::string>;
   using OptionMap = llvm::StringMap<ClangTidyValue>;
 
+  struct QueryCheckValue {
+    std::string Source;
----------------
DeNiCoN wrote:

It is used to dump the config back. As for example in the "Check config dump" test https://github.com/llvm/llvm-project/pull/123734/files#diff-3bffe1dc09dda3286149e7d1d46efbf11d0113d76262384b2b7c486677d11f22R47

I think I should add a comment line to that field, It wasn't obvious for me too at the beginning should the source be saved or not

https://github.com/llvm/llvm-project/pull/123734


More information about the cfe-commits mailing list