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
0f5756e2
Kaydet (Commit)
0f5756e2
authored
Eyl 23, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adapt compilerplugins to Clang trunk towards 3.6
Change-Id: If6ee343bb4d4004e7a95fe1c5adc97210fc0abd0
üst
6f8b4c06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
checkconfigmacros.cxx
compilerplugins/clang/checkconfigmacros.cxx
+2
-1
compat.hxx
compilerplugins/clang/compat.hxx
+12
-0
No files found.
compilerplugins/clang/checkconfigmacros.cxx
Dosyayı görüntüle @
0f5756e2
...
...
@@ -9,6 +9,7 @@
*
*/
#include "compat.hxx"
#include "plugin.hxx"
#include <clang/Lex/Preprocessor.h>
...
...
@@ -59,7 +60,7 @@ class CheckConfigMacros
CheckConfigMacros
::
CheckConfigMacros
(
const
InstantiationData
&
data
)
:
Plugin
(
data
)
{
comp
iler
.
getPreprocessor
().
addPPCallbacks
(
this
);
comp
at
::
addPPCallbacks
(
compiler
.
getPreprocessor
(),
this
);
}
void
CheckConfigMacros
::
run
()
...
...
compilerplugins/clang/compat.hxx
Dosyayı görüntüle @
0f5756e2
...
...
@@ -23,6 +23,8 @@
#include "clang/Basic/Linkage.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/Visibility.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/raw_ostream.h"
...
...
@@ -186,6 +188,16 @@ inline clang::NamedDecl * const * end(
#endif
}
inline
void
addPPCallbacks
(
clang
::
Preprocessor
&
preprocessor
,
clang
::
PPCallbacks
*
C
)
{
#if (__clang_major__ == 3 && __clang_minor__ >= 6) || __clang_major__ > 3
preprocessor
.
addPPCallbacks
(
std
::
unique_ptr
<
clang
::
PPCallbacks
>
(
C
));
#else
preprocessor
.
addPPCallbacks
(
C
);
#endif
}
}
#endif
...
...
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