diff options
author | Tobias Hieta <tobias@hieta.se> | 2022-07-05 13:45:32 +0200 |
---|---|---|
committer | Tobias Hieta <tobias@hieta.se> | 2022-07-05 13:45:52 +0200 |
commit | e6ff553979e850eeb7f0bbe77deab1c88fc764b3 (patch) | |
tree | 07a343eb5191a0b08b8368f1fa0b0e9d508f0124 /clang/docs | |
parent | 04c5fed5e0c62cc02a654463552e6cd2967badf1 (diff) | |
download | llvm-e6ff553979e850eeb7f0bbe77deab1c88fc764b3.zip llvm-e6ff553979e850eeb7f0bbe77deab1c88fc764b3.tar.gz llvm-e6ff553979e850eeb7f0bbe77deab1c88fc764b3.tar.bz2 |
[clang-extdef-mapping] Directly process .ast files
When doing CTU analysis setup you pre-compile .cpp to .ast and then
you run clang-extdef-mapping on the .cpp file as well. This is a
pretty slow process since we have to recompile the file each time.
With this patch you can now run clang-extdef-mapping directly on
the .ast file. That saves a lot of time.
I tried this on llvm/lib/AsmParser/Parser.cpp and running
extdef-mapping on the .cpp file took 5.4s on my machine.
While running it on the .ast file it took 2s.
This can save a lot of time for the setup phase of CTU analysis.
Reviewed By: martong
Differential Revision: https://reviews.llvm.org/D128704
Diffstat (limited to 'clang/docs')
-rw-r--r-- | clang/docs/ReleaseNotes.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index f074d1b..1be63b5 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -587,6 +587,13 @@ clang-format - Option ``InsertBraces`` has been added to insert optional braces after control statements. +clang-extdef-mapping +-------------------- + +- clang-extdef-mapping now accepts .ast files as input. This is faster than to + recompile the files from sources when extracting method definitons. This can + be really beneficial when creating .ast files for input to the clang-static-analyzer. + libclang -------- |