[PATCH] D140462: [clangd] Add schema for `.clangd` config
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 26 23:55:55 PST 2022
nridge added a comment.
In D140462#4017237 <https://reviews.llvm.org/D140462#4017237>, @hyperupcall wrote:
> If you would like me to add tests to verify the schema (for now or later?), is there a utility within LLVM to help do so? I saw TableGen was mentioned, but it sounds like the schema validation use case is a different issue.
Is there a command-line tool that can perform JSON schema validation which is included in a commonly used package that's available in the default package repositories of major Linux distros? If so, we may be able to get away with just requiring that the buildbots have that package installed.
If not, then we'd need to check in such a tool into the LLVM repo (and if it needs building, integrate its build into the build system).
In either case, the tests themselves can take the form of simple lit tests <https://llvm.org/docs/CommandGuide/lit.html> that invoke that tool on some test config files.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140462/new/
https://reviews.llvm.org/D140462
More information about the cfe-commits
mailing list