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
3d963884
Kaydet (Commit)
3d963884
authored
Haz 05, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adapt UPDATE_FILES=<module> to headers being moved to include/
Change-Id: I6af5236358a51a51514d646c809147db56b2464b
üst
f2e5461f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
pluginhandler.cxx
compilerplugins/clang/pluginhandler.cxx
+12
-1
No files found.
compilerplugins/clang/pluginhandler.cxx
Dosyayı görüntüle @
3d963884
...
...
@@ -21,6 +21,17 @@
This source file manages all plugin actions. It is not necessary to modify this
file when adding new actions.
*/
namespace
{
bool
isPrefix
(
const
string
&
prefix
,
const
string
&
full
)
{
return
full
.
compare
(
0
,
prefix
.
size
(),
prefix
)
==
0
;
}
}
namespace
loplugin
{
...
...
@@ -193,7 +204,7 @@ void PluginHandler::HandleTranslationUnit( ASTContext& context )
;
// ok
else
// scope is module
{
if
(
strncmp
(
modifyFile
.
c_str
(),
(
SRCDIR
"/"
+
scope
+
"/"
).
c_str
(),
(
SRCDIR
"/"
+
scope
+
"/"
).
size
())
!=
0
)
if
(
!
(
isPrefix
(
SRCDIR
"/"
+
scope
+
"/"
,
modifyFile
)
||
isPrefix
(
SRCDIR
"/include/"
+
scope
+
"/"
,
modifyFile
)
)
)
continue
;
}
// Warn only now, so that files not in scope do not cause warnings.
...
...
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