Skip to content

Commit addf991

Browse files
committed
cppcheck: pass NodeKinds by const reference
Signed-off-by: amila <[email protected]>
1 parent b8ead21 commit addf991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/ASTMatchers/Dynamic/Marshallers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ class MapAnyOfMatcherDescriptor : public MatcherDescriptor {
936936

937937
public:
938938
MapAnyOfMatcherDescriptor(ASTNodeKind CladeNodeKind,
939-
std::vector<ASTNodeKind> NodeKinds)
939+
const std::vector<ASTNodeKind>& NodeKinds)
940940
: CladeNodeKind(CladeNodeKind), NodeKinds(NodeKinds) {}
941941

942942
VariantMatcher create(SourceRange NameRange, ArrayRef<ParserValue> Args,

0 commit comments

Comments
 (0)