clang_parseTransitionUnit2 gives error

Enes Albay albayenes at gmail.com
Mon Apr 11 19:16:33 BST 2022


It does not give any error


~$ 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-linux-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
/home/enes/clan_defines.cpp
-working-directory/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/build
/media/enes/MyFiles/programming/cpp/cmakeExamples/ex1/main.cpp


On Mon, Apr 11, 2022 at 9:00 PM Milian Wolff <mail at milianw.de> wrote:

> 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?
>
> Thanks
>
> --
> Milian Wolff
> mail at milianw.de
> http://milianw.de



-- 
Enes Albay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20220411/974df7d9/attachment.htm>


More information about the KDevelop-devel mailing list