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
dbbd2c48
Kaydet (Commit)
dbbd2c48
authored
Ara 18, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Work around problem with poor gperf-generated code under clang-cl
Change-Id: Iba3fae8bbecaf5782228be1fb99f196864d79e6b
üst
f2ef97de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
plugin.cxx
compilerplugins/clang/plugin.cxx
+13
-2
No files found.
compilerplugins/clang/plugin.cxx
Dosyayı görüntüle @
dbbd2c48
...
...
@@ -41,8 +41,19 @@ bool Plugin::ignoreLocation( SourceLocation loc )
if
(
compiler
.
getSourceManager
().
isInSystemHeader
(
expansionLoc
))
return
true
;
const
char
*
bufferName
=
compiler
.
getSourceManager
().
getPresumedLoc
(
expansionLoc
).
getFilename
();
if
(
bufferName
==
NULL
||
strncmp
(
bufferName
,
SRCDIR
"/external/"
,
strlen
(
SRCDIR
"/external/"
))
==
0
)
if
(
bufferName
==
NULL
||
strncmp
(
bufferName
,
SRCDIR
"/external/"
,
strlen
(
SRCDIR
"/external/"
))
==
0
||
strcmp
(
bufferName
,
SRCDIR
"/sdext/source/pdfimport/wrapper/keyword_list"
)
==
0
)
// workdir/CustomTarget/sdext/pdfimport/hash.cxx is generated from
// sdext/source/pdfimport/wrapper/keyword_list by gperf, which
// inserts various #line directives denoting the latter into the
// former, but fails to add a #line directive returning back to
// hash.cxx itself before the gperf generated boilerplate, so
// compilers erroneously consider errors in the boilerplate to come
// from keyword_list instead of hash.cxx (for Clang on Linux/macOS
// this is not an issue due to the '#pragma GCC system_header'
// generated into the start of hash.cxx, #if'ed for __GNUC__, but
// for clang-cl it is an issue)
return
true
;
if
(
strncmp
(
bufferName
,
WORKDIR
,
strlen
(
WORKDIR
))
==
0
)
{
...
...
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