Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf 6.4.6§3. Note: This is not exactly the upstream Universal CTags commit because it depends on another change for adding the `enter` label, which was then included here. X-Universal-CTags-Commit-ID: 3b3b60c7664a321a31ec87de336fc6bda90c405e
- Loading branch information
Showing
4 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
/* simple trigraphs */ | ||
%:define A 1 | ||
%:define B 2 | ||
%:define STRINGIFY_INTERN(x) %:x | ||
%:define STRINGIFY(x) STRINGIFY_INTERN(x) | ||
|
||
%:define M3_INIT(a, b, c) <% a, b, c %> | ||
typedef int matrix3<:3:>; | ||
|
||
struct str <% | ||
char *buf; | ||
unsigned int len, size; | ||
%>; | ||
|
||
int main(void) | ||
<% | ||
const char *hello = STRINGIFY(hello); | ||
matrix3 m = M3_INIT(1, 2, 3); | ||
|
||
return m<:2:>; | ||
%> | ||
|
||
%:if 0 | ||
#define bug4 | ||
%:endif | ||
|
||
|
||
/* test the same with untaken preprocessor paths (as they are then not read by | ||
* the C parser but get.c) */ | ||
#if 0 | ||
%:define if0d_A 1 | ||
%:define if0d_B 2 | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# format=tagmanager | ||
A�65536�0 | ||
B�65536�0 | ||
M3_INIT�131072�(a, b, c)�0 | ||
STRINGIFY�131072�(x)�0 | ||
STRINGIFY_INTERN�131072�(x)�0 | ||
buf�64�str�0�char | ||
len�64�str�0�int | ||
main�16�(void)�0�int | ||
matrix3�4096�0�int | ||
size�64�str�0�int | ||
str�2048�0 |