Commit b9f3a5a
committed
simplify parsing by limiting to TypeAttr
Changing the attr base class from DeclOrTypeAttr to TypeAttr allows us
to better isolate the attribute handling logic just in SemaType.cpp in
the handleWrapsAttr() method. Furthermore, check for language
compatibility at this step as well.
Rely on `COnly` to provide the warnings to the user, then silently
discard the attribute.
| let LangOpts = [COnly];
Signed-off-by: Justin Stitt <[email protected]>1 parent 0cb962f commit b9f3a5a
File tree
3 files changed
+7
-16
lines changed- clang
- include/clang/Basic
- lib/Sema
3 files changed
+7
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4856 | 4856 | | |
4857 | 4857 | | |
4858 | 4858 | | |
4859 | | - | |
| 4859 | + | |
4860 | 4860 | | |
4861 | 4861 | | |
4862 | 4862 | | |
4863 | 4863 | | |
4864 | 4864 | | |
4865 | 4865 | | |
4866 | | - | |
| 4866 | + | |
4867 | 4867 | | |
4868 | 4868 | | |
4869 | 4869 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4009 | 4009 | | |
4010 | 4010 | | |
4011 | 4011 | | |
4012 | | - | |
4013 | | - | |
4014 | | - | |
4015 | | - | |
4016 | | - | |
4017 | | - | |
4018 | | - | |
4019 | | - | |
4020 | 4012 | | |
4021 | 4013 | | |
4022 | 4014 | | |
| |||
6970 | 6962 | | |
6971 | 6963 | | |
6972 | 6964 | | |
6973 | | - | |
6974 | | - | |
6975 | | - | |
6976 | | - | |
6977 | | - | |
6978 | | - | |
6979 | 6965 | | |
6980 | 6966 | | |
6981 | 6967 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6541 | 6541 | | |
6542 | 6542 | | |
6543 | 6543 | | |
| 6544 | + | |
| 6545 | + | |
| 6546 | + | |
| 6547 | + | |
| 6548 | + | |
6544 | 6549 | | |
6545 | 6550 | | |
6546 | 6551 | | |
| |||
0 commit comments