The Clang IntelliSense supports C smart completion, but if you try to use it outside the function’s root braces, the completion breaks.
void UART_Write(UART_HANDLE handle, uint8_t* data, int length);
int main()
{
UART_HANDLE h;
h. // Pressing ‘.’ triggers completion, and UART_Write is suggested as if the handle were a C++ class.
if (true)
{
h. // -> nothing
}
}
Is this the expected behavior, or is there a way to fix it?