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
9ab15ecc
Kaydet (Commit)
9ab15ecc
authored
Mar 21, 2013
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Wextra for compiler plugins
Change-Id: I246dcf1d2c099c510435d21f0dd47e3c098456f2
üst
2716dc0d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
Makefile-clang.mk
compilerplugins/Makefile-clang.mk
+1
-1
pluginhandler.cxx
compilerplugins/clang/pluginhandler.cxx
+2
-2
postfixincrementfix.cxx
compilerplugins/clang/postfixincrementfix.cxx
+1
-1
postfixincrementfix.hxx
compilerplugins/clang/postfixincrementfix.hxx
+1
-1
No files found.
compilerplugins/Makefile-clang.mk
Dosyayı görüntüle @
9ab15ecc
...
...
@@ -11,7 +11,7 @@
# You may occassionally want to override some of these
# Compile flags ('make CLANGCXXFLAGS=-g' if you need to debug the plugin)
CLANGCXXFLAGS=-O2 -Wall -g
CLANGCXXFLAGS=-O2 -Wall -
Wextra -
g
# The uninteresting rest.
...
...
compilerplugins/clang/pluginhandler.cxx
Dosyayı görüntüle @
9ab15ecc
...
...
@@ -216,12 +216,12 @@ void PluginHandler::HandleTranslationUnit( ASTContext& context )
}
}
ASTConsumer
*
LibreOfficeAction
::
CreateASTConsumer
(
CompilerInstance
&
Compiler
,
StringRef
InFile
)
ASTConsumer
*
LibreOfficeAction
::
CreateASTConsumer
(
CompilerInstance
&
Compiler
,
StringRef
)
{
return
new
PluginHandler
(
Compiler
.
getASTContext
(),
_args
);
}
bool
LibreOfficeAction
::
ParseArgs
(
const
CompilerInstance
&
CI
,
const
vector
<
string
>&
args
)
bool
LibreOfficeAction
::
ParseArgs
(
const
CompilerInstance
&
,
const
vector
<
string
>&
args
)
{
_args
=
args
;
return
true
;
...
...
compilerplugins/clang/postfixincrementfix.cxx
Dosyayı görüntüle @
9ab15ecc
...
...
@@ -125,7 +125,7 @@ bool PostfixIncrementFix::canChangePostfixToPrefix( const CXXOperatorCallExpr* o
}
bool
PostfixIncrementFix
::
canChangeInConditionStatement
(
const
CXXOperatorCallExpr
*
op
,
const
Expr
*
condition
,
const
StmtParents
&
parents
,
int
parent_pos
)
const
StmtParents
&
parents
,
unsigned
int
parent_pos
)
{
// cannot be changed in condition, can be changed in statements
if
(
parent_pos
==
parents
.
size
()
-
1
)
...
...
compilerplugins/clang/postfixincrementfix.hxx
Dosyayı görüntüle @
9ab15ecc
...
...
@@ -30,7 +30,7 @@ class PostfixIncrementFix
void
fixPostfixOperators
(
const
Stmt
*
stmt
,
StmtParents
&
parents
);
bool
canChangePostfixToPrefix
(
const
CXXOperatorCallExpr
*
op
,
StmtParents
&
parents
,
int
parent_pos
);
bool
canChangeInConditionStatement
(
const
CXXOperatorCallExpr
*
op
,
const
Expr
*
condition
,
const
StmtParents
&
parents
,
int
parent_pos
);
const
StmtParents
&
parents
,
unsigned
int
parent_pos
);
bool
shouldDoChange
(
const
Expr
*
op
);
};
...
...
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