This patch adds basic validation to checker options in the static analyzer.
This validation triggers a diagnostic error in case an option is set for a nonexistent checker or package.
It is not an error to set an option for a checker that is not enabled. I think disallowing that would be too restrictive and would have negative impact on user friendliness.
Once this validation is in place, the only one left is to make sure all package and checker names are identifiers (I think that check should be done at checker registration.) and
make sure the name of the option is an identifier as well.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Please,
Tighten the check so that we reject the prefixes of the full checker name that are not valid package names.
Also, add tests!
Comment Actions
- Made the checker/package name validation more strict (do not accept any prefixes)
- Added some tests