mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
Bug fix/clang-tidy-performance (#300)
Various clang-tidy-performance fixes: * noexcept * performance-noexcept-swap * performance * performance-move-const-arg * performance-unnecessary-value-param * performance-inefficient-vector-operation * performance-no-int-to-ptr * add performance * performance-inefficient-string-concatenation * clang-analyzer-deadcode.DeadStores * performance-inefficient-vector-operation * clang-analyzer-core.NullDereference * clang-analyzer-core.UndefinedBinaryOperatorResult * clang-analyzer-core.CallAndMessage --------- Co-authored-by: gtsoul-tech <gtsoulkanakis@gmail.com>
This commit is contained in:
@@ -324,7 +324,7 @@ vector<BadPatternParam> getBadPatterns() {
|
||||
string regex;
|
||||
hs_expr_ext ext;
|
||||
if (!readExpression(expr, regex, &flags, &ext)) {
|
||||
cerr << expr << " failed in readExpression" << endl;
|
||||
cerr << expr << " failed in readExpression\n";
|
||||
abort();
|
||||
}
|
||||
rv.push_back(BadPatternParam(regex, flags, ext, error));
|
||||
|
@@ -91,9 +91,9 @@ struct pattern {
|
||||
}
|
||||
|
||||
pattern(std::string expression_in, unsigned int flags_in,
|
||||
unsigned int id_in, hs_expr_ext ext_in)
|
||||
unsigned int id_in,const hs_expr_ext& ext_in)
|
||||
: expression(std::move(expression_in)), flags(flags_in), id(id_in),
|
||||
ext(std::move(ext_in)) {}
|
||||
ext(ext_in) {}
|
||||
};
|
||||
|
||||
std::ostream &operator<<(std::ostream &o, const pattern &p);
|
||||
|
Reference in New Issue
Block a user