Debian Codegraph @

examples/example-non-ascii.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright 2013 David Malcolm <[email protected]>
4 Copyright 2013 Red Hat, Inc.
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19 USA
20 -->
21 <analysis>
22 <!-- test of an instance document containing non-ASCII characters -->
23
24 <metadata>
25 <!-- a made-up generator name consisting of 8
26 "U+2620 SKULL AND CROSSBONES" characters: -->
27 <generator name="☠☠☠☠☠☠☠☠"/>
28 </metadata>
29
30 <results>
31 <!--
32 $ gcc -Wsign-compare -c non-ascii-example.c
33 non-ascii-example.c: In function ‘foo’:
34 non-ascii-example.c:50:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
35
36 The same, with LANG=ja_JP.UTF-8
37 $ LANG=ja_JP.UTF-8 gcc -Wsign-compare -c non-ascii-example.c
38 non-ascii-example.c: 関数 ‘foo’ 内:
39 non-ascii-example.c:50:9: 警告: 符号付きと符号無しの整数式の間での比較です [-Wsign-compare]
40 -->
41 <issue>
42 <!-- "comparison between signed and unsigned integer expressions" -->
43 <message>符号付きと符号無しの整数式の間での比較です</message>
44
45 <notes>This note embeds the substring "文字化け" (aka "mojibake")
46
47 Here are some Unicode "Box Drawing" characters:
48 first ─> n0 ─> n1 ─> ... ─> nN ┐
49 A │
50 └────────────────────────────┘
51 </notes>
52 <location>
53
54 <!--
55 In theory the filename could contain non-ASCII characters
56 However, doing it within our SCM repository opens us up to
57 dealing with filesystem encodings on all the different
58 filesystems that the code might be checked out on.
59 -->
60 <file given-path="examples/non-ascii-example.c"/>
61
62 <!--
63 (Python 3 supports full unicode for identifiers; can GCC do the
64 same for C?). For now, let's turn "foo" upside-down
65 (the "f" is actually a
66 "LATIN SMALL LETTER DOTLESS J WITH STROKE (U+025F)")
67 -->
68 <function name="ooɟ"/>
69
70 <point line="50" column="9"/>
71 </location>
72 </issue>
73 </results>
74 </analysis>