clang_complete
clang_complete copied to clipboard
Jump-to-definition jumps wrong positions when used with assert
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.