summaryrefslogtreecommitdiff
path: root/tests/auto/language/testdata/filetags.qbs
blob: d055b7b1a6699d12a5d2185c71b78088958e23ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Project {
    FileTagger {
        patterns: "*.cpp"
        fileTags: ["cpp"]
    }

    Product {
        name: "filetagger_project_scope"
        files: ["main.cpp"]
    }

    Product {
        name: "filetagger_product_scope"
        files: ["drawline.asm"]
        FileTagger {
            patterns: "*.asm"
            fileTags: ["asm"]
        }
    }

    Product {
        name: "filetagger_static_pattern"
        files: "Banana"
        FileTagger {
            patterns: "Banana"
            fileTags: ["yellow"]
        }
    }

    Product {
        name: "unknown_file_tag"
        files: "narf.zort"
    }

    Product {
        name: "set_file_tag_via_group"
        Group {
            files: ["main.cpp"]
            fileTags: ["c++"]
        }
    }

    Product {
        name: "override_file_tag_via_group"
        Group {
            files: "main.cpp"   // gets file tag "cpp" through the FileTagger
            fileTags: ["c++"]
        }
    }

    Product {
        name: "add_file_tag_via_group"
        Group {
            overrideTags: false
            files: "main.cpp"
            fileTags: ["zzz"]
        }
    }

    Product {
        name: "prioritized_filetagger"
        files: ["main.cpp"]
        FileTagger {
            patterns: ["*.cpp"]
            fileTags: ["cpp1"]
            priority: 3
        }
        FileTagger {
            patterns: ["*.cpp"]
            fileTags: ["cpp2"]
            priority: 3
        }
        FileTagger {
            patterns: ["*.cpp"]
            fileTags: ["ignored"]
            priority: 2
        }
    }
}