This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Commit 4915fdd
authored
[Serialization] Add a callback to register new created predefined decls for DeserializationListener (llvm#102855)
Close llvm#102684
The root cause of the issue is, it is possible that the predefined decl
is not registered at the beginning of writing a module file but got
created during the process of writing from reading.
This is incorrect. The predefined decls should always be predefined
decls.
Another deep thought about the issue is, we shouldn't read any new
things after we start to write the module file. But this is another
deeper question.1 parent a0241e7 commit 4915fdd
File tree
8 files changed
+129
-18
lines changed- clang
- include/clang
- Frontend
- Serialization
- lib
- Frontend
- Serialization
- test/Modules
8 files changed
+129
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1559 | 1559 | | |
1560 | 1560 | | |
1561 | 1561 | | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
1562 | 1565 | | |
1563 | 1566 | | |
1564 | 1567 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
| 872 | + | |
872 | 873 | | |
873 | 874 | | |
874 | 875 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7787 | 7787 | | |
7788 | 7788 | | |
7789 | 7789 | | |
7790 | | - | |
| 7790 | + | |
| 7791 | + | |
| 7792 | + | |
| 7793 | + | |
7791 | 7794 | | |
7792 | 7795 | | |
7793 | 7796 | | |
| |||
7796 | 7799 | | |
7797 | 7800 | | |
7798 | 7801 | | |
7799 | | - | |
| 7802 | + | |
| 7803 | + | |
| 7804 | + | |
| 7805 | + | |
7800 | 7806 | | |
7801 | 7807 | | |
7802 | | - | |
| 7808 | + | |
| 7809 | + | |
| 7810 | + | |
| 7811 | + | |
7803 | 7812 | | |
7804 | 7813 | | |
7805 | | - | |
| 7814 | + | |
| 7815 | + | |
| 7816 | + | |
| 7817 | + | |
7806 | 7818 | | |
7807 | 7819 | | |
7808 | | - | |
| 7820 | + | |
| 7821 | + | |
| 7822 | + | |
| 7823 | + | |
7809 | 7824 | | |
7810 | 7825 | | |
7811 | | - | |
| 7826 | + | |
| 7827 | + | |
| 7828 | + | |
| 7829 | + | |
7812 | 7830 | | |
7813 | 7831 | | |
7814 | | - | |
| 7832 | + | |
| 7833 | + | |
| 7834 | + | |
| 7835 | + | |
7815 | 7836 | | |
7816 | 7837 | | |
7817 | | - | |
| 7838 | + | |
| 7839 | + | |
| 7840 | + | |
| 7841 | + | |
7818 | 7842 | | |
7819 | 7843 | | |
7820 | | - | |
| 7844 | + | |
| 7845 | + | |
| 7846 | + | |
| 7847 | + | |
7821 | 7848 | | |
7822 | 7849 | | |
7823 | | - | |
| 7850 | + | |
| 7851 | + | |
| 7852 | + | |
| 7853 | + | |
7824 | 7854 | | |
7825 | 7855 | | |
7826 | | - | |
| 7856 | + | |
| 7857 | + | |
| 7858 | + | |
| 7859 | + | |
7827 | 7860 | | |
7828 | 7861 | | |
| 7862 | + | |
7829 | 7863 | | |
7830 | 7864 | | |
7831 | 7865 | | |
7832 | | - | |
| 7866 | + | |
| 7867 | + | |
| 7868 | + | |
| 7869 | + | |
7833 | 7870 | | |
7834 | 7871 | | |
7835 | | - | |
| 7872 | + | |
| 7873 | + | |
| 7874 | + | |
| 7875 | + | |
7836 | 7876 | | |
7837 | 7877 | | |
7838 | | - | |
| 7878 | + | |
| 7879 | + | |
| 7880 | + | |
| 7881 | + | |
7839 | 7882 | | |
7840 | 7883 | | |
7841 | | - | |
| 7884 | + | |
| 7885 | + | |
| 7886 | + | |
| 7887 | + | |
7842 | 7888 | | |
7843 | 7889 | | |
7844 | | - | |
| 7890 | + | |
| 7891 | + | |
| 7892 | + | |
| 7893 | + | |
7845 | 7894 | | |
7846 | | - | |
| 7895 | + | |
| 7896 | + | |
| 7897 | + | |
| 7898 | + | |
| 7899 | + | |
| 7900 | + | |
| 7901 | + | |
7847 | 7902 | | |
7848 | 7903 | | |
7849 | 7904 | | |
| |||
7860 | 7915 | | |
7861 | 7916 | | |
7862 | 7917 | | |
7863 | | - | |
| 7918 | + | |
7864 | 7919 | | |
7865 | 7920 | | |
7866 | 7921 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6754 | 6754 | | |
6755 | 6755 | | |
6756 | 6756 | | |
| 6757 | + | |
| 6758 | + | |
| 6759 | + | |
| 6760 | + | |
| 6761 | + | |
| 6762 | + | |
6757 | 6763 | | |
6758 | 6764 | | |
6759 | 6765 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments