Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d879d534
Kaydet (Commit)
d879d534
authored
May 05, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Downgrade for old Clang
Change-Id: Ia4c241040c52631df86c5bb7a95bca6af234251f
üst
2186e3f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
vclwidgets.cxx
compilerplugins/clang/vclwidgets.cxx
+9
-3
No files found.
compilerplugins/clang/vclwidgets.cxx
Dosyayı görüntüle @
d879d534
...
@@ -150,7 +150,9 @@ bool VCLWidgets::VisitCXXDestructorDecl(const CXXDestructorDecl* pCXXDestructorD
...
@@ -150,7 +150,9 @@ bool VCLWidgets::VisitCXXDestructorDecl(const CXXDestructorDecl* pCXXDestructorD
return
true
;
return
true
;
}
}
bool
foundVclPtrField
=
false
;
bool
foundVclPtrField
=
false
;
for
(
auto
fieldDecl
:
pRecordDecl
->
fields
())
{
for
(
auto
fieldDecl
=
pRecordDecl
->
field_begin
();
fieldDecl
!=
pRecordDecl
->
field_end
();
++
fieldDecl
)
{
const
RecordType
*
pFieldRecordType
=
fieldDecl
->
getType
()
->
getAs
<
RecordType
>
();
const
RecordType
*
pFieldRecordType
=
fieldDecl
->
getType
()
->
getAs
<
RecordType
>
();
if
(
pFieldRecordType
)
{
if
(
pFieldRecordType
)
{
const
CXXRecordDecl
*
pFieldRecordTypeDecl
=
dyn_cast
<
CXXRecordDecl
>
(
pFieldRecordType
->
getDecl
());
const
CXXRecordDecl
*
pFieldRecordTypeDecl
=
dyn_cast
<
CXXRecordDecl
>
(
pFieldRecordType
->
getDecl
());
...
@@ -161,7 +163,9 @@ bool VCLWidgets::VisitCXXDestructorDecl(const CXXDestructorDecl* pCXXDestructorD
...
@@ -161,7 +163,9 @@ bool VCLWidgets::VisitCXXDestructorDecl(const CXXDestructorDecl* pCXXDestructorD
}
}
}
}
bool
foundDispose
=
false
;
bool
foundDispose
=
false
;
for
(
auto
methodDecl
:
pRecordDecl
->
methods
())
{
for
(
auto
methodDecl
=
pRecordDecl
->
method_begin
();
methodDecl
!=
pRecordDecl
->
method_end
();
++
methodDecl
)
{
if
(
methodDecl
->
isInstance
()
&&
methodDecl
->
param_size
()
==
0
&&
methodDecl
->
getNameAsString
()
==
"dispose"
)
{
if
(
methodDecl
->
isInstance
()
&&
methodDecl
->
param_size
()
==
0
&&
methodDecl
->
getNameAsString
()
==
"dispose"
)
{
foundDispose
=
true
;
foundDispose
=
true
;
break
;
break
;
...
@@ -303,7 +307,9 @@ bool VCLWidgets::VisitFieldDecl(const FieldDecl * fieldDecl) {
...
@@ -303,7 +307,9 @@ bool VCLWidgets::VisitFieldDecl(const FieldDecl * fieldDecl) {
&&
startsWith
(
recordDecl
->
getQualifiedNameAsString
(),
"VclPtr"
))
&&
startsWith
(
recordDecl
->
getQualifiedNameAsString
(),
"VclPtr"
))
{
{
bool
foundDispose
=
false
;
bool
foundDispose
=
false
;
for
(
auto
methodDecl
:
pParentRecordDecl
->
methods
())
{
for
(
auto
methodDecl
=
pParentRecordDecl
->
method_begin
();
methodDecl
!=
pParentRecordDecl
->
method_end
();
++
methodDecl
)
{
if
(
methodDecl
->
isInstance
()
&&
methodDecl
->
param_size
()
==
0
&&
methodDecl
->
getNameAsString
()
==
"dispose"
)
{
if
(
methodDecl
->
isInstance
()
&&
methodDecl
->
param_size
()
==
0
&&
methodDecl
->
getNameAsString
()
==
"dispose"
)
{
foundDispose
=
true
;
foundDispose
=
true
;
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment