Skip to content
Snippets Groups Projects
Commit ef5747c2 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

clang-tidy -checks=-*,performance-faster-string

parent b8dc1622
Branches
Tags
No related merge requests found
---
Checks: '-*,bugprone-*,modernize-*,-modernize-use-auto,-modernize-loop-convert,-modernize-pass-by-value,-modernize-raw-string-literal,-modernize-use-using,-modernize-avoid-bind,-modernize-return-braced-init-list,-modernize-use-transparent-functors,-modernize-redundant-void-arg'
Checks: '-*,bugprone-*,misc-string-compare,modernize-*,performance-faster-string-find,-modernize-use-auto,-modernize-loop-convert,-modernize-pass-by-value,-modernize-raw-string-literal,-modernize-use-using,-modernize-avoid-bind,-modernize-return-braced-init-list,-modernize-use-transparent-functors,-modernize-redundant-void-arg'
WarningsAsErrors: '*'
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
......
......@@ -273,7 +273,7 @@ void Config::parseFromFile( const char* filename, Block& block, unsigned int lev
{
input.ignore( 1 );
while( (value.find("$(") != value.npos) && (value.find(')') != value.npos) ) {
size_t s = value.find("$("); size_t e = value.find(")");
size_t s = value.find("$("); size_t e = value.find(')');
ValueReplacementMap::iterator mkey = valueReplacements_.find( value.substr( s+2, e-s+1-3 ) );
if(mkey != valueReplacements_.end()) {
value.replace( s,e-s+1, mkey->second );
......@@ -315,7 +315,7 @@ void Config::parseFromString( const std::string & str, Block& block, unsigned in
while (!input.empty()) {
std::string::size_type f=input.find_first_of(" {");
if (input[f]==' ') {
std::string::size_type posSemicolon = input.substr(f+1).find(";");
std::string::size_type posSemicolon = input.substr(f+1).find(';');
block.addParameter(input.substr(0,f),input.substr(f+1,posSemicolon));
input = input.substr(f+1+posSemicolon+1);
} else {
......@@ -406,7 +406,7 @@ void Config::extractBlock( const char* filename, std::stringstream& input, Block
{
input.ignore( 1 );
while( (value.find("$(") != value.npos) && (value.find(')') != value.npos) ) {
size_t s = value.find("$("); size_t e = value.find(")");
size_t s = value.find("$("); size_t e = value.find(')');
ValueReplacementMap::iterator mkey = valueReplacements_.find( value.substr( s+2, e-s+1-3 ) );
if(mkey != valueReplacements_.end()) {
value.replace( s,e-s+1, mkey->second );
......
......@@ -261,7 +261,7 @@ namespace config {
throw std::runtime_error( usageString(argv[0]) );
auto dotPosition = filename.find_last_of(".");
auto dotPosition = filename.find_last_of('.');
int numberOfZeros=0;
if ( dotPosition != std::string::npos )
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment