[PATCH] D159436: [clang-tidy] Add support for optional parameters in config.
Carlos Galvez via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 5 11:15:01 PDT 2023
carlosgalvezp added inline comments.
================
Comment at: clang-tools-extra/test/clang-tidy/infrastructure/optional-parameter.cpp:18
+// RUN: -config='{CheckOptions: { \
+// RUN: bugprone-easily-swappable-parameters.MinimumLength: "false", \
+// RUN: }}' --
----------------
What if:
- "MinimumLength" is a boolean.
- It's default value (if not specified) is True.
- And a user wants to set it as "False" here
Wouldn't that cause problems?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159436/new/
https://reviews.llvm.org/D159436
More information about the cfe-commits
mailing list