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
311fb9d5
Kaydet (Commit)
311fb9d5
authored
Agu 11, 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: I0b7be1616a3e4206982f9f925de141ed9d53b96e
üst
6d5e6907
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
pluginhandler.cxx
compilerplugins/clang/pluginhandler.cxx
+7
-0
pluginhandler.hxx
compilerplugins/clang/pluginhandler.hxx
+5
-0
No files found.
compilerplugins/clang/pluginhandler.cxx
Dosyayı görüntüle @
311fb9d5
...
...
@@ -241,10 +241,17 @@ void PluginHandler::HandleTranslationUnit( ASTContext& context )
}
}
#if (__clang_major__ == 3 && __clang_minor__ >= 6) || __clang_major__ > 3
std
::
unique_ptr
<
ASTConsumer
>
LibreOfficeAction
::
CreateASTConsumer
(
CompilerInstance
&
Compiler
,
StringRef
)
{
return
make_unique
<
PluginHandler
>
(
Compiler
,
_args
);
}
#else
ASTConsumer
*
LibreOfficeAction
::
CreateASTConsumer
(
CompilerInstance
&
Compiler
,
StringRef
)
{
return
new
PluginHandler
(
Compiler
,
_args
);
}
#endif
bool
LibreOfficeAction
::
ParseArgs
(
const
CompilerInstance
&
,
const
vector
<
string
>&
args
)
{
...
...
compilerplugins/clang/pluginhandler.hxx
Dosyayı görüntüle @
311fb9d5
...
...
@@ -54,7 +54,12 @@ class LibreOfficeAction
:
public
PluginASTAction
{
public
:
#if (__clang_major__ == 3 && __clang_minor__ >= 6) || __clang_major__ > 3
virtual
std
::
unique_ptr
<
ASTConsumer
>
CreateASTConsumer
(
CompilerInstance
&
Compiler
,
StringRef
InFile
);
#else
virtual
ASTConsumer
*
CreateASTConsumer
(
CompilerInstance
&
Compiler
,
StringRef
InFile
);
#endif
virtual
bool
ParseArgs
(
const
CompilerInstance
&
CI
,
const
vector
<
string
>&
args
);
private
:
vector
<
string
>
_args
;
...
...
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