clang_parseTransitionUnit2 gives error

Milian Wolff mail at
Mon Apr 11 19:00:46 BST 2022

On Montag, 11. April 2022 13:29:48 CEST Enes Albay wrote:
> I am working on debian bullseye.
> kde/build/kdevelop/bin$ uname -a
> Linux enes-albay 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17)
> x86_64 GNU/Linux

OK, now put the `#define ...' lines into a file and then call this:

> Invocation: clang -ferror-limit=100 -fspell-checking  -Wunused-parameter
> -Wunreachable-code -Wall -std=c++11 -nostdinc -nostdinc++ -xc++
> -Wno-gnu-zero-variadic-macro-arguments -isystem/usr/include/c++/11
> -isystem/usr/include/x86_64-linu
> x-gnu/c++/11 -isystem/usr/include/c++/11/backward
> -isystem/usr/local/include -isystem/usr/include/x86_64-linux-gnu
> -isystem/usr/include -isystem /usr/lib/llvm-11/lib/clang/11.1.0/include
> -imacros /tmp/kdevelop.SaQcpd -working-directory/
> media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build
> /media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/main.cpp

But replace the path after `-imacros` with the path to the file you created 
above. Does that reproduce the issue?


Milian Wolff
mail at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the KDevelop-devel mailing list