Coroutines series--Raymond Chen

The series continue.

C++ coroutines: Promise constructors

From the article:

So far, all of our coroutine promises have had only a default constructor. But the standard actually gives the promise access to the coroutine parameters, if it wants them...

A map through the three major coroutine series

From the article:

Our long national nightmare is not yet over: The three main coroutine series are now done, although that doesn’t mean I’m done with coroutines.

Here’s a map through the main series, at least. There is a direct route and a number of scenic routes...

A subtle way your await_suspend can access the coroutine frame when it shouldn’t

From the article:

As we learned in the very start of the series on coroutines, the await_suspend method cannot access the coroutine frame once it arranges for the coroutine to resume because that creates a race condition where the coroutine might already be resumed and possibly even run to completion before await_suspend finishes...

by Raymond Chen

 

Release 21.04 of AbsInt RuleChecker for C/C++

A new release of the AbsInt RuleChecker is available.

Release 21.04 of AbsInt RuleChecker for C/C++

by Absint

From the article:

AbsInt RuleChecker enhances its rule coverage for the Adaptive Autosar C++ coding guidelines. Other coding guidelines supported are MISRA C/C++, CERT C/C++, CWE, ISO/IEC TS 17961. RuleChecker runs on Windows, Linux, and macOS and provides plugins for Eclipse, Jenkins, TargetLink, and Keil µVision.

 

SonarLint for CLion brings static code analysis support for C and C++ projects

The latest release of SonarLint for CLion allows C and C++ developers to detect and fix Bugs, Vulnerabilities, and Code Smells, on the fly, right in the IDE, before code is committed to the repo. SonarLint is a free and open source static analysis extension directly installable from the JetBrains Marketplace.

SonarLint for IntelliJ 4.15 released – C and C++ support for CLion

By Marco Comi

From the article:


We are excited to announce this new version of SonarLint for the IntelliJ family of IDEs, that brings C and C++ support for CLion...Sonarlint will not only detect issues: our accurate rule descriptions will help you understand what is at stake and guide you to fix your issues with examples. In other words you will be able to fix your issues before they are even committed to your repository. For instance, you can have a look at our 500+ types of C++ detections here.

Templates - First Steps--Rainer Grimm

A powerful tool.

Templates - First Steps

by Rainer Grimm

From the article:

The idea of this post is quite simple. I want to visualize templates and, in particular, the process of template instantiation. Thanks to C++ Insights, this visualization is pretty easy...

C++ coroutines: Converting among tasks that use the same promise--Raymond Chen

The series continue.

C++ coroutines: Converting among tasks that use the same promise

by Raymond Chen

From the article:

If the only difference between tasks is in the awaiter, then it’s possible to convert between them without the promise even knowing what happened. We have an example of this with our simple_task and com_simple_task, which differ only in the awaiter produced by the co_await operator. This means that we can actually convert between the two by simple wrapping the promise inside the other class...

Online C++ User Group Meetings in May 2021

The monthly overview of upcoming C++ User Group meetings!

Online C++ User Group Meetings in May 2021

by Jens Weller

From the article:

The monthly overview on upcoming C++ User Group meetings. A bit later then usual, seems my talk at C++now and announcing Meeting C++ 2021 has kept me a bit too busy.

Next week Tuesday: Meeting C++ online - May - Design Patterns - Facts and Misconceptions with Klaus Iglberger. If you're interested in this topic, Klaus also gives a training on Modern C++ and Design Patterns in June.

Qt Developer Conference--Ann Fernandes

Will you attend?

Qt Developer Conference

by Ann Fernandes

From the article:

We at KDAB are pleased to announce an event we’re planning to host in Berlin this fall, September 28-30. Save the dates for KDAB’s Qt Developer Conference — a conference from Qt developers for Qt developers!

C++ coroutines: Waiting synchronously for our coroutine to complete--Raymond Chen

The series continue.

C++ coroutines: Waiting synchronously for our coroutine to complete

by Raymond Chen

From the article:

Last time, we added an extension point that permitted us to respond differently to the completion of the coroutine. We’re going to put that extension point to good use by adding the ability to wait synchronously for the coroutine to complete.

C++ coroutines: Adding COM context support to our awaiter--Raymond Chen

The series continue.

C++ coroutines: Adding COM context support to our awaiter

by Raymond Chen

From the article:

You may want to have awaiters that apply custom resume behavior. For example, in Windows, you are likely to want your awaiter to preserve the COM thread context. For X11 programming, you may want to the awaiter to return to the render thread if the co_await was initiated from the render thread. Today we’ll add the ability to customize the awaiter to our coroutine promise type...