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
fb2cd383
Kaydet (Commit)
fb2cd383
authored
Nis 06, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Look through ExprWithCleanups etc.
Change-Id: I5c8af20a71eca245c4b2a0061dc0612a4770c8ff
üst
3510a0e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
useuniqueptr.cxx
compilerplugins/clang/useuniqueptr.cxx
+3
-1
No files found.
compilerplugins/clang/useuniqueptr.cxx
Dosyayı görüntüle @
fb2cd383
...
...
@@ -160,7 +160,9 @@ bool UseUniquePtr::VisitCompoundStmt(const CompoundStmt* compoundStmt)
auto
varDecl
=
dyn_cast
<
VarDecl
>
(
declRefExpr
->
getDecl
());
if
(
!
varDecl
)
return
true
;
if
(
!
varDecl
->
hasInit
()
||
!
dyn_cast
<
CXXNewExpr
>
(
varDecl
->
getInit
()))
if
(
!
varDecl
->
hasInit
()
||
!
isa
<
CXXNewExpr
>
(
varDecl
->
getInit
()
->
IgnoreImplicit
()
->
IgnoreParenImpCasts
()))
return
true
;
// determine if the var is declared inside the same block as the delete.
// @TODO there should surely be a better way to do this
...
...
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