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
ce9a41dc
Kaydet (Commit)
ce9a41dc
authored
Eyl 29, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adapt loplugin:reservedid to Windows
Change-Id: I41ccccd7ad77bc4ecf2ff7fcd9496af656ad952e
üst
25cd067a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
3 deletions
+50
-3
reservedid.cxx
compilerplugins/clang/reservedid.cxx
+50
-3
No files found.
compilerplugins/clang/reservedid.cxx
Dosyayı görüntüle @
ce9a41dc
...
...
@@ -62,11 +62,40 @@ void ReservedId::run() {
auto
&
prep
=
compiler
.
getPreprocessor
();
for
(
auto
const
&
m
:
prep
.
macros
(
false
))
{
auto
id
=
m
.
first
->
getName
();
if
(
determineKind
(
id
)
!=
Kind
::
Ok
&&
id
!=
"_GLIBCXX_CDTOR_CALLABI"
if
(
determineKind
(
id
)
!=
Kind
::
Ok
&&
id
!=
"_ATL_APARTMENT_THREADED"
// extensions/source/activex/StdAfx2.h
&&
id
!=
"_ATL_STATIC_REGISTRY"
// extensions/source/activex/StdAfx2.h
&&
id
!=
"_GLIBCXX_CDTOR_CALLABI"
&&
id
!=
"_MAX_PATH"
// Windows
&&
id
!=
"_POSIX_SOURCE"
&&
id
!=
"_USE_MATH_DEFINES"
// include/sal/config.h, Windows
&&
id
!=
"_WIN32_DCOM"
// embedserv/source/embed/esdll.cxx
&&
id
!=
"_WTL_NO_CSTRING"
// fpicker/source/win32/filepicker/platform_vista.h (TODO:
// needed?)
&&
id
!=
"__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"
&&
id
!=
"__ORCUS_STATIC_LIB"
&&
id
!=
"__USE_GNU"
&&
id
!=
"_MAX_PATH"
)
//TODO: win32
&&
id
!=
"__Column_FWD_DEFINED__"
// connectivity/source/inc/ado/Awrapadox.hxx, MS SDK
// adoctint.h
&&
id
!=
"__Group_FWD_DEFINED__"
// connectivity/source/inc/ado/Awrapadox.hxx, MS SDK
// adoctint.h
&&
id
!=
"__Index_FWD_DEFINED__"
// connectivity/source/inc/ado/Awrapadox.hxx, MS SDK
// adoctint.h
&&
id
!=
"__Key_FWD_DEFINED__"
// connectivity/source/inc/ado/Awrapadox.hxx, MS SDK
// adoctint.h
&&
id
!=
"__ORCUS_STATIC_LIB"
&&
id
!=
"__Table_FWD_DEFINED__"
// connectivity/source/inc/ado/Awrapadox.hxx, MS SDK
// adoctint.h
&&
id
!=
"__USE_GNU"
&&
id
!=
"__User_FWD_DEFINED__"
)
// connectivity/source/inc/ado/Awrapadox.hxx, MS SDK
// adoctint.h
{
auto
d
=
prep
.
getLocalMacroDirectiveHistory
(
m
.
first
);
for
(;;)
{
...
...
@@ -130,10 +159,13 @@ bool ReservedId::VisitNamedDecl(NamedDecl const * decl) {
// xmlsecurity/source/xmlsec/nss/nssrenam.h
&&
s
!=
"__CTFont"
// vcl/source/window/cairo_cairo.cxx -> include/vcl/sysdata.hxx
&&
s
!=
"__CxxDetectRethrow"
// bridges/source/cpp_uno/msvc_win32_x86-64/mscx.hxx
&&
s
!=
"__GLXcontextRec"
// vcl/unx/glxtest.cxx
&&
s
!=
"__GLXFBConfigRec"
// vcl/unx/glxtest.cxx
&&
s
!=
"__PK11_GetKeyData"
// xmlsecurity/source/xmlsec/nss/nssrenam.h
&&
s
!=
"__current_exception"
// bridges/inc/except.hxx, Windows
&&
s
!=
"__data_start"
// sal/osl/unx/system.cxx
&&
s
!=
"__lxstat64"
// setup_native/scripts/source/getuid.c
&&
s
!=
"__lxstat"
)
// setup_native/scripts/source/getuid.c
...
...
@@ -148,6 +180,20 @@ bool ReservedId::VisitNamedDecl(NamedDecl const * decl) {
break
;
case
Kind
:
:
UnderscoreUppercase
:
if
(
!
isApi
(
decl
)
&&
s
!=
"_ADOColumn"
// connectivity/source/inc/ado/Awrapadox.hxx, MS SDK adoctint.h
&&
s
!=
"_ADOGroup"
// connectivity/source/inc/ado/Awrapadox.hxx, MS SDK adoctint.h
&&
s
!=
"_ADOIndex"
// connectivity/source/inc/ado/Awrapadox.hxx, MS SDK adoctint.h
&&
s
!=
"_ADOKey"
// connectivity/source/inc/ado/Awrapadox.hxx, MS SDK adoctint.h
&&
s
!=
"_ADOTable"
// connectivity/source/inc/ado/Awrapadox.hxx, MS SDK adoctint.h
&&
s
!=
"_ADOUser"
// connectivity/source/inc/ado/Awrapadox.hxx, MS SDK adoctint.h
&&
s
!=
"_DllMainCRTStartup"
// odk/source/unowinreg/win/unowinreg.cxx (TODO: needed?)
&&
s
!=
"_FcPattern"
// vcl/inc/unx/fc_fontoptions.hxx
&&
s
!=
"_GdkDisplay"
// vcl/unx/gtk/xid_fullscreen_on_all_monitors.c
...
...
@@ -157,6 +203,7 @@ bool ReservedId::VisitNamedDecl(NamedDecl const * decl) {
// vcl/unx/gtk/xid_fullscreen_on_all_monitors.c
&&
s
!=
"_GstVideoOverlay"
// avmedia/source/gstreamer/gstplayer.hxx
&&
s
!=
"_Module"
// extensions/source/activex/StdAfx2.h, CComModule
&&
s
!=
"_XRegion"
// vcl/unx/generic/gdi/x11cairotextrender.cxx
&&
s
!=
"_XTrap"
)
// vcl/unx/generic/gdi/xrender_peer.hxx
{
...
...
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