8000 Suggestion: Replace `libclang` to `clang ast-dump=json` · Issue #2 · LorenDB/polyglot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Suggestion: Replace libclang to clang ast-dump=json #2
Open
@kassane

Description

@kassane

Hi @LorenDB,

Based on:

$> clang -x c++ -Xclang -ast-dump=json -fparse-all-comments [cpp|cc|h|hpp|hxx files]
# or (minimal)
$> clang -x c++ -Xclang -ast-dump=json -fsyntax-only [cpp|cc|h|hpp|hxx files]

Also used on c2z(C++ to Zig bindings [generator]), replacing clang to zig cc and add -lc++ (llvm-libc++) flag.

The purpose is to make your application more portable with no LLVM dependencies.

another reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0