-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main,win32: introduce an option replacing backslashes in input file n…
- Loading branch information
Showing
7 changed files
with
80 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright: 2019 Masatake YAMATO | ||
# License: GPL-2 | ||
|
||
CTAGS=$1 | ||
OPT=--use-slash-as-filename-separator | ||
|
||
. ../utils.sh | ||
|
||
exit_unless_win32 $CTAGS | ||
|
||
echo '#u-ctags output' | ||
$CTAGS --quiet --options=NONE -o - 'src\input.c' | ||
$CTAGS --quiet --options=NONE -o - $OPT 'src\input.c' | ||
$CTAGS --quiet --options=NONE -o - ${OPT}=no 'src\input.c' | ||
|
||
echo '#e-ctags output' | ||
$CTAGS --quiet --options=NONE --output-format=e-ctags -o - 'src\input.c' | ||
$CTAGS --quiet --options=NONE --output-format=e-ctags -o - $OPT 'src\input.c' | ||
$CTAGS --quiet --options=NONE --output-format=e-ctags -o - ${OPT}=no 'src\input.c' | ||
|
||
echo '#xref output' | ||
$CTAGS --quiet --options=NONE --output-format=xref -o - 'src\input.c' | ||
$CTAGS --quiet --options=NONE --output-format=xref -o - $OPT 'src\input.c' | ||
$CTAGS --quiet --options=NONE --output-format=xref -o - ${OPT}=no 'src\input.c' | ||
|
||
# TODO: json output |
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 @@ | ||
int n; |
12 changes: 12 additions & 0 deletions
12
Tmain/option-use-slash-as-filename-separator.d/stdout-expected.txt
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 @@ | ||
#u-ctags output | ||
n src/input.c /^int n;$/;" v typeref:typename:int | ||
n src/input.c /^int n;$/;" v typeref:typename:int | ||
n src\\input.c /^int n;$/;" v typeref:typename:int | ||
#e-ctags output | ||
n src\input.c /^int n;$/;" v typeref:typename:int | ||
n src/input.c /^int n;$/;" v typeref:typename:int | ||
n src\input.c /^int n;$/;" v typeref:typename:int | ||
#xref output | ||
n variable 1 src\\input.c int n; | ||
n variable 1 src/input.c int n; | ||
n variable 1 src\\input.c int n; |
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
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