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
b4f9145f
Kaydet (Commit)
b4f9145f
authored
Haz 02, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Enable loplugin:loopvartoosmall
Change-Id: I114320ebaab9223b82b4fd9710c3cc221a836645
üst
7b6b8131
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
loopvartoosmall.cxx
compilerplugins/clang/loopvartoosmall.cxx
+4
-5
No files found.
compilerplugins/clang/loopvartoosmall.cxx
Dosyayı görüntüle @
b4f9145f
...
...
@@ -103,17 +103,17 @@ bool LoopVarTooSmall::VisitForStmt( const ForStmt* stmt )
if
(
qt1BitWidth
<
qt2BitWidth
)
{
report
(
DiagnosticsEngine
::
Warning
,
"loop index type
is narrower than length type. "
+
qt
.
getAsString
()
+
" < "
+
qt2
.
getAsString
()
,
"loop index type
%0 is narrower than length type %1"
,
stmt
->
getInit
()
->
getLocStart
())
<<
stmt
->
getInit
()
->
getSourceRange
();
<<
qt
<<
qt2
<<
stmt
->
getInit
()
->
getSourceRange
();
//stmt->getCond()->dump();
}
return
true
;
}
loplugin
::
Plugin
::
Registration
<
LoopVarTooSmall
>
X
(
"loopvartoosmall"
,
false
);
loplugin
::
Plugin
::
Registration
<
LoopVarTooSmall
>
X
(
"loopvartoosmall"
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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