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
41d6a0ea
Kaydet (Commit)
41d6a0ea
authored
Eki 15, 2012
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
some namespacing improvements
Change-Id: I95bd78340519bc1457385561b64c74e938b40bb2
üst
683928f2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
8 deletions
+6
-8
bodynotinblock.hxx
compilerplugins/clang/bodynotinblock.hxx
+1
-1
compileplugin.cxx
compilerplugins/clang/compileplugin.cxx
+0
-2
compileplugin.hxx
compilerplugins/clang/compileplugin.hxx
+2
-0
sallogareas.cxx
compilerplugins/clang/sallogareas.cxx
+1
-3
sallogareas.hxx
compilerplugins/clang/sallogareas.hxx
+1
-1
unusedvariablecheck.cxx
compilerplugins/clang/unusedvariablecheck.cxx
+1
-1
No files found.
compilerplugins/clang/bodynotinblock.hxx
Dosyayı görüntüle @
41d6a0ea
...
...
@@ -25,7 +25,7 @@ class BodyNotInBlock
void
run
();
bool
VisitFunctionDecl
(
FunctionDecl
*
declaration
);
private
:
typedef
std
::
vector
<
const
Stmt
*
>
StmtParents
;
typedef
vector
<
const
Stmt
*
>
StmtParents
;
void
traverseStatement
(
const
Stmt
*
stmt
,
StmtParents
&
parents
);
void
checkBody
(
const
Stmt
*
body
,
const
StmtParents
&
parents
,
int
stmtType
,
bool
dontGoUp
=
false
);
};
...
...
compilerplugins/clang/compileplugin.cxx
Dosyayı görüntüle @
41d6a0ea
...
...
@@ -21,8 +21,6 @@
#include "sallogareas.hxx"
#include "unusedvariablecheck.hxx"
using
namespace
clang
;
namespace
loplugin
{
...
...
compilerplugins/clang/compileplugin.hxx
Dosyayı görüntüle @
41d6a0ea
...
...
@@ -14,6 +14,8 @@
#include <clang/AST/RecursiveASTVisitor.h>
using
namespace
clang
;
using
namespace
llvm
;
using
namespace
std
;
namespace
loplugin
{
...
...
compilerplugins/clang/sallogareas.cxx
Dosyayı görüntüle @
41d6a0ea
...
...
@@ -14,8 +14,6 @@
#include <fstream>
using
namespace
std
;
namespace
loplugin
{
...
...
@@ -50,7 +48,7 @@ bool SalLogAreas::VisitCallExpr( CallExpr* call )
if
(
func
->
getNumParams
()
==
4
&&
func
->
getIdentifier
()
!=
NULL
&&
(
func
->
getName
()
==
"sal_detail_log"
||
func
->
getName
()
==
"log"
))
{
st
d
::
st
ring
qualifiedName
=
func
->
getQualifiedNameAsString
();
string
qualifiedName
=
func
->
getQualifiedNameAsString
();
if
(
qualifiedName
==
"sal_detail_log"
||
qualifiedName
==
"sal::detail::log"
)
{
if
(
const
StringLiteral
*
area
=
dyn_cast
<
StringLiteral
>
(
call
->
getArg
(
1
)
->
IgnoreParenImpCasts
()))
...
...
compilerplugins/clang/sallogareas.hxx
Dosyayı görüntüle @
41d6a0ea
...
...
@@ -31,7 +31,7 @@ class SalLogAreas
void
checkArea
(
StringRef
area
,
SourceLocation
location
);
void
readLogAreas
();
const
FunctionDecl
*
inFunction
;
s
td
::
set
<
std
::
string
>
logAreas
;
s
et
<
string
>
logAreas
;
};
}
// namespace
...
...
compilerplugins/clang/unusedvariablecheck.cxx
Dosyayı görüntüle @
41d6a0ea
...
...
@@ -67,7 +67,7 @@ bool UnusedVariableCheck::VisitVarDecl( VarDecl* var )
}
if
(
!
warn_unused
)
{
st
d
::
st
ring
n
=
type
->
getQualifiedNameAsString
();
string
n
=
type
->
getQualifiedNameAsString
();
// Check some common non-LO types.
if
(
n
==
"std::string"
||
n
==
"std::basic_string"
||
n
==
"std::list"
||
n
==
"std::__debug::list"
...
...
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