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
ec0665ac
Kaydet (Commit)
ec0665ac
authored
Ara 18, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rename cdecl -> classdecl (MSVC treats the former like a keyword)
Change-Id: I1859a92c996b907b8d511cddba25c00c9a52f398
üst
5bddd370
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
stringconstant.cxx
compilerplugins/clang/stringconstant.cxx
+16
-16
No files found.
compilerplugins/clang/stringconstant.cxx
Dosyayı görüntüle @
ec0665ac
...
...
@@ -651,8 +651,8 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) {
if
(
ignoreLocation
(
expr
))
{
return
true
;
}
auto
cdecl
=
expr
->
getConstructor
()
->
getParent
();
if
(
loplugin
::
DeclCheck
(
cdecl
)
auto
c
lass
decl
=
expr
->
getConstructor
()
->
getParent
();
if
(
loplugin
::
DeclCheck
(
c
lass
decl
)
.
Class
(
"OUString"
).
Namespace
(
"rtl"
).
GlobalNamespace
())
{
ChangeKind
kind
;
...
...
@@ -693,7 +693,7 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) {
(
"construction of %0 with string constant argument"
" containging non-ASCII characters"
),
expr
->
getExprLoc
())
<<
cdecl
<<
expr
->
getSourceRange
();
<<
c
lass
decl
<<
expr
->
getSourceRange
();
}
if
(
emb
)
{
report
(
...
...
@@ -701,7 +701,7 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) {
(
"construction of %0 with string constant argument"
" containging embedded NULs"
),
expr
->
getExprLoc
())
<<
cdecl
<<
expr
->
getSourceRange
();
<<
c
lass
decl
<<
expr
->
getSourceRange
();
}
kind
=
ChangeKind
::
Char
;
pass
=
n
==
0
...
...
@@ -761,7 +761,7 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) {
" as call of rtl::OUString::isEmpty"
),
getMemberLocation
(
call
))
<<
fdecl
->
getQualifiedNameAsString
()
<<
cdecl
<<
call
->
getSourceRange
();
<<
c
lass
decl
<<
call
->
getSourceRange
();
return
true
;
}
if
(
dc
.
Operator
(
OO_ExclaimEqual
).
Namespace
(
"rtl"
)
...
...
@@ -774,7 +774,7 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) {
" as call of !rtl::OUString::isEmpty"
),
getMemberLocation
(
call
))
<<
fdecl
->
getQualifiedNameAsString
()
<<
cdecl
<<
call
->
getSourceRange
();
<<
c
lass
decl
<<
call
->
getSourceRange
();
return
true
;
}
if
((
dc
.
Operator
(
OO_Plus
).
Namespace
(
"rtl"
)
...
...
@@ -788,7 +788,7 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) {
" %1 with empty string constant argument"
),
getMemberLocation
(
call
))
<<
fdecl
->
getQualifiedNameAsString
()
<<
cdecl
<<
call
->
getSourceRange
();
<<
c
lass
decl
<<
call
->
getSourceRange
();
return
true
;
}
if
(
dc
.
Operator
(
OO_Equal
).
Class
(
"OUString"
)
...
...
@@ -801,7 +801,7 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) {
" as call of rtl::OUString::clear"
),
getMemberLocation
(
call
))
<<
fdecl
->
getQualifiedNameAsString
()
<<
cdecl
<<
call
->
getSourceRange
();
<<
c
lass
decl
<<
call
->
getSourceRange
();
return
true
;
}
}
else
{
...
...
@@ -817,7 +817,7 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) {
+
" as operator =="
),
getMemberLocation
(
call
))
<<
fdecl
->
getQualifiedNameAsString
()
<<
cdecl
<<
call
->
getSourceRange
();
<<
c
lass
decl
<<
call
->
getSourceRange
();
return
true
;
}
if
((
dc
.
Operator
(
OO_Plus
).
Namespace
(
"rtl"
)
...
...
@@ -871,7 +871,7 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) {
+
(
" in call of %1 as construction of"
" OUStringLiteral1"
)),
getMemberLocation
(
expr
))
<<
cdecl
<<
c
lass
decl
<<
fdecl
->
getQualifiedNameAsString
()
<<
expr
->
getSourceRange
();
}
else
{
...
...
@@ -881,7 +881,7 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) {
+
describeChangeKind
(
kind
)
+
" in call of %1"
),
getMemberLocation
(
expr
))
<<
cdecl
<<
c
lass
decl
<<
fdecl
->
getQualifiedNameAsString
()
<<
expr
->
getSourceRange
();
}
...
...
@@ -1184,9 +1184,9 @@ void StringConstant::reportChange(
return
;
}
}
else
if
(
isa
<
CXXConstructExpr
>
(
call
))
{
auto
c
decl
=
cast
<
CXXConstructExpr
>
(
call
)
->
getConstructor
(
)
->
getParent
();
loplugin
::
DeclCheck
dc
(
cdecl
);
auto
c
lassdecl
=
cast
<
CXXConstructExpr
>
(
call
)
->
get
Constructor
()
->
get
Parent
();
loplugin
::
DeclCheck
dc
(
c
lass
decl
);
if
(
dc
.
Class
(
"OUString"
).
Namespace
(
"rtl"
).
GlobalNamespace
()
||
(
dc
.
Class
(
"OUStringBuffer"
).
Namespace
(
"rtl"
)
.
GlobalNamespace
()))
...
...
@@ -1200,7 +1200,7 @@ void StringConstant::reportChange(
+
(
" with empty string constant argument as"
" default construction of %0"
)),
getMemberLocation
(
call
))
<<
cdecl
->
getQualifiedNameAsString
()
<<
c
lass
decl
->
getQualifiedNameAsString
()
<<
call
->
getSourceRange
();
}
else
{
assert
(
pass
==
PassThrough
::
NonEmptyConstantString
);
...
...
@@ -1210,7 +1210,7 @@ void StringConstant::reportChange(
+
describeChangeKind
(
kind
)
+
" in construction of %0"
),
getMemberLocation
(
expr
))
<<
cdecl
->
getQualifiedNameAsString
()
<<
c
lass
decl
->
getQualifiedNameAsString
()
<<
expr
->
getSourceRange
();
}
return
;
...
...
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