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
87dc2228
Kaydet (Commit)
87dc2228
authored
Kas 22, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix unoidl sourceprovider "published" checks
Change-Id: I93b9fcc2b20ed7a7c160a9ef3294b6e578678f53
üst
75144495
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
2 deletions
+49
-2
published.tests
idlc/test/parser/published.tests
+43
-0
sourceprovider-parser.y
unoidl/source/sourceprovider-parser.y
+0
-0
sourceprovider-scanner.hxx
unoidl/source/sourceprovider-scanner.hxx
+6
-2
No files found.
idlc/test/parser/published.tests
Dosyayı görüntüle @
87dc2228
...
...
@@ -636,3 +636,46 @@ singleton S: I1;
EXPECT SUCCESS "published.tests 118":
published interface I1 {};
published singleton S: I1;
EXPECT FAILURE "published.tests 119":
interface I1 {};
published interface I2 { [optional] interface I1; };
EXPECT FAILURE "published.tests 120":
service S1 {};
published service S2 { [optional] service S1; };
EXPECT SUCCESS "published.tests 121":
interface I {};
published service S { [optional] interface I; };
EXPECT FAILURE "published.tests 122":
interface I {};
published service S { [optional, property] I p; };
EXPECT FAILURE "published.tests 123":
interface I {};
published service S { [optional, property] sequence<I> p; };
EXPECT FAILURE "published.tests 124":
struct P<T> { T m; };
interface I {};
published service S { [optional, property] P<I> p; };
EXPECT FAILURE "published.tests 125":
published struct P<T> { T m; };
interface I {};
published service S { [optional, property] P<I> p; };
EXPECT FAILURE "published.tests 126":
struct P<T> { T m; };
published interface I {};
published service S { [optional, property] P<I> p; };
unoidl/source/sourceprovider-parser.y
Dosyayı görüntüle @
87dc2228
This diff is collapsed.
Click to expand it.
unoidl/source/sourceprovider-scanner.hxx
Dosyayı görüntüle @
87dc2228
...
...
@@ -218,7 +218,10 @@ private:
};
struct
SourceProviderEntity
{
enum
Kind
{
KIND_EXTERNAL
,
KIND_LOCAL
,
KIND_INTERFACE_DECL
,
KIND_MODULE
};
enum
Kind
{
KIND_EXTERNAL
,
KIND_LOCAL
,
KIND_INTERFACE_DECL
,
KIND_PUBLISHED_INTERFACE_DECL
,
KIND_MODULE
};
explicit
SourceProviderEntity
(
Kind
theKind
,
rtl
::
Reference
<
unoidl
::
Entity
>
const
&
externalEntity
)
:
...
...
@@ -248,7 +251,7 @@ struct SourceProviderScannerData {
manager
(
theManager
),
sourcePosition
(),
sourceEnd
(),
// avoid false warnings about uninitialized members
errorLine
(
0
)
errorLine
(
0
)
,
publishedContext
(
false
)
{
assert
(
manager
.
is
());
}
void
setSource
(
void
const
*
address
,
sal_uInt64
size
)
{
...
...
@@ -267,6 +270,7 @@ struct SourceProviderScannerData {
std
::
map
<
OUString
,
SourceProviderEntity
>
entities
;
std
::
vector
<
OUString
>
modules
;
OUString
currentName
;
bool
publishedContext
;
};
bool
parse
(
OUString
const
&
uri
,
SourceProviderScannerData
*
data
);
...
...
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