Skip to content

MLIR based diagnostics (e.g. LifetimeChecker) should be defined using tablegen #18

@inclyc

Description

@inclyc

Currently CIR uses the diagnostic engine provided by MLIR.

I wonder if CIR will migrate to the diagnostic engine of clang itself in the future? Because the existing clang diagnostic information is defined declaratively using TableGen, and has its diagnostic groups and settings (e.g. enabled by default or not).

Example:

D << "use of invalid pointer '" << varName << "'";

Link: https://mlir.llvm.org/docs/Diagnostics/
Link: https://clang.llvm.org/docs/InternalsManual.html#the-diagnostics-subsystem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions