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
09f5ffaf
Kaydet (Commit)
09f5ffaf
authored
Ara 18, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:commaoperator: Ignore occurrence in FD_SET expansion on Windows
Change-Id: I66974c273918d6d887364e7d552e3caf63e16343
üst
c052ec5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
commaoperator.cxx
compilerplugins/clang/commaoperator.cxx
+15
-0
No files found.
compilerplugins/clang/commaoperator.cxx
Dosyayı görüntüle @
09f5ffaf
...
...
@@ -39,6 +39,21 @@ bool CommaOperator::VisitBinaryOperator(const BinaryOperator* binaryOp)
if
(
ignoreLocation
(
binaryOp
))
{
return
true
;
}
// Ignore FD_SET expanding to "...} while(0, 0)" in some Microsoft
// winsock2.h (TODO: improve heuristic of determining that the whole
// binaryOp is part of a single macro body expansion):
if
(
compiler
.
getSourceManager
().
isMacroBodyExpansion
(
binaryOp
->
getLocStart
())
&&
compiler
.
getSourceManager
().
isMacroBodyExpansion
(
binaryOp
->
getOperatorLoc
())
&&
compiler
.
getSourceManager
().
isMacroBodyExpansion
(
binaryOp
->
getLocEnd
())
&&
ignoreLocation
(
compiler
.
getSourceManager
().
getSpellingLoc
(
binaryOp
->
getOperatorLoc
())))
{
return
true
;
}
if
(
binaryOp
->
getOpcode
()
!=
BO_Comma
)
{
return
true
;
}
...
...
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