Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/ast-grep/rules/cmstrcat-adjacent-literals.yml
3152 views
1
---
2
id: cmstrcat-adjacent-literals
3
language: Cpp
4
severity: warning
5
message: Adjacent `cmStrCat` arguments which are string literals should be combined
6
ignores:
7
- Utilities/ClangTidyModule/Tests/**
8
rule:
9
matches: string-literal
10
inside:
11
matches: cmstrcat-call
12
stopBy:
13
kind: call_expression
14
precedes:
15
matches: string-literal
16
follows:
17
pattern: ','
18
stopBy:
19
matches: cmstrcat-arg
20
21