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
6eaa7a41
Kaydet (Commit)
6eaa7a41
authored
Kas 24, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Blind fix for Clang 3.6
Change-Id: I56dc86df0d355cfa8af38661892ea2bb580c394b
üst
1722665c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
oslendian.cxx
compilerplugins/clang/oslendian.cxx
+10
-6
No files found.
compilerplugins/clang/oslendian.cxx
Dosyayı görüntüle @
6eaa7a41
...
@@ -14,6 +14,12 @@
...
@@ -14,6 +14,12 @@
namespace
{
namespace
{
#if CLANG_VERSION < 30700
using
MacroDefinitionParam
=
MacroDirective
const
*
;
#else
using
MacroDefinitionParam
=
MacroDefinition
const
&
;
#endif
class
OslEndian
:
public
loplugin
::
Plugin
,
public
PPCallbacks
{
class
OslEndian
:
public
loplugin
::
Plugin
,
public
PPCallbacks
{
public
:
public
:
explicit
OslEndian
(
InstantiationData
const
&
data
)
:
Plugin
(
data
)
{
explicit
OslEndian
(
InstantiationData
const
&
data
)
:
Plugin
(
data
)
{
...
@@ -58,7 +64,7 @@ private:
...
@@ -58,7 +64,7 @@ private:
}
}
}
}
void
MacroUndefined
(
Token
const
&
MacroNameTok
,
MacroDefinition
const
&
)
void
MacroUndefined
(
Token
const
&
MacroNameTok
,
MacroDefinition
Param
)
override
override
{
{
auto
id
=
MacroNameTok
.
getIdentifierInfo
()
->
getName
();
auto
id
=
MacroNameTok
.
getIdentifierInfo
()
->
getName
();
...
@@ -70,22 +76,20 @@ private:
...
@@ -70,22 +76,20 @@ private:
}
}
}
}
void
Defined
(
void
Defined
(
Token
const
&
MacroNameTok
,
MacroDefinitionParam
,
SourceRange
)
Token
const
&
MacroNameTok
,
MacroDefinition
const
&
,
SourceRange
)
override
override
{
{
check
(
MacroNameTok
);
check
(
MacroNameTok
);
}
}
void
Ifdef
(
void
Ifdef
(
SourceLocation
,
Token
const
&
MacroNameTok
,
MacroDefinitionParam
)
SourceLocation
,
Token
const
&
MacroNameTok
,
MacroDefinition
const
&
)
override
override
{
{
check
(
MacroNameTok
);
check
(
MacroNameTok
);
}
}
void
Ifndef
(
void
Ifndef
(
SourceLocation
,
Token
const
&
MacroNameTok
,
MacroDefinition
const
&
)
SourceLocation
,
Token
const
&
MacroNameTok
,
MacroDefinition
Param
)
override
override
{
{
check
(
MacroNameTok
);
check
(
MacroNameTok
);
...
...
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