[PATCH] D142836: [clangd] Add symbol mappings for `std::experimental::filesystem`

Younan Zhang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 13 07:16:23 PST 2023


zyounan added a comment.

Thank you for your detailed explanation and sorry again for my dumb mistake before. :)



================
Comment at: clang/lib/Tooling/Inclusions/Stdlib/StdTsSymbolMap.inc:6
+// whatever.
+// clang-format off
+SYMBOL(absolute, std::experimental::filesystem::, <experimental/filesystem>)
----------------
kadircet wrote:
> zyounan wrote:
> > kadircet wrote:
> > > zyounan wrote:
> > > > kadircet wrote:
> > > > > can you strip clang-format pragmas to be similar to other mapping files.
> > > > I'd love to if possible, but for some reason clang-format would add extra spaces before and after the slash, `<experimental / filesystem>`, which looks ugly and I don't expect it right.
> > > i don't follow, why do you **need** to run clang-format on this file? symbols are already ordered
> > Specifically, it is `git clang-format`. The pipeline would fail if this command does modify some files IIRC.
> not sure what workflow you're using but clang-format is not a mandatory part of the workflow.
> recommended way is updating/uploading patches using arcanist, whose config only contains files with one of the `cc|h|cpp` extensions, see https://github.com/llvm/llvm-project/blob/main/.arclint.
> 
> anyways, happy to land this for you if it's not easy to disable clang-format linting on your workflow for whatever reason.
I've looked into the script of the running pipeline, it shows that it is running `${SRC}/scripts/premerge_checks.py --check-clang-format`, which would [run `git clang-format`](https://github.com/google/llvm-premerge-checks/blob/abe5c8991b5e81f0182528ff8ce515ba89a66c0a/scripts/premerge_checks.py#L163). I'm using arcanist with default config, and I don't know if I'm missing something to skip this. (Perhaps it is because the rule you mentioned doesn't exclude `.inc` files, and we didn't write any slashes in such files either.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142836/new/

https://reviews.llvm.org/D142836



More information about the cfe-commits mailing list