You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sublime cannot find symbols if C++11 [[attribute]] specifier is placed before function. ie: it doesn't know the function is a function apparently if an attribute such as [[noreturn]] is placed before the function name.
Expected behavior
When I'm in a .hh file and place my cursor on the function name, then press F12, it should show it found it in the .cc file.
Actual behavior
Nothing happens. It cannot find the function--doesn't seem to recognize it---no popup occurs showing it is found in the other file.
Steps to reproduce
File --> New Window.
Create bug.hh with one line in it:
void foo();
Create bug.cc with these 4 lines in it:
void foo()
{
//do nothing
}
Go to bug.hh and place your cursor on "foo". Press F12 or right-click and click on "Goto Definition". You'll see a popup showing "bug.hh:1" and "bug.cc:1".
Now replace bug.hh with the following, having a C++11 attribute in front of it:
[[noreturn]] void foo();
And add the same attribute in bug.cc:
[[noreturn]] void foo()
{
//do nothing
}
And now click "foo" in "bug.hh" and hit F12 or do the right-click thing and NOTHING HAPPENS. Boom! ==BIG SCARY Bug!==
Now I have to resort to tools like git grep -i foo, assuming I've got the files in a local git repo, or grep -i -r foo . assuming I'm just working in a bare Linux directory. I'd really like Sublime to just link it for me instead like it should. Thanks!
Environment
Operating system and version:
Linux Ubuntu 14.04
Monitor: laptop
Resolution 1920x1080
dpi_scale used in ST ???--where do I find this?
Sublime Text: 3.0
Build 3143
64 bit
The text was updated successfully, but these errors were encountered:
Summary
Sublime cannot find symbols if C++11 [[attribute]] specifier is placed before function. ie: it doesn't know the function is a function apparently if an attribute such as
[[noreturn]]
is placed before the function name.Expected behavior
When I'm in a .hh file and place my cursor on the function name, then press F12, it should show it found it in the .cc file.
Actual behavior
Nothing happens. It cannot find the function--doesn't seem to recognize it---no popup occurs showing it is found in the other file.
Steps to reproduce
bug.hh
with one line in it:bug.cc
with these 4 lines in it:bug.hh
with the following, having a C++11 attribute in front of it:And add the same attribute in
bug.cc
:Now I have to resort to tools like
git grep -i foo
, assuming I've got the files in a local git repo, orgrep -i -r foo .
assuming I'm just working in a bare Linux directory. I'd really like Sublime to just link it for me instead like it should. Thanks!Environment
dpi_scale
used in ST ???--where do I find this?The text was updated successfully, but these errors were encountered: