clang_complete icon indicating copy to clipboard operation
clang_complete copied to clipboard

Jump-to-definition jumps wrong positions when used with assert

Open albertnetymk opened this issue 9 years ago • 0 comments

Using the following snippet, and place the cursor on func inside assert, and press <c-]>, the default keybinding for jump-to-definition.

#include <assert.h>

static int func() { return 1; }
int main() {

    assert(func() == 1);
    return 0;
}

It jumps to the source of assert, instead of the definition of func above.

albertnetymk avatar May 27 '15 19:05 albertnetymk