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
4da8281d
Kaydet (Commit)
4da8281d
authored
Tem 02, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
compat for Clang 3.2
Change-Id: I2746abd05edd00dadfe613c17b9874b1035c3be4
üst
37b18359
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
compat.hxx
compilerplugins/clang/compat.hxx
+20
-0
salbool.cxx
compilerplugins/clang/salbool.cxx
+4
-2
No files found.
compilerplugins/clang/compat.hxx
Dosyayı görüntüle @
4da8281d
...
@@ -160,6 +160,26 @@ inline std::unique_ptr<llvm::raw_fd_ostream> create_raw_fd_ostream(
...
@@ -160,6 +160,26 @@ inline std::unique_ptr<llvm::raw_fd_ostream> create_raw_fd_ostream(
#endif
#endif
}
}
inline
clang
::
NamedDecl
*
const
*
begin
(
clang
::
DeclContextLookupConstResult
const
&
result
)
{
#if (__clang_major__ == 3 && __clang_minor__ >= 3) || __clang_major__ > 3
return
result
.
begin
();
#else
return
result
.
first
;
#endif
}
inline
clang
::
NamedDecl
*
const
*
end
(
clang
::
DeclContextLookupConstResult
const
&
result
)
{
#if (__clang_major__ == 3 && __clang_minor__ >= 3) || __clang_major__ > 3
return
result
.
end
();
#else
return
result
.
second
;
#endif
}
}
}
#endif
#endif
...
...
compilerplugins/clang/salbool.cxx
Dosyayı görüntüle @
4da8281d
...
@@ -72,8 +72,10 @@ OverrideKind getOverrideKind(FunctionDecl const * decl) {
...
@@ -72,8 +72,10 @@ OverrideKind getOverrideKind(FunctionDecl const * decl) {
// encounter in practice:
// encounter in practice:
bool
hasBoolOverload
(
FunctionDecl
const
*
decl
,
bool
mustBeDeleted
)
{
bool
hasBoolOverload
(
FunctionDecl
const
*
decl
,
bool
mustBeDeleted
)
{
unsigned
n
=
decl
->
getNumParams
();
unsigned
n
=
decl
->
getNumParams
();
for
(
auto
d
:
decl
->
getDeclContext
()
->
lookup
(
decl
->
getDeclName
()))
{
DeclContextLookupConstResult
res
FunctionDecl
const
*
f
=
dyn_cast
<
FunctionDecl
>
(
d
);
=
decl
->
getDeclContext
()
->
lookup
(
decl
->
getDeclName
());
for
(
auto
d
=
compat
::
begin
(
res
);
d
!=
compat
::
end
(
res
);
++
d
)
{
FunctionDecl
const
*
f
=
dyn_cast
<
FunctionDecl
>
(
*
d
);
if
(
f
!=
nullptr
&&
(
!
mustBeDeleted
||
f
->
isDeleted
()))
{
if
(
f
!=
nullptr
&&
(
!
mustBeDeleted
||
f
->
isDeleted
()))
{
if
(
f
->
getNumParams
()
==
n
)
{
if
(
f
->
getNumParams
()
==
n
)
{
bool
hasSB
=
false
;
bool
hasSB
=
false
;
...
...
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