[cfe-dev] require clang-tidy check argument

Nathan James via cfe-dev cfe-dev at lists.llvm.org
Thu Apr 9 15:46:59 PDT 2020

Hi Tiago,
That support was adding in 
You can call `Options.get("Name")` or `Options.get<Inttype>("Name")`
and it will return `llvm::Expected<...>`.If there is no option found in
the config it will return a `MissingOptionError`, If there is an option
but it couldnt't be parsed to the Type it will return a
`UnparseableIntegerOptionError`. you can just log the Error straight to
Nathan James

On Thu, 2020-04-09 at 12:12 -0700, Tiago Macarios via cfe-dev wrote:
> Hi,
> Is there a way/pattern for a clang-tidy check to require an argument
> (ie an entry in the .clang-tidy file)?
> Looking at the API It has a way for me to 
> storeOptions, but Options.store will always have a Default value.
> Tiago
> _______________________________________________cfe-dev mailing
> listcfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200409/796a9ecc/attachment.html>

More information about the cfe-dev mailing list