<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Message 3:<br/>
Re: Clang integration to other tools<br/>
(Andi-Bogdan Postelnicu via cfe-dev)</div>
<div> </div>
<div>Hello, </div>
<div> </div>
<div>
<div>I would use the .clang-format file in tools like:<br/>
- Texas Instruments Code Composer <br/>
- Eclipse <br/>
- ARM Keil </div>
<div> </div>
<div>Running it in Texas Instruments Code Composer is the priority for now.</div>
<div>In doing so, I would like to find out what options are available to run the clang format. This also under Windows.</div>
<div>Being new to this, I don't even know how to bring the .clang-format file into Texas Instruments Code Composer. </div>
<div>And further, how do I get C files into Clang? </div>
<div>I am sending you my .clang-format file in the attachment. </div>
<div> </div>
<div>Thanks,</div>
<div>Shirley :) </div>
<div> </div>
</div>
<div>
<div>
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Mittwoch, 17. Februar 2021 um 16:07 Uhr<br/>
<b>Von:</b> "via cfe-dev" <cfe-dev@lists.llvm.org><br/>
<b>An:</b> cfe-dev@lists.llvm.org<br/>
<b>Betreff:</b> cfe-dev Digest, Vol 164, Issue 59</div>
<div>Send cfe-dev mailing list submissions to<br/>
cfe-dev@lists.llvm.org<br/>
<br/>
To subscribe or unsubscribe via the World Wide Web, visit<br/>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br/>
or, via email, send a message with subject or body 'help' to<br/>
cfe-dev-request@lists.llvm.org<br/>
<br/>
You can reach the person managing the list at<br/>
cfe-dev-owner@lists.llvm.org<br/>
<br/>
When replying, please edit your Subject line so it is more specific<br/>
than "Re: Contents of cfe-dev digest..."<br/>
<br/>
<br/>
Today's Topics:<br/>
<br/>
1. Outreachy - Mentors and projects needed<br/>
(Tanya Lattner via cfe-dev)<br/>
2. Clang integration to other tools (shirley breuer via cfe-dev)<br/>
3. Re: Clang integration to other tools<br/>
(Andi-Bogdan Postelnicu via cfe-dev)<br/>
4. Update on generating cc1 command line from CompilerInvocation<br/>
(Jan Svoboda via cfe-dev)<br/>
5. CLang. How to turn on reference to pointer errors<br/>
(Andrey Sharoyko via cfe-dev)<br/>
<br/>
<br/>
----------------------------------------------------------------------<br/>
<br/>
Message: 1<br/>
Date: Tue, 16 Feb 2021 14:40:38 -0800<br/>
From: Tanya Lattner via cfe-dev <cfe-dev@lists.llvm.org><br/>
To: cfe-dev <cfe-dev@lists.llvm.org><br/>
Subject: [cfe-dev] Outreachy - Mentors and projects needed<br/>
Message-ID: <5AFA23F3-F84A-464E-B512-5573925C2196@llvm.org><br/>
Content-Type: text/plain; charset="utf-8"<br/>
<br/>
Outreachy (<a href="https://www.outreachy.org" target="_blank">https://www.outreachy.org</a>) is an internship program with a goal to increase diversity in open source. Internships are 3 months long (end of May to end of August), remote, and pay a stipend. Interns work with experienced mentors from open source communities, such as LLVM. Outreachy projects may include "programming, user experience, documentation, illustration, graphical design, data science, project marketing, user advocacy, or community event planning.” Outreachy invites the following applicants (quoting from their website):<br/>
"Outreachy expressly invites women (both cis and trans), trans men, and genderqueer people to apply. We also expressly invite applications from residents and nationals of the United States of any gender who are Black/African American, Hispanic/Latinx, Native American/American Indian, Alaska Native, Native Hawaiian, or Pacific Islander.<br/>
Anyone who faces under-representation, systemic bias, or discrimination in the technology industry of their country is invited to apply."<br/>
<br/>
<br/>
The LLVM Foundation will sponsor one or more internships through Outreachy and we are looking for mentors with project ideas. If you are interested in being a mentor, please send me an email. The timeline is a little tight as the deadline for mentors to submit project proposals is March 7th. We will need at least 2 mentors. Mentor responsibilities are detailed here: <a href="https://www.outreachy.org/mentor/#mentor" target="_blank">https://www.outreachy.org/mentor/#mentor</a><br/>
<br/>
As many of you know, we have long participated in Google Summer of Code (GSOC) and had great success with the program. We will continue to participate with GSOC and this is not a replacement. Participation in Outreachy is another way to reach more contributors to LLVM. It also aligns with the LLVM Foundation’s program to increase diversity and inclusion within the LLVM project and the field of compilers and tools (<a href="https://community-dot-o.llvm.org" target="_blank">https://community-dot-o.llvm.org</a>). Additionally, this is an opportunity for longer projects that no longer meet the criteria for GSOC to find an intern. GSOC recently modified their rules and decreased project length to 175 hours over 10 weeks, while Outreachy remains at 360-480 hours over a 12 week period.<br/>
<br/>
I hope you will consider being a mentor! If you have any questions, please let me know.<br/>
<br/>
Thanks,<br/>
Tanya<br/>
-------------- next part --------------<br/>
An HTML attachment was scrubbed...<br/>
URL: <<a href="http://lists.llvm.org/pipermail/cfe-dev/attachments/20210216/a4ed776a/attachment-0001.html" target="_blank">http://lists.llvm.org/pipermail/cfe-dev/attachments/20210216/a4ed776a/attachment-0001.html</a>><br/>
<br/>
------------------------------<br/>
<br/>
Message: 2<br/>
Date: Wed, 17 Feb 2021 10:25:46 +0100<br/>
From: shirley breuer via cfe-dev <cfe-dev@lists.llvm.org><br/>
To: cfe-dev@lists.llvm.org<br/>
Subject: [cfe-dev] Clang integration to other tools<br/>
Message-ID:<br/>
<trinity-4e8b5001-c8d3-46c9-9c82-ca865b96de3c-1613553946203@3c-app-gmx-bs78><br/>
<br/>
Content-Type: text/plain; charset="utf-8"<br/>
<br/>
An HTML attachment was scrubbed...<br/>
URL: <<a href="http://lists.llvm.org/pipermail/cfe-dev/attachments/20210217/b749c1c6/attachment-0001.html" target="_blank">http://lists.llvm.org/pipermail/cfe-dev/attachments/20210217/b749c1c6/attachment-0001.html</a>><br/>
<br/>
------------------------------<br/>
<br/>
Message: 3<br/>
Date: Wed, 17 Feb 2021 11:30:29 +0200<br/>
From: Andi-Bogdan Postelnicu via cfe-dev <cfe-dev@lists.llvm.org><br/>
To: shirley breuer <shirley.breuer@gmx.de><br/>
Cc: cfe-dev@lists.llvm.org<br/>
Subject: Re: [cfe-dev] Clang integration to other tools<br/>
Message-ID: <0FE97426-49B0-422E-854F-102366A73198@mozilla.com><br/>
Content-Type: text/plain; charset="utf-8"<br/>
<br/>
Hello,<br/>
<br/>
What tools are you trying to use with .clang ?<br/>
<br/>
Andi<br/>
<br/>
> On 17 Feb 2021, at 11:25, shirley breuer via cfe-dev <cfe-dev@lists.llvm.org> wrote:<br/>
><br/>
> I have created a file in .clang format and now I want to try to integrate it with different tools under Windows.<br/>
<br/>
-------------- next part --------------<br/>
An HTML attachment was scrubbed...<br/>
URL: <<a href="http://lists.llvm.org/pipermail/cfe-dev/attachments/20210217/1b66da15/attachment-0001.html" target="_blank">http://lists.llvm.org/pipermail/cfe-dev/attachments/20210217/1b66da15/attachment-0001.html</a>><br/>
<br/>
------------------------------<br/>
<br/>
Message: 4<br/>
Date: Wed, 17 Feb 2021 15:01:53 +0100<br/>
From: Jan Svoboda via cfe-dev <cfe-dev@lists.llvm.org><br/>
To: David Blaikie via cfe-dev <cfe-dev@lists.llvm.org><br/>
Subject: [cfe-dev] Update on generating cc1 command line from<br/>
CompilerInvocation<br/>
Message-ID: <CE7218EC-D704-42C6-8BF8-8488E9287F00@apple.com><br/>
Content-Type: text/plain; charset=utf-8<br/>
<br/>
Hi, I work on explicitly building Clang modules via pre-scanning at Apple along with Michael Spencer and Duncan Exon Smith.<br/>
<br/>
As part of our effort, Daniel Grumberg posted an RFC to Generate CC1 Command Lines from a CompilerInvocation instance <<a href="https://lists.llvm.org/pipermail/cfe-dev/2020-May/065421.html" target="_blank">https://lists.llvm.org/pipermail/cfe-dev/2020-May/065421.html</a>> some time ago, which got some positive feedback. The implementation is almost complete and we want to check if everyone is okay with our direction.<br/>
<br/>
The plan<br/>
<br/>
The RFC proposed the following steps:<br/>
<br/>
1. Build an infrastructure for automatic command line option marshalling.<br/>
2. Use the infrastructure to automatically parse and generate simple options.<br/>
3. Manually implement code for generating non-trivial options.<br/>
4. Turn on round-tripping in assert builds to ensure correctness.<br/>
<br/>
Steps 1, 2 are already finished and upstream, step 3 is almost done.<br/>
<br/>
Round-tripping in step 4 means that CompilerInvocation::CreateFromArgs does not create the instance directly from the original command line. Instead, it parses the arguments into a dummy CompilerInvocation instance and uses it to generate new command line. The real CompilerInvocation is then parsed from the generated command line. When exercised by Clang’s test suite, this setup validates the generated command line has semantics identical to the original.<br/>
<br/>
Currently, round-tripping can be enabled by building Clang with -DCLANG_ROUND_TRIP_CC1_ARGS=ON or by invoking cc1 with -round-trip-args. The generated command line can be printed by using the -Rround-trip-cc1-args option.<br/>
<br/>
Next steps<br/>
<br/>
After all patches are upstream and the whole CompilerInvocation is serializable, it would be good to enable round-tripping by default for assert builds. This would ensure bots building with assertions fail whenever new cc1 option is not being generated correctly. The process of adding new command line option and using the marshalling infrastructure is documented in the Clang Internals Manual <<a href="https://clang.llvm.org/docs/InternalsManual.html#adding-new-command-line-option" target="_blank">https://clang.llvm.org/docs/InternalsManual.html#adding-new-command-line-option</a>>. I’d be watching patches related to command line options for a while and helping folks with implementing generation for new options.<br/>
<br/>
Special considerations for downstream<br/>
<br/>
Downstream projects that need to adopt this feature in their own timeframe could temporarily disable round-tripping by building with -DCLANG_ROUND_TRIP_CC1_ARGS=OFF or always passing -no-round-trip-args to cc1.<br/>
<br/>
Below is a non-exhaustive list of related patches:<br/>
<br/>
* <<a href="https://reviews.llvm.org/D94472" target="_blank">https://reviews.llvm.org/D94472</a>> implements round-tripping,<br/>
* <<a href="https://reviews.llvm.org/D96056" target="_blank">https://reviews.llvm.org/D96056</a>> manually generates complex CodeGenOptions,<br/>
* <<a href="https://reviews.llvm.org/D96280" target="_blank">https://reviews.llvm.org/D96280</a>> changes the round-trip to handle whole CompilerInvocation at once instead of handling individual members separately.<br/>
<br/>
Does the proposed plan of enabling round-trip in assert builds sound good?<br/>
<br/>
Cheers,<br/>
Jan Svoboda<br/>
<br/>
<br/>
------------------------------<br/>
<br/>
Message: 5<br/>
Date: Wed, 17 Feb 2021 18:02:20 +0300<br/>
From: Andrey Sharoyko via cfe-dev <cfe-dev@lists.llvm.org><br/>
To: cfe-dev@lists.llvm.org<br/>
Subject: [cfe-dev] CLang. How to turn on reference to pointer errors<br/>
Message-ID: <41E4C74C-6920-4706-B47B-B2777B3D0E9C@mail.ru><br/>
Content-Type: text/plain; charset=us-ascii<br/>
<br/>
Hi.<br/>
<br/>
In XCode I declare a function<br/>
<br/>
void func (const Valu & val);<br/>
<br/>
And when I mistakenly pass a pointer instead of a reference to an object, the compiler does not issue an error or warning message. But it generates incorrect code.<br/>
How do I enable this error or warning message?<br/>
<br/>
Thanks,<br/>
Andrey.<br/>
<br/>
------------------------------<br/>
<br/>
Subject: Digest Footer<br/>
<br/>
_______________________________________________<br/>
cfe-dev mailing list<br/>
cfe-dev@lists.llvm.org<br/>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br/>
<br/>
<br/>
------------------------------<br/>
<br/>
End of cfe-dev Digest, Vol 164, Issue 59<br/>
****************************************</div>
</div>
</div>
</div></div></body></html>