Re: clang_parseTransitionUnit2 gives error
Enes Albay <[email protected]> Mon, 11 Apr 2022 21:16:33 +0300
| Newsgroups | gmane.comp.kde.devel.kdevelop |
|---|---|
| Message-ID | <CAA9-PzHjP5hLsm2LEcy8Rkb=kkWbGbaQ2KEkhLy7WSsGBByE6w@mail.gmail.com> |
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 <[email protected]> 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 > [email protected] > http://milianw.de -- Enes Albay