codechecker icon indicating copy to clipboard operation
codechecker copied to clipboard

Run clang-extdef-mapping on the .ast files instead of the source

Open tru opened this issue 3 years ago • 2 comments

I just wanted to give you guys a heads up that I just landed: https://reviews.llvm.org/D128704 which makes it possible to run clang-extdef-mapping on the ast files directly instead of having to re-parse the source.

This gives a nice 3x speed-up on our codebase. You can see the numbers in the review above.

This will be included in clang 15.x - but you can detect if it's possible by parsing clang-extdef-mapping --help and it will mention ast files there when my patch is running.

tru avatar Jul 05 '22 11:07 tru

This is a great addition. Thanks! We will add this support for this in CodeChecker.

On Tue, Jul 5, 2022 at 1:49 PM Tobias Hieta @.***> wrote:

I just wanted to give you guys a heads up that I just landed: https://reviews.llvm.org/D128704 which makes it possible to run clang-extdef-mapping on the ast files directly instead of having to re-parse the source.

This gives a nice 3x speed-up on our codebase. You can see the numbers in the review above.

This will be included in clang 15.x - but you can detect if it's possible by parsing clang-extdef-mapping --help and it will mention ast files there when my patch is running.

— Reply to this email directly, view it on GitHub https://github.com/Ericsson/codechecker/issues/3703, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5IV2MC542YMF75ILE3GVLVSQONPANCNFSM52V6B2AQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dkrupp avatar Jul 05 '22 13:07 dkrupp

https://github.com/Ericsson/codechecker/pull/3707

martong avatar Jul 13 '22 16:07 martong