Skip to content

Commit

Permalink
Merge pull request #7780 from gartung/clangSA-getParamDumper
Browse files Browse the repository at this point in the history
this fixes clang warning/errors in pull request 7683
  • Loading branch information
cmsbuild committed Feb 19, 2015
2 parents 43463df + 7a38a23 commit eded68b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Utilities/StaticAnalyzers/scripts/data-class-funcs.py
Expand Up @@ -7,7 +7,7 @@
nsep = re.compile("\:\:")
topfunc = re.compile("::(produce|analyze|filter|beginLuminosityBlock|beginRun)\(")
baseclass = re.compile("edm::(one::|stream::|global::)?ED(Producer|Filter|Analyzer)(Base)?")
getfunc = re.compile("edm::eventsetup::EventSetupRecord::get\((.*)&\) const")
getfunc = re.compile("edm::eventsetup::EventSetupRecord::get\<.*\>\((.*)&\) const")
handle = re.compile("(.*),?class edm::ES(.*)Handle<(.*)>")
skip = re.compile("edm::serviceregistry::ServicesManager::MakerHolder::add() const")
statics = set()
Expand Down
5 changes: 3 additions & 2 deletions Utilities/StaticAnalyzers/scripts/run_class_dumper.sh
Expand Up @@ -4,8 +4,8 @@ if [ $# -eq 0 ] ;then J=$(getconf _NPROCESSORS_ONLN); else J=$1; fi

eval `scram runtime -sh`
for file in `cmsglimpse -l -F src/classes.*.h$ include`;do
dir=`dirname $file`;
echo \#include \<$file\> >${LOCALRT}/src/$dir/`basename $file`.cc ;
dir=`dirname $file`;
echo \#include \<$file\> >${LOCALRT}/src/$dir/`basename $file`.cc ;
done
cd ${LOCALRT}/tmp/
touch dump-start
Expand All @@ -32,6 +32,7 @@ sort -u < function-dumper.txt.unsorted > function-calls-db.txt
class-composition.py >classes.txt.inherits.unsorted
sort -u classes.txt.inherits.unsorted | grep -e"^class" | grep -v \'\' >classes.txt.inherits
sort -u classes.txt.inherits.unsorted | grep -v -e"^class" >classes.txt.inherits.extra
sort -u getparam-dumper.txt.unsorted | awk '{print $0"\n"}' >getparam-dumper.txt
cat classes.txt.inherits classes.txt.dumperft classes.txt.dumperct | grep -e"^class" | grep -v \'\' | sort -u >classes.txt
rm *.txt.*unsorted
classname-blmflt.py
4 changes: 4 additions & 0 deletions Utilities/StaticAnalyzers/src/getParamDumper.cpp
Expand Up @@ -35,6 +35,10 @@ const std::string getArgumentValueString(const CallExpr *CE, CheckerContext &C,
argVal.dumpToStream(os);
return os.str();
}

std::string buf("");
return buf;

}


Expand Down

0 comments on commit eded68b

Please sign in to comment.