If I have something in my code like: printf("%s: Error, argument 6 is incorrect\n", __func__); the parser flags this as an error, complaining "Declaration not found: __func__ Note that __func__ is defined in the C99 standard. This litters a lot of code I work with. Reproducible: Always Steps to Reproduce: #include <stdio.h> int main(int argc, char *argv[]) { printf("This function is %s\n", __func__); return 0; } 3. Actual Results: The editor shows a problem Declaration not found: __func__ Expected Results: No error should be displayed because __func__ is part of the C99 standard.
Same for __FUNCTION__, __PRETTY_FUNCTION__ (although being GCC-specific) https://gcc.gnu.org/onlinedocs/gcc/Function-Names.html I'd like to see this fixed as well, I'm also working with an older code base where this litters my problems view.
Works fine under KDevelop 5.0 with the new Clang backend.