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
5f63d2c5
Kaydet (Commit)
5f63d2c5
authored
Haz 20, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror=unused-function
Change-Id: Iecc7d68ad18e90bf84d358af92194c230efc2671
üst
32dd79ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
oncevar.cxx
compilerplugins/clang/oncevar.cxx
+0
-9
No files found.
compilerplugins/clang/oncevar.cxx
Dosyayı görüntüle @
5f63d2c5
...
@@ -91,21 +91,12 @@ public:
...
@@ -91,21 +91,12 @@ public:
bool
VisitVarDecl
(
const
VarDecl
*
);
bool
VisitVarDecl
(
const
VarDecl
*
);
private
:
private
:
StringRef
getFilename
(
SourceLocation
loc
);
std
::
unordered_set
<
VarDecl
const
*>
maVarDeclSet
;
std
::
unordered_set
<
VarDecl
const
*>
maVarDeclSet
;
std
::
unordered_set
<
VarDecl
const
*>
maVarDeclToIgnoreSet
;
std
::
unordered_set
<
VarDecl
const
*>
maVarDeclToIgnoreSet
;
std
::
unordered_map
<
VarDecl
const
*
,
int
>
maVarUsesMap
;
std
::
unordered_map
<
VarDecl
const
*
,
int
>
maVarUsesMap
;
std
::
unordered_map
<
VarDecl
const
*
,
SourceRange
>
maVarUseSourceRangeMap
;
std
::
unordered_map
<
VarDecl
const
*
,
SourceRange
>
maVarUseSourceRangeMap
;
};
};
StringRef
OnceVar
::
getFilename
(
SourceLocation
loc
)
{
SourceLocation
spellingLocation
=
compiler
.
getSourceManager
().
getSpellingLoc
(
loc
);
StringRef
name
{
compiler
.
getSourceManager
().
getFilename
(
spellingLocation
)
};
return
name
;
}
bool
OnceVar
::
VisitVarDecl
(
const
VarDecl
*
varDecl
)
bool
OnceVar
::
VisitVarDecl
(
const
VarDecl
*
varDecl
)
{
{
if
(
ignoreLocation
(
varDecl
))
{
if
(
ignoreLocation
(
varDecl
))
{
...
...
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