Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SMPStaticAnalyzer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
SMPStaticAnalyzer
Commits
77934728
Commit
77934728
authored
7 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Use references instead of pointers for STARS optins
Former-commit-id: 9b485bb3f4a25fd36f7b006673a1125589ec16bd
parent
bbe09d64
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/stars.h
+4
-4
4 additions, 4 deletions
include/stars.h
src/drivers/library/stars_irdb.cpp
+4
-4
4 additions, 4 deletions
src/drivers/library/stars_irdb.cpp
with
8 additions
and
8 deletions
include/stars.h
+
4
−
4
View file @
77934728
...
...
@@ -44,20 +44,20 @@ namespace STARS
IRDB_Interface_t
(
libIRDB
::
pqxxDB_t
&
p_pqxx_interface
)
:
pqxx_interface
(
p_pqxx_interface
)
{
STARSOptions
=
new
STARS
::
Option_t
();
};
STARS
::
Option_t
*
GetSTARSOptions
(
void
)
{
return
STARSOptions
;
};
STARS
::
Option_t
&
GetSTARSOptions
(
void
)
{
return
STARSOptions
;
};
const
STARS
::
Option_t
&
GetSTARSOptions
(
void
)
const
{
return
STARSOptions
;
};
// invoke stars on one file.
int
do_STARS
(
libIRDB
::
FileIR_t
*
firp
);
MEDS_Annotation
::
MEDS_AnnotationParser
&
getAnnotations
()
{
return
parser
;
}
const
MEDS_Annotation
::
MEDS_AnnotationParser
&
getAnnotations
()
const
{
return
parser
;
}
private
:
libIRDB
::
pqxxDB_t
&
pqxx_interface
;
MEDS_Annotation
::
MEDS_AnnotationParser
parser
;
STARS
::
Option_t
*
STARSOptions
;
STARS
::
Option_t
STARSOptions
;
};
}
...
...
This diff is collapsed.
Click to expand it.
src/drivers/library/stars_irdb.cpp
+
4
−
4
View file @
77934728
...
...
@@ -166,20 +166,20 @@ int STARS::IRDB_Interface_t::do_STARS(FileIR_t* firp)
Init_stars_global_program
(
firp
);
// Set options into the GSP
if
(
this
->
GetSTARSOptions
()
->
ShouldSTARSPerformLevel2ReducedAnalysis
())
{
if
(
this
->
GetSTARSOptions
()
.
ShouldSTARSPerformLevel2ReducedAnalysis
())
{
global_STARS_program
->
SetLevel2ReducedProcessingFlag
(
true
);
SMP_msg
(
"INFO: Level 2 Reduced processing requested via command-line options.
\n
"
);
}
else
if
(
this
->
GetSTARSOptions
()
->
ShouldSTARSPerformReducedAnalysis
())
{
else
if
(
this
->
GetSTARSOptions
()
.
ShouldSTARSPerformReducedAnalysis
())
{
global_STARS_program
->
SetReducedProcessingFlag
(
true
);
SMP_msg
(
"INFO: Reduced processing requested via command-line options.
\n
"
);
}
if
(
this
->
GetSTARSOptions
()
->
ShouldSTARSShadowFuncPtrs
())
{
if
(
this
->
GetSTARSOptions
()
.
ShouldSTARSShadowFuncPtrs
())
{
global_STARS_program
->
SetFuncPtrShadowingFlag
(
true
);
SMP_msg
(
"INFO: Function pointer shadowing requested via command-line options.
\n
"
);
}
if
(
this
->
GetSTARSOptions
()
->
ShouldSTARSShadowCriticalArgs
())
{
if
(
this
->
GetSTARSOptions
()
.
ShouldSTARSShadowCriticalArgs
())
{
global_STARS_program
->
SetArgShadowingFlag
(
true
);
SMP_msg
(
"INFO: Critical argument shadowing requested via command-line options.
\n
"
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment