forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CXX: Improve parsing of function-try-blocks and try/catch in general
- Loading branch information
1 parent
576c750
commit 6ce94e0
Showing
10 changed files
with
297 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
--c++-kinds=+pflz | ||
--fields=+SsKe | ||
--fields-c++=+{captures}+{properties} | ||
--sort=no |
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 |
---|---|---|
@@ -1,4 +1,14 @@ | ||
S input.cxx /^struct S {$/;" s file: | ||
m input.cxx /^ std::string m;$/;" m struct:S typeref:typename:std::string file: | ||
S input.cxx /^ S(const std::string& arg) try : m(arg, 100) {$/;" f struct:S file: | ||
f input.cxx /^int f(int n = 2) try {$/;" f typeref:typename:int | ||
S input.cxx /^struct S {$/;" struct file: end:11 | ||
m input.cxx /^ std::string m;$/;" member struct:S typeref:typename:std::string file: | ||
S input.cxx /^ S(const std::string& arg) try : m(arg, 100) {$/;" function struct:S file: signature:(const std::string & arg) end:10 properties:fntryblock | ||
arg input.cxx /^ S(const std::string& arg) try : m(arg, 100) {$/;" parameter function:S::S typeref:typename:const std::string & file: | ||
e input.cxx /^ } catch(const std::exception& e) {$/;" local function:S::S typeref:typename:const std::exception & file: | ||
f input.cxx /^int f(int n = 2) try {$/;" function typeref:typename:int signature:(int n=2) end:20 properties:fntryblock | ||
n input.cxx /^int f(int n = 2) try {$/;" parameter function:f typeref:typename:int file: | ||
f2 input.cxx /^int f2() try {$/;" function typeref:typename:int signature:() end:28 properties:fntryblock | ||
f2v1 input.cxx /^} catch(SomeKindOfException &f2v1)$/;" local function:f2 typeref:typename:SomeKindOfException & file: | ||
f2v2 input.cxx /^} catch(SomeOtherKindOfException &f2v2)$/;" local function:f2 typeref:typename:SomeOtherKindOfException & file: | ||
f3 input.cxx /^int f3()$/;" function typeref:typename:int signature:() end:38 | ||
f2v1 input.cxx /^ int f2v1 = 10;$/;" local function:f3 typeref:typename:int file: | ||
f2v2 input.cxx /^ } catch(std::exception & f2v2)$/;" local function:f3 typeref:typename:std::exception & file: | ||
f4 input.cxx /^auto f4() -> void try {$/;" function typeref:typename:void try signature:() end:43 properties:fntryblock |
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
Oops, something went wrong.