HomePhabricator

[clangd] Add include-mapping for C symbols.

Description

[clangd] Add include-mapping for C symbols.

Summary:
This resolves the issue of introducing c++-style includes for C files.

  • refactor the gen_std.py, make it reusable for parsing C symbols.
  • add a language mode to the mapping method to use different mapping for C and C++ files.

Reviewers: kadircet

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, jfb, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D63270

Details

Committed
hokeinFri, Jun 21, 6:32 AM
Differential Revision
D63270: [clangd] Add include-mapping for C symbols.
Parents
rL364043: Print information about various type nodes when dumping the AST to JSON.
Branches
Unknown
Tags
Unknown