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
80cb1ecb
Kaydet (Commit)
80cb1ecb
authored
Nis 12, 2019
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror=unused-param
Change-Id: I066b74763e45c785a9ebd7094fc33f44b8ddefb6
üst
9769288a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
sequentialassign.cxx
compilerplugins/clang/sequentialassign.cxx
+3
-4
No files found.
compilerplugins/clang/sequentialassign.cxx
Dosyayı görüntüle @
80cb1ecb
...
...
@@ -162,7 +162,7 @@ private:
const
VarDecl
*
findSimpleAssign
(
Stmt
const
*
);
bool
isSimpleRHS
(
Expr
const
*
);
Expr
const
*
ignore
(
Expr
const
*
);
void
checkForSecondAssign
(
Stmt
const
*
firstStmt
,
Stmt
const
*
stmt
,
VarDecl
const
*
varDecl
);
void
checkForSecondAssign
(
Stmt
const
*
stmt
,
VarDecl
const
*
varDecl
);
};
bool
SequentialAssign
::
VisitCompoundStmt
(
CompoundStmt
const
*
compoundStmt
)
...
...
@@ -186,14 +186,13 @@ bool SequentialAssign::VisitCompoundStmt(CompoundStmt const* compoundStmt)
++
it
;
if
(
it
==
compoundStmt
->
body_end
())
break
;
checkForSecondAssign
(
firstStmt
,
*
it
,
foundVars
);
checkForSecondAssign
(
*
it
,
foundVars
);
}
return
true
;
}
void
SequentialAssign
::
checkForSecondAssign
(
Stmt
const
*
firstStmt
,
Stmt
const
*
stmt
,
VarDecl
const
*
varDecl
)
void
SequentialAssign
::
checkForSecondAssign
(
Stmt
const
*
stmt
,
VarDecl
const
*
varDecl
)
{
if
(
auto
exprCleanup
=
dyn_cast
<
ExprWithCleanups
>
(
stmt
))
stmt
=
exprCleanup
->
getSubExpr
();
...
...
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